mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibWeb/HTML: Fix return value checking for unload cancellation
Corresponds to 4467ddf323
This commit is contained in:
parent
91e8a19391
commit
df2b2d2c14
Notes:
github-actions[bot]
2025-07-08 16:10:26 +00:00
Author: https://github.com/AtkinsSJ
Commit: df2b2d2c14
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5353
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 2 additions and 2 deletions
|
@ -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<String>() || ongoing_navigation().get<String>() != 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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue