diff options
-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 dd1f74a67e..efe839baf1 100644 --- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -317,10 +317,10 @@ void FrameLoader::load_html(StringView html, const AK::URL& url) DOM::Document::Type::HTML, "text/html", move(navigation_params)); + browsing_context().set_active_document(document); auto parser = HTML::HTMLParser::create(document, html, "utf-8"); parser->run(url); - browsing_context().set_active_document(parser->document()); } static String s_error_page_url = "file:///res/html/error.html"; |