From 79223f3e1b9f51db7609ef1a8b624ae2227adba7 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 26 May 2024 08:28:53 -0400 Subject: [PATCH] LibWeb: Correctly check the document's salvageable state during cleanup The condition here was flipped. --- Userland/Libraries/LibWeb/DOM/Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 1b70bc46153..802236bbecc 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -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.