LibWeb/HTML: Make environments top level creation URL nullable

This is explicitly set to null for Workers.
This commit is contained in:
Shannon Booth 2025-04-21 16:57:31 +12:00 committed by Andrew Kaster
commit 96f38dc180
Notes: github-actions[bot] 2025-04-22 15:30:49 +00:00
6 changed files with 8 additions and 7 deletions

View file

@ -184,7 +184,7 @@ WebIDL::ExceptionOr<BrowsingContext::BrowsingContextAndDocument> BrowsingContext
});
// 11. Let topLevelCreationURL be about:blank if embedder is null; otherwise embedder's relevant settings object's top-level creation URL.
auto top_level_creation_url = !embedder ? URL::about_blank() : relevant_settings_object(*embedder).top_level_creation_url;
auto top_level_creation_url = !embedder ? URL::about_blank() : relevant_settings_object(*embedder).top_level_creation_url.value();
// 12. Let topLevelOrigin be origin if embedder is null; otherwise embedder's relevant settings object's top-level origin.
auto top_level_origin = !embedder ? origin : relevant_settings_object(*embedder).origin();