mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb: Correctly check the document's salvageable state during cleanup
The condition here was flipped.
This commit is contained in:
parent
88d46b51ed
commit
79223f3e1b
Notes:
sideshowbarker
2024-07-16 20:05:14 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/79223f3e1b Pull-request: https://github.com/SerenityOS/serenity/pull/24452 Issue: https://github.com/SerenityOS/serenity/issues/23847
1 changed files with 1 additions and 1 deletions
|
@ -3117,7 +3117,7 @@ void Document::run_unloading_cleanup_steps()
|
|||
// FIXME: 3. For each WebTransport object transport whose relevant global object is window, run the context cleanup steps given transport.
|
||||
|
||||
// 4. If document's salvageable state is false, then:
|
||||
if (m_salvageable) {
|
||||
if (!m_salvageable) {
|
||||
// FIXME: 1. For each EventSource object eventSource whose relevant global object is equal to window, forcibly close eventSource.
|
||||
|
||||
// 2. Clear window's map of active timers.
|
||||
|
|
Loading…
Add table
Reference in a new issue