diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-29 01:27:06 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-29 01:27:06 +0100 |
commit | d947253c51c68d7a59e9128432e053d699487033 (patch) | |
tree | 92e6000c433f2bdd66f1326a194a546949ab54f4 | |
parent | 56e69c4f2ef1d0b0cca361d197cc9eb881a1c778 (diff) | |
download | serenity-d947253c51c68d7a59e9128432e053d699487033.zip |
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. :^)
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/FrameLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp index b33878c742..f1ff25c13e 100644 --- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -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); } |