mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Only notify PageClient about top-level browsing context loads
We don't need to notify the web views that some deeply nested iframe has started loading a new URL (and we don't want it showing up in the browser location bar either!)
This commit is contained in:
parent
d89dc6e24c
commit
022a49e9ac
Notes:
sideshowbarker
2024-07-17 06:39:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/022a49e9ac
1 changed files with 4 additions and 2 deletions
|
@ -172,8 +172,10 @@ bool FrameLoader::load(LoadRequest& request, Type type)
|
|||
auto& url = request.url();
|
||||
|
||||
if (type == Type::Navigation || type == Type::Reload) {
|
||||
if (auto* page = browsing_context().page())
|
||||
page->client().page_did_start_loading(url);
|
||||
if (auto* page = browsing_context().page()) {
|
||||
if (&page->top_level_browsing_context() == &m_browsing_context)
|
||||
page->client().page_did_start_loading(url);
|
||||
}
|
||||
}
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-fetch
|
||||
|
|
Loading…
Reference in a new issue