1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:38:12 +00:00

LibWeb: Port CrossOriginOpenerPolicy from DeprecatedString

Noone is using the members yet, so this is straight forward!
This commit is contained in:
Shannon Booth 2023-11-22 08:45:50 +13:00 committed by Tim Flynn
parent 1b05598cd3
commit 49a48fcfac

View file

@ -6,7 +6,7 @@
#pragma once
#include <AK/DeprecatedString.h>
#include <AK/String.h>
namespace Web::HTML {
@ -24,13 +24,13 @@ struct CrossOriginOpenerPolicy {
CrossOriginOpenerPolicyValue value { CrossOriginOpenerPolicyValue::UnsafeNone };
// A reporting endpoint, which is string or null, initially null.
Optional<DeprecatedString> reporting_endpoint;
Optional<String> reporting_endpoint;
// A report-only value, which is a cross-origin opener policy value, initially "unsafe-none".
CrossOriginOpenerPolicyValue report_only_value { CrossOriginOpenerPolicyValue::UnsafeNone };
// A report-only reporting endpoint, which is a string or null, initially null.
Optional<DeprecatedString> report_only_reporting_endpoint;
Optional<String> report_only_reporting_endpoint;
};
}