mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	LibWeb: Use navigate() instead of did_set_location_href in Location
				
					
				
			This commit is contained in:
		
							parent
							
								
									083e4a3f30
								
							
						
					
					
						commit
						acff244335
					
				
					 4 changed files with 7 additions and 17 deletions
				
			
		|  | @ -421,14 +421,6 @@ WebIDL::ExceptionOr<JS::GCPtr<WindowProxy>> Window::open_impl(StringView url, St | |||
|     return target_browsing_context->window_proxy(); | ||||
| } | ||||
| 
 | ||||
| void Window::did_set_location_href(Badge<Location>, AK::URL const& new_href) | ||||
| { | ||||
|     auto* browsing_context = associated_document().browsing_context(); | ||||
|     if (!browsing_context) | ||||
|         return; | ||||
|     browsing_context->loader().load(new_href, FrameLoader::Type::Navigation); | ||||
| } | ||||
| 
 | ||||
| void Window::did_call_location_replace(Badge<Location>, DeprecatedString url) | ||||
| { | ||||
|     auto* browsing_context = associated_document().browsing_context(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aliaksandr Kalenik
						Aliaksandr Kalenik