LibWeb: Correctly check the document's salvageable state during cleanup

The condition here was flipped.
This commit is contained in:
Timothy Flynn 2024-05-26 08:28:53 -04:00 committed by Andreas Kling
parent 88d46b51ed
commit 79223f3e1b
Notes: sideshowbarker 2024-07-16 20:05:14 +09:00

View file

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