mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:52:45 +00:00 
			
		
		
		
	LibWeb: Restore protection against empty HTMLImageElement resources
This if-statement was erroneously dropped in commit 8ff8309.
			
			
This commit is contained in:
		
							parent
							
								
									365b2bf945
								
							
						
					
					
						commit
						e129c8049b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -512,7 +512,8 @@ after_step_6: | |||
|                     handle_failed_fetch(); | ||||
|                 }; | ||||
| 
 | ||||
|                 response->body().value().fully_read(realm(), move(process_body), move(process_body_error), JS::NonnullGCPtr { realm().global_object() }).release_value_but_fixme_should_propagate_errors(); | ||||
|                 if (response->body().has_value()) | ||||
|                     response->body().value().fully_read(realm(), move(process_body), move(process_body_error), JS::NonnullGCPtr { realm().global_object() }).release_value_but_fixme_should_propagate_errors(); | ||||
|             }); | ||||
|         }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn