mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:32:44 +00:00 
			
		
		
		
	LibWeb: Add missing paintable null check in get_bounding_client_rect()
Fixes crashing on https://github.com/
This commit is contained in:
		
							parent
							
								
									f361b8c000
								
							
						
					
					
						commit
						8f8ec37d58
					
				
					 3 changed files with 15 additions and 1 deletions
				
			
		|  | @ -0,0 +1,12 @@ | |||
| <!DOCTYPE html> | ||||
| <style type="text/css"> | ||||
|     #box { display: none; } | ||||
| </style> | ||||
| <div id="box"></div> | ||||
| <script src="include.js"></script> | ||||
| <script> | ||||
|     test(() => { | ||||
|         const rect = document.getElementById("box").getBoundingClientRect(); | ||||
|         println(JSON.stringify(rect)); | ||||
|     }); | ||||
| </script> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aliaksandr Kalenik
						Aliaksandr Kalenik