mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb/CSP: Add Keyword Sources FlyStrings
This commit is contained in:
parent
31a8004ddb
commit
050f984625
Notes:
github-actions[bot]
2025-06-30 22:26:10 +00:00
Author: https://github.com/Lubrsi
Commit: 050f984625
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4367
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/shannonbooth
4 changed files with 45 additions and 2 deletions
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Luke Wilde <luke@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/KeywordSources.h>
|
||||
|
||||
namespace Web::ContentSecurityPolicy::Directives::KeywordSources {
|
||||
|
||||
#define __ENUMERATE_KEYWORD_SOURCE(name, value) \
|
||||
FlyString name = value##_fly_string;
|
||||
ENUMERATE_KEYWORD_SOURCES
|
||||
#undef __ENUMERATE_KEYWORD_SOURCE
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue