1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibWeb: Use navigate() instead of did_set_location_href in Location

This commit is contained in:
Aliaksandr Kalenik 2023-08-22 18:33:20 +02:00 committed by Andreas Kling
parent 083e4a3f30
commit acff244335
4 changed files with 7 additions and 17 deletions

View file

@ -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();