mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	LibWeb: Discard ObjectElement's nested browsing context on image load
This commit is contained in:
		
							parent
							
								
									f82d4d001d
								
							
						
					
					
						commit
						215432c3e8
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-17 16:48:53 +09:00 
				
			
			Author: https://github.com/IdanHo
Commit: 215432c3e8
Pull-request: https://github.com/SerenityOS/serenity/pull/13244
Reviewed-by: https://github.com/trflynn89 ✅
			
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -215,7 +215,11 @@ void HTMLObjectElement::run_object_representation_handler_steps(Optional<String> | |||
|     // * If the resource type starts with "image/", and support for images has not been disabled
 | ||||
|     // FIXME: Handle disabling image support.
 | ||||
|     else if (resource_type.has_value() && resource_type->starts_with("image/"sv)) { | ||||
|         // FIXME: If the object element's nested browsing context is non-null, then it must be discarded and then set to null.
 | ||||
|         // If the object element's nested browsing context is non-null, then it must be discarded and then set to null.
 | ||||
|         if (m_nested_browsing_context) { | ||||
|             discard_nested_browsing_context(); | ||||
|             m_nested_browsing_context = nullptr; | ||||
|         } | ||||
| 
 | ||||
|         // Apply the image sniffing rules to determine the type of the image.
 | ||||
|         // The object element represents the specified image.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Idan Horowitz
						Idan Horowitz