mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 05:10:57 +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 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() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shannon Booth
						Shannon Booth