Repository navigation
Implement beforeunload event and infrastructure - #20329
Conversation
|
Heads up! This PR modifies the following files:
|
|
Opened new PR for upstreamable changes. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#36. |
|
Error syncing changes upstream. Logs saved in error-snapshot-1521386860024. |
|
Error syncing changes upstream. Logs saved in error-snapshot-1521387016450. |
|
No upstreamable changes; closed existing PR. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#36. |
09e4e21 to
ff55a2c
Compare
|
Opened new PR for upstreamable changes. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#46. |
|
No upstreamable changes; closed existing PR. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#46. |
2afab18 to
31a8d18
Compare
9370ab6 to
b8c983b
Compare
|
Opened new PR for upstreamable changes. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#47. |
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#47. |
|
No upstreamable changes; closed existing PR. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#57. |
| // TODO: Step 6, decrease the event loop's termination nesting level by 1. | ||
| // Step 7 | ||
| self.salvageable.set(has_listeners); | ||
| self.salvageable.set(!has_listeners); |
|
Ok, should be good to go... |
|
@bors-servo r+ |
|
📌 Commit 99eaab4 has been approved by |
|
💔 Test failed - mac-dev-unit |
|
More things passing (maybe due to the Details |
|
|
The crash from mac-dev-unit is not caused by these changes; it's clearly something wrong lower down in the Rust standard library: |
| MainThreadScriptMsg::Navigate(pipeline_id, | ||
| LoadData::new(url, Some(pipeline_id), referrer_policy, Some(doc.url())), replace)).unwrap(); | ||
|
|
||
| // Step 4 |
There was a problem hiding this comment.
Moved Step 4 #navigating-across-documents from script_thread(previously this was done in response to receiving the MainThreadScriptMsg::Navigate sent a bit below) to here, which fits the spec steps better actually.
|
I've done #20329 (comment), which prevents the crash inside Having read the spec a bit more closely, and the test, I think this test probably doesn't match the spec anymore(it was added back in web-platform-tests/wpt#304). That is because the test seems to rely on an infinite loop where the navigation inside the |
|
@gterzian that analysis looks correct. Since the navigation would be cancelled before another @bors-servo r+ |
|
📌 Commit 29d1cf6 has been approved by |
|
💔 Test failed - linux-rel-css |
|
Looks like we have a new passing test! |
|
Wait sorry, false alarm, that's #20760. I don't think beforeunloadevent affects that test... |
|
⚡ Previous build results for android, arm32, arm64, linux-dev, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt3, windows-msvc-dev are reusable. Rebuilding only linux-rel-css, mac-rel-wpt2, mac-rel-wpt4... |
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
|
🎉 Thanks for your work on this @gterzian! |
|
@cbrewster thanks for your help! |
Implementation of:
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is