mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:42:44 +00:00 
			
		
		
		
	 e2391105a1
			
		
	
	
		e2391105a1
		
	
	
	
	
		
			
			Spec declares that the updates to history should be synchronous on initial page load and on history pushState/replaceState.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			592 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			592 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     asyncTest(done => {
 | |
| 
 | |
|         history.replaceState({}, "hello", "history-replace-push-state-race.html");
 | |
|         history.replaceState({}, "hello", "history-replace-push-state-race.html");
 | |
| 
 | |
|         // this test checks a regression for a crash in `finalize_a_same_document_navigation`
 | |
|         // when `target_navigable->get_session_history_entries()` does not contain `entry_to_replace` exactly.
 | |
|         //
 | |
|         // history.replaceState is one possible trigger for the crash.
 | |
| 
 | |
|         println("test done!");
 | |
|         done();
 | |
|     });
 | |
| </script>
 |