mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:55:08 +00:00
LibWeb: Determine the origin when navigating across documents
This commit is contained in:
parent
9643a5c63f
commit
8d2c2f7c52
4 changed files with 14 additions and 4 deletions
|
@ -59,7 +59,7 @@ static HTML::Origin url_origin(AK::URL const& url)
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#determining-the-origin
|
||||
static HTML::Origin determine_the_origin(BrowsingContext const& browsing_context, Optional<AK::URL> url, SandboxingFlagSet sandbox_flags, Optional<HTML::Origin> invocation_origin)
|
||||
HTML::Origin determine_the_origin(BrowsingContext const& browsing_context, Optional<AK::URL> url, SandboxingFlagSet sandbox_flags, Optional<HTML::Origin> invocation_origin)
|
||||
{
|
||||
// 1. If sandboxFlags has its sandboxed origin browsing context flag set, then return a new opaque origin.
|
||||
if (sandbox_flags.flags & SandboxingFlagSet::SandboxedOrigin) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue