Repository navigation
script: Close a top-level window when pipeline exits - #50097
TimvdLippe wants to merge 1 commit into
Conversation
|
@jdm as per #49504 (comment) I think we are missing this part of the spec. However, when I (naively) implement this straightforward way, then nearly all tests start to crash with the following: Therefore, I am not sure if this is actually the correct place to put it. Based on their investigation in #49504 it seems like this part of the |
cfb1966 to
1f0d2b2
Compare
|
🔨 Triggering try run (#44891595567) for Linux (WPT) |
|
|
|
@yezhizhen Do you mind helping me out here? I am trying to properly close windows whenever we exit a pipeline. I don't really know if this is the right spot where to implement this, as it crashes webdriver in loads of ways. I have tried to figure out where webdriver closes a window and how it can end up in this codepath, but I can't seem to find it. I searched for "close" and "exit" in files like "script_thread.rs" and "webdriver_handlers.rs" but didn't spot an obvious point where it would be. |
|
@TimvdLippe Your branch is behind main by 51 commits, and I think I merged something might be related: #50150 I have one more related PR soon, we can wait a bit and see your test results after that, if you don't mind. |
|
Ah that would be great if it would be fixed in the meantime. Happy to wait, thanks! |
1f0d2b2 to
7aca8d0
Compare
|
🔨 Triggering try run (#45886592065) for Linux (WPT) |
|
Test results for linux-wpt from try job (#45886592065): Flaky unexpected result (19)
Stable unexpected results that are known to be intermittent (5)
Stable unexpected results (4)
|
|
|
Signed-off-by: Tim van der Lippe <[email protected]>
7aca8d0 to
be3b626
Compare
|
🔨 Triggering try run (#45985014951) for Linux (WPT) |
|
Test results for linux-wpt from try job (#45985014951): Flaky unexpected result (24)
Stable unexpected results that are known to be intermittent (7)
|
|
✨ Try run (#45985014951) succeeded. |
We weren't unloading documents when we would close the whole tab.
This means that we can't run any cleanup as part of https://html.spec.whatwg.org/multipage/#unloading-document-cleanup-steps
which is required in #49504 to stop audio from playing when a tab is closed.
This also speculatively fixes #50169 and #50054 but keeping these issues open so
that we can monitor for any remaining intermittency.
Testing: We now properly unload documents and thus will unblock #49504