mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
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:
parent
f12b6b258f
commit
1a34485460
Notes:
github-actions[bot]
2025-06-17 18:55:53 +00:00
Author: https://github.com/shannonbooth
Commit: 1a34485460
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5094
Reviewed-by: https://github.com/gmta ✅
1 changed files with 12 additions and 14 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue