mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 08:33:28 +02:00
Previously, `CheckUnloadingCanceledState::start_phase2()` used `queue_global_task()` to fire `beforeunload` on each relevant document. However, tasks associated with a document are only runnable when the document is fully active and it is possible for the document to become not fully-active before the task is run. This caused a 15 second delay in `CheckUnloadingCanceledState` while we waited for a timeout, which could cause test timeouts when under heavy load.
91 KiB
91 KiB