LibWeb: Also call page_did_start_loading() for FrameLoader::Type::Reload

Surprisingly this is not used by the browser's page reload functionality
but only JS's location.reload() - that's probably why this hasn't been
noticed yet. Make sure we notify the page client about the load start in
that case as well. :^)
This commit is contained in:
Linus Groh 2021-05-29 01:27:06 +01:00
parent 56e69c4f2e
commit d947253c51
Notes: sideshowbarker 2024-07-18 17:15:36 +09:00

View file

@ -143,7 +143,7 @@ bool FrameLoader::load(const LoadRequest& request, Type type)
auto& url = request.url();
if (type == Type::Navigation) {
if (type == Type::Navigation || type == Type::Reload) {
if (auto* page = frame().page())
page->client().page_did_start_loading(url);
}