mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/HTML: Make environments top level creation URL nullable
This is explicitly set to null for Workers.
This commit is contained in:
parent
a786269687
commit
96f38dc180
Notes:
github-actions[bot]
2025-04-22 15:30:49 +00:00
Author: https://github.com/shannonbooth
Commit: 96f38dc180
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4414
Reviewed-by: https://github.com/ADKaster ✅
6 changed files with 8 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue