diff --git a/Libraries/LibWeb/HTML/Navigable.cpp b/Libraries/LibWeb/HTML/Navigable.cpp index 82ebc0c2561..ce1677456ce 100644 --- a/Libraries/LibWeb/HTML/Navigable.cpp +++ b/Libraries/LibWeb/HTML/Navigable.cpp @@ -1676,7 +1676,7 @@ void Navigable::begin_navigation(NavigateParams params) // 1. Let unloadPromptCanceled be the result of checking if unloading is user-canceled for navigable's active document's inclusive descendant navigables. auto unload_prompt_canceled = traversable_navigable()->check_if_unloading_is_canceled(this->active_document()->inclusive_descendant_navigables()); - // 2. If unloadPromptCanceled is true, or navigable's ongoing navigation is no longer navigationId, then: + // 2. If unloadPromptCanceled is not "continue", or navigable's ongoing navigation is no longer navigationId: if (unload_prompt_canceled != TraversableNavigable::CheckIfUnloadingIsCanceledResult::Continue || !ongoing_navigation().has() || ongoing_navigation().get() != navigation_id) { // FIXME: 1. Invoke WebDriver BiDi navigation failed with navigable and a new WebDriver BiDi navigation status whose id is navigationId, status is "canceled", and url is url. diff --git a/Libraries/LibWeb/HTML/TraversableNavigable.cpp b/Libraries/LibWeb/HTML/TraversableNavigable.cpp index c83b19e1267..590910c8f16 100644 --- a/Libraries/LibWeb/HTML/TraversableNavigable.cpp +++ b/Libraries/LibWeb/HTML/TraversableNavigable.cpp @@ -1226,7 +1226,7 @@ void TraversableNavigable::definitely_close_top_level_traversable() // 1. Let toUnload be traversable's active document's inclusive descendant navigables. auto to_unload = active_document()->inclusive_descendant_navigables(); - // 2. If the result of checking if unloading is canceled for toUnload is true, then return. + // 2. If the result of checking if unloading is canceled for toUnload is not "continue", then return. if (check_if_unloading_is_canceled(to_unload) != CheckIfUnloadingIsCanceledResult::Continue) return;