Skip to content

Commit

Permalink
LibWeb: Correctly check the document's salvageable state during cleanup
Browse files Browse the repository at this point in the history
The condition here was flipped.
  • Loading branch information
trflynn89 authored and awesomekling committed May 26, 2024
1 parent 88d46b5 commit 79223f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/DOM/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 79223f3

Please sign in to comment.