Skip to content

Commit

Permalink
LibWeb: Use Navigable::navigate() in Page::load_html()
Browse files Browse the repository at this point in the history
  • Loading branch information
kalenikaliaksandr committed Apr 23, 2023
1 parent a675a3c commit 228bfed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/Page/Page.cpp
Expand Up @@ -48,7 +48,7 @@ void Page::load(LoadRequest& request)

void Page::load_html(StringView html, const AK::URL& url)
{
top_level_browsing_context().loader().load_html(html, url);
(void)top_level_traversable()->navigate(url, *top_level_traversable()->active_document(), String::from_utf8(html).release_value_but_fixme_should_propagate_errors());
}

Gfx::Palette Page::palette() const
Expand Down

0 comments on commit 228bfed

Please sign in to comment.