1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibWeb: Stub out determine_the_creation_sandboxing_flags

This commit is contained in:
Andrew Kaster 2023-08-28 17:44:50 +02:00 committed by Alexander Kalenik
parent a565021147
commit 5f0fb84379
2 changed files with 9 additions and 0 deletions

View file

@ -1635,4 +1635,11 @@ bool BrowsingContext::is_ancestor_of(BrowsingContext const& other) const
return false;
}
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#snapshotting-target-snapshot-params
SandboxingFlagSet determine_the_creation_sandboxing_flags(BrowsingContext const&, JS::GCPtr<DOM::Element>)
{
// FIXME: Populate this once we have the proper flag sets on BrowsingContext
return {};
}
}

View file

@ -338,6 +338,8 @@ HTML::Origin determine_the_origin(BrowsingContext const& browsing_context, Optio
HTML::Origin determine_the_origin(AK::URL const& url, SandboxingFlagSet sandbox_flags, Optional<HTML::Origin> source_origin, Optional<HTML::Origin> container_origin);
SandboxingFlagSet determine_the_creation_sandboxing_flags(BrowsingContext const&, JS::GCPtr<DOM::Element> embedder);
// FIXME: Find a better home for this
bool url_matches_about_blank(AK::URL const& url);