LibWeb: Add updated version of "determine the origin" AO from HTML spec

The old version is still around since it has many users, so we can't
remove it until everything has been updated to use the new version.
This commit is contained in:
Andreas Kling 2022-12-12 17:36:20 +01:00
commit 65467021e2
Notes: sideshowbarker 2024-07-17 05:58:46 +09:00
2 changed files with 32 additions and 0 deletions

View file

@ -330,6 +330,9 @@ private:
bool m_has_been_discarded { false };
};
// FIXME: Remove this once everything is switched to the new overload.
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(AK::URL const& url, SandboxingFlagSet sandbox_flags, Optional<HTML::Origin> source_origin, Optional<HTML::Origin> container_origin);
}