From c0c542d495e485222f23ab3483d3730ecf41745b Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Fri, 25 Aug 2023 00:09:56 +0200 Subject: [PATCH] LibWeb: Update `shared_declarative_refresh_steps()" to use navigables --- Userland/Libraries/LibWeb/DOM/Document.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 1e3b5721f7a..5e1bbc0578c 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