LibWeb: Make Environment's top level origin nullable

This matches the definition in the spec, and is also a step towards
removing the default constructor of URL::Origin.
This commit is contained in:
Shannon Booth
2025-05-25 16:47:37 +12:00
committed by Shannon Booth
parent 556acd82ee
commit 937994cfaa
Notes: github-actions[bot] 2025-05-27 02:49:41 +00:00
11 changed files with 20 additions and 16 deletions

View File

@@ -23,7 +23,7 @@ struct SerializedEnvironmentSettingsObject {
String id;
URL::URL creation_url;
Optional<URL::URL> top_level_creation_url;
URL::Origin top_level_origin;
Optional<URL::Origin> top_level_origin;
String api_url_character_encoding;
URL::URL api_base_url;