diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 1e3b5721f7..5e1bbc0578 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -3479,11 +3479,8 @@ void Document::shared_declarative_refresh_steps(StringView input, JS::GCPtrset_url(url_record); - MUST(browsing_context()->navigate(request, *browsing_context(), false, HTML::HistoryHandlingBehavior::Replace)); + VERIFY(navigable()); + MUST(navigable()->navigate(url_record, *this)); }).release_value_but_fixme_should_propagate_errors(); // For the purposes of the previous paragraph, a refresh is said to have come due as soon as the later of the