LibWeb: Reorganize EmbedderPolicy to shrink the size by 8 bytes

This commit is contained in:
Andrew Kaster 2025-05-18 14:06:09 -06:00 committed by Andrew Kaster
commit 62592c19fe
Notes: github-actions[bot] 2025-05-18 23:51:22 +00:00

View file

@ -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;