LibWeb/HTML: Fix return value checking for unload cancellation

Corresponds to 4467ddf323
This commit is contained in:
Sam Atkins 2025-07-08 12:54:42 +01:00 committed by Tim Ledbetter
commit df2b2d2c14
Notes: github-actions[bot] 2025-07-08 16:10:26 +00:00
2 changed files with 2 additions and 2 deletions

View file

@ -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;