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
parent f12b6b258f
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 object;
object.id = this->id;
object.creation_url = this->creation_url;
object.top_level_creation_url = this->top_level_creation_url;
object.top_level_origin = this->top_level_origin;
object.api_url_character_encoding = api_url_character_encoding();
object.api_base_url = api_base_url();
object.origin = origin();
object.policy_container = policy_container()->serialize();
object.cross_origin_isolated_capability = cross_origin_isolated_capability();
return object;
return SerializedEnvironmentSettingsObject {
.id = this->id,
.creation_url = this->creation_url,
.top_level_creation_url = this->top_level_creation_url,
.top_level_origin = this->top_level_origin,
.api_url_character_encoding = api_url_character_encoding(),
.api_base_url = api_base_url(),
.origin = origin(),
.policy_container = policy_container()->serialize(),
.cross_origin_isolated_capability = cross_origin_isolated_capability(),
.time_origin = this->time_origin(),
};
}
GC::Ref<StorageAPI::StorageManager> EnvironmentSettingsObject::storage_manager()