mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Add policy container to {Window,Worker}EnvironmentSettingsObject
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 05:18:58 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/4817b7c623 Pull-request: https://github.com/SerenityOS/serenity/pull/15778 Reviewed-by: https://github.com/awesomekling ✅
@@ -108,6 +108,13 @@ Origin WindowEnvironmentSettingsObject::origin()
|
||||
return m_window->associated_document().origin();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/window-object.html#script-settings-for-window-objects:concept-settings-object-policy-container
|
||||
PolicyContainer WindowEnvironmentSettingsObject::policy_container()
|
||||
{
|
||||
// Return the policy container of window's associated Document.
|
||||
return m_window->associated_document().policy_container();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/window-object.html#script-settings-for-window-objects:concept-settings-object-cross-origin-isolated-capability
|
||||
CanUseCrossOriginIsolatedAPIs WindowEnvironmentSettingsObject::cross_origin_isolated_capability()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user