diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader/FrameLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/FrameLoader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp index 65f438af53..ce6cdec8c1 100644 --- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -398,6 +398,8 @@ void FrameLoader::resource_did_load() document->set_content_type(resource()->mime_type()); browsing_context().set_active_document(document); + if (auto* page = browsing_context().page()) + page->client().page_did_create_main_document(); if (!parse_document(*document, resource()->encoded_data())) { load_error_page(url, "Failed to parse content."); |