LibWeb: Update `shared_declarative_refresh_steps()" to use navigables

This commit is contained in:
Aliaksandr Kalenik 2023-08-25 00:09:56 +02:00 committed by Andreas Kling
parent 912cf89727
commit c0c542d495
Notes: sideshowbarker 2024-07-16 22:11:09 +09:00

View file

@ -3479,11 +3479,8 @@ void Document::shared_declarative_refresh_steps(StringView input, JS::GCPtr<HTML
if (has_meta_element && has_flag(active_sandboxing_flag_set(), HTML::SandboxingFlagSet::SandboxedAutomaticFeatures)) if (has_meta_element && has_flag(active_sandboxing_flag_set(), HTML::SandboxingFlagSet::SandboxedAutomaticFeatures))
return; return;
// FIXME: Use navigables when they're used for all navigation (otherwise, navigable() would be null in some cases) VERIFY(navigable());
VERIFY(browsing_context()); MUST(navigable()->navigate(url_record, *this));
auto request = Fetch::Infrastructure::Request::create(vm());
request->set_url(url_record);
MUST(browsing_context()->navigate(request, *browsing_context(), false, HTML::HistoryHandlingBehavior::Replace));
}).release_value_but_fixme_should_propagate_errors(); }).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 // For the purposes of the previous paragraph, a refresh is said to have come due as soon as the later of the