mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 21:00:06 +00:00
LibWeb: Add type for FrameLoader::load
This should enable to destinguish between IFrame, Reload and Navigation motivated loads in order to call the appropriate hooks. This change is motivated as loading the IFrame test page causes the IFrame url to be added to the history and shows up as the current browser location bar.
This commit is contained in:
committed by
Andreas Kling
parent
6105f063cb
commit
a5b8cc2d0b
@@ -142,7 +142,7 @@ void Window::did_set_location_href(Badge<Bindings::LocationObject>, const String
|
||||
auto* frame = document().frame();
|
||||
if (!frame)
|
||||
return;
|
||||
frame->loader().load(new_href);
|
||||
frame->loader().load(new_href, FrameLoader::Type::Navigation);
|
||||
}
|
||||
|
||||
void Window::did_call_location_reload(Badge<Bindings::LocationObject>)
|
||||
@@ -150,7 +150,7 @@ void Window::did_call_location_reload(Badge<Bindings::LocationObject>)
|
||||
auto* frame = document().frame();
|
||||
if (!frame)
|
||||
return;
|
||||
frame->loader().load(document().url());
|
||||
frame->loader().load(document().url(), FrameLoader::Type::Reload);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user