summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Loader
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-20 21:44:42 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-20 23:44:59 +0200
commit92deba7197dc705109423945d52518de6d4d52c7 (patch)
tree9827cf71ada22b4adef70d81b9c26f90f7741cb7 /Userland/Libraries/LibWeb/Loader
parentab8432783e8d6187a91e48149bf5731e912d6349 (diff)
downloadserenity-92deba7197dc705109423945d52518de6d4d52c7.zip
LibWeb: Implement Document/BrowsingContext hookup according to spec
We now implement the browsing context's "set active document" algorithm from the spec, as well as the "discard" algorithm for browsing contexts and documents.
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r--Userland/Libraries/LibWeb/Loader/FrameLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
index f757ddd81e..65f438af53 100644
--- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
+++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
@@ -275,7 +275,7 @@ void FrameLoader::load_html(StringView html, const AK::URL& url)
auto parser = HTML::HTMLParser::create(document, html, "utf-8");
parser->run(url);
- browsing_context().set_active_document(&parser->document());
+ browsing_context().set_active_document(parser->document());
}
static String s_error_page_url = "file:///res/html/error.html";