### What is the issue with the HTML Standard? [#checking-if-unloading-is-canceled](https://html.spec.whatwg.org/#checking-if-unloading-is-canceled) returns ["canceled-by-beforeunload", "canceled-by-navigate", or "continue"](https://html.spec.whatwg.org/#checking-if-unloading-is-canceled:~:text=They%20return%20%22canceled%2Dby%2Dbeforeunload%22%2C%20%22canceled%2Dby%2Dnavigate%22%2C%20or%20%22continue%22%2E), but [#definitely-close-a-top-level-traversable](https://html.spec.whatwg.org/#garbage-collection-and-browsing-contexts:checking-if-unloading-is-canceled) and [#navigate](https://html.spec.whatwg.org/#beginning-navigation:checking-if-unloading-is-canceled) checks if it returns `true`. It should check if it returns `"continue"` like [#apply-the-history-step](https://html.spec.whatwg.org/#updating-the-traversable:checking-if-unloading-is-canceled) does.
Activity
farre commentedon Jun 5, 2025
@zcorpan
Fix return value checking for unload cancelation
Fix return value checking for unload cancelation