LibWeb/HTML: Serialize time origin in environments

Which is caught from changing across to this form of initializing
the object.
This commit is contained in:
Shannon Booth 2025-06-15 13:22:22 +12:00 committed by Jelle Raaijmakers
commit 1a34485460
Notes: github-actions[bot] 2025-06-17 18:55:53 +00:00

View file

@ -564,20 +564,18 @@ bool is_non_secure_context(Environment const& environment)
SerializedEnvironmentSettingsObject EnvironmentSettingsObject::serialize() SerializedEnvironmentSettingsObject EnvironmentSettingsObject::serialize()
{ {
SerializedEnvironmentSettingsObject object; return SerializedEnvironmentSettingsObject {
.id = this->id,
object.id = this->id; .creation_url = this->creation_url,
object.creation_url = this->creation_url; .top_level_creation_url = this->top_level_creation_url,
object.top_level_creation_url = this->top_level_creation_url; .top_level_origin = this->top_level_origin,
object.top_level_origin = this->top_level_origin; .api_url_character_encoding = api_url_character_encoding(),
.api_base_url = api_base_url(),
object.api_url_character_encoding = api_url_character_encoding(); .origin = origin(),
object.api_base_url = api_base_url(); .policy_container = policy_container()->serialize(),
object.origin = origin(); .cross_origin_isolated_capability = cross_origin_isolated_capability(),
object.policy_container = policy_container()->serialize(); .time_origin = this->time_origin(),
object.cross_origin_isolated_capability = cross_origin_isolated_capability(); };
return object;
} }
GC::Ref<StorageAPI::StorageManager> EnvironmentSettingsObject::storage_manager() GC::Ref<StorageAPI::StorageManager> EnvironmentSettingsObject::storage_manager()