mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-04 09:22:53 +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
|
@ -33,7 +33,8 @@ public:
|
|||
URL::URL creation_url;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-top-level-creation-url
|
||||
URL::URL top_level_creation_url;
|
||||
// Null or a URL that represents the creation URL of the "top-level" environment. It is null for workers and worklets.
|
||||
Optional<URL::URL> top_level_creation_url;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-top-level-origin
|
||||
URL::Origin top_level_origin;
|
||||
|
@ -51,7 +52,7 @@ public:
|
|||
|
||||
protected:
|
||||
Environment() = default;
|
||||
Environment(String id, URL::URL creation_url, URL::URL top_level_creation_url, URL::Origin top_level_origin, GC::Ptr<BrowsingContext> target_browsing_context)
|
||||
Environment(String id, URL::URL creation_url, Optional<URL::URL> top_level_creation_url, URL::Origin top_level_origin, GC::Ptr<BrowsingContext> target_browsing_context)
|
||||
: id(move(id))
|
||||
, creation_url(move(creation_url))
|
||||
, top_level_creation_url(move(top_level_creation_url))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue