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

@ -946,7 +946,7 @@ static WebIDL::ExceptionOr<Navigable::NavigationParamsVariant> create_navigation
// 2. If request's reserved client is null, then:
if (!request->reserved_client()) {
// 1. Let topLevelCreationURL be currentURL.
auto top_level_creation_url = current_url;
Optional<URL::URL> top_level_creation_url = current_url;
// 2. Let topLevelOrigin be null.
URL::Origin top_level_origin;