mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +00:00
LibWeb: Reorganize EmbedderPolicy to shrink the size by 8 bytes
This commit is contained in:
parent
b10a98b0cb
commit
62592c19fe
Notes:
github-actions[bot]
2025-05-18 23:51:22 +00:00
Author: https://github.com/ADKaster
Commit: 62592c19fe
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4806
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/trflynn89
1 changed files with 5 additions and 5 deletions
|
@ -15,7 +15,7 @@
|
|||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-value
|
||||
enum class EmbedderPolicyValue {
|
||||
enum class EmbedderPolicyValue : u8 {
|
||||
UnsafeNone,
|
||||
RequireCorp,
|
||||
Credentialless,
|
||||
|
@ -30,14 +30,14 @@ struct EmbedderPolicy {
|
|||
// A value, which is an embedder policy value, initially "unsafe-none".
|
||||
EmbedderPolicyValue value { EmbedderPolicyValue::UnsafeNone };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-reporting-endpoint
|
||||
// A reporting endpoint string, initially the empty string.
|
||||
String reporting_endpoint;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-report-only-value
|
||||
// A report only value, which is an embedder policy value, initially "unsafe-none".
|
||||
EmbedderPolicyValue report_only_value { EmbedderPolicyValue::UnsafeNone };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-reporting-endpoint
|
||||
// A reporting endpoint string, initially the empty string.
|
||||
String reporting_endpoint;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-report-only-reporting-endpoint
|
||||
// A report only reporting endpoint string, initially the empty string.
|
||||
String report_only_reporting_endpoint;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue