From 7da449ce01642da5d8b73b81e874cadba0d4481f Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Sat, 25 May 2024 14:27:29 +0100 Subject: [PATCH] LibWeb: Check correct activation (spec fix) See: - https://github.com/whatwg/html/commit/d28284f --- Userland/Libraries/LibWeb/HTML/Navigation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/Navigation.cpp b/Userland/Libraries/LibWeb/HTML/Navigation.cpp index fc1d3ab0ac6..171228e6eec 100644 --- a/Userland/Libraries/LibWeb/HTML/Navigation.cpp +++ b/Userland/Libraries/LibWeb/HTML/Navigation.cpp @@ -1000,11 +1000,11 @@ bool Navigation::inner_navigate_event_firing_algorithm( // 10. Let traverseCanBeCanceled be true if all of the following are true: // - navigable is a top-level traversable; // - destination's is same document is true; and - // - either userInvolvement is not "browser UI", or navigation's relevant global object has transient activation. + // - either userInvolvement is not "browser UI", or navigation's relevant global object has history-action activation. // Otherwise, let it be false. bool const traverse_can_be_canceled = navigable->is_top_level_traversable() && destination->same_document() - && (user_involvement != UserNavigationInvolvement::BrowserUI || relevant_global_object.has_transient_activation()); + && (user_involvement != UserNavigationInvolvement::BrowserUI || relevant_global_object.has_history_action_activation()); // FIXME: Fix spec grammaro, extra 'the -> set' // 11. If either: