mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:42:43 +00:00 
			
		
		
		
	 cc9de38ea4
			
		
	
	
		cc9de38ea4
		
	
	
	
	
		
			
			Instead of blindly dereferencing m_registered_observer_list, just use the add_registered_observer() helper. Fixes #22005
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <body>
 | |
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         let observer = new MutationObserver(function() {});
 | |
|         observer.observe(document.body, { attributes: true, childList: true, subtree: true });
 | |
| 
 | |
|         let div = document.createElement("div");
 | |
|         document.body.appendChild(div);
 | |
|         div.remove();
 | |
|         println("PASS! (Didn't crash)");
 | |
|     });
 | |
| </script>
 |