mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue