Skip to content

Commit 79223f3

Browse files
trflynn89awesomekling
authored andcommitted
LibWeb: Correctly check the document's salvageable state during cleanup
The condition here was flipped.
1 parent 88d46b5 commit 79223f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Userland/Libraries/LibWeb/DOM/Document.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3117,7 +3117,7 @@ void Document::run_unloading_cleanup_steps()
31173117
// FIXME: 3. For each WebTransport object transport whose relevant global object is window, run the context cleanup steps given transport.
31183118

31193119
// 4. If document's salvageable state is false, then:
3120-
if (m_salvageable) {
3120+
if (!m_salvageable) {
31213121
// FIXME: 1. For each EventSource object eventSource whose relevant global object is equal to window, forcibly close eventSource.
31223122

31233123
// 2. Clear window's map of active timers.

0 commit comments

Comments
 (0)