mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:42:44 +00:00 
			
		
		
		
	LibWeb: Remove exit for javascript urls in anchor activation_behavior()
This early return is no longer needed because Navigable::navigate() can process `javascript:` urls. Fixes https://github.com/SerenityOS/serenity/issues/22052
This commit is contained in:
		
							parent
							
								
									80d1c93edf
								
							
						
					
					
						commit
						afe24883b7
					
				
					 3 changed files with 15 additions and 5 deletions
				
			
		|  | @ -0,0 +1,14 @@ | |||
| <script src="include.js"></script> | ||||
| <script> | ||||
| function javascript_navigation_callback() { | ||||
|     println("link clicked!"); | ||||
|     window.done(); | ||||
| } | ||||
| </script> | ||||
| <a id="test-link" href="javascript:javascript_navigation_callback()"></a> | ||||
| <script> | ||||
|     asyncTest((done) => { | ||||
|         document.getElementById("test-link").click(); | ||||
|         window.done = done; | ||||
|     }); | ||||
| </script> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aliaksandr Kalenik
						Aliaksandr Kalenik