mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:02:44 +00:00 
			
		
		
		
	LibWeb: Port Document interface from DeprecatedString to String
This commit is contained in:
		
							parent
							
								
									9d88e14f20
								
							
						
					
					
						commit
						e74031a396
					
				
					 15 changed files with 108 additions and 96 deletions
				
			
		|  | @ -326,8 +326,13 @@ void FrameLoader::resource_did_load() | |||
|     }; | ||||
|     auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", move(navigation_params)).release_value_but_fixme_should_propagate_errors(); | ||||
|     document->set_url(url); | ||||
|     document->set_encoding(resource()->encoding()); | ||||
|     document->set_content_type(resource()->mime_type()); | ||||
| 
 | ||||
|     if (resource()->encoding().has_value()) | ||||
|         document->set_encoding(MUST(String::from_deprecated_string(resource()->encoding().value()))); | ||||
|     else | ||||
|         document->set_encoding({}); | ||||
| 
 | ||||
|     document->set_content_type(MUST(String::from_deprecated_string(resource()->mime_type()))); | ||||
| 
 | ||||
|     browsing_context().set_active_document(document); | ||||
|     if (auto* page = browsing_context().page()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shannon Booth
						Shannon Booth