Skip to content

Tests: Don't test synchronous XHR on unload in Chrome #4536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

mgol
Copy link
Member

@mgol mgol commented Oct 27, 2019

Summary

Chrome 78 dropped support for synchronous XHR requests inside of beforeunload, unload, pagehide, and visibilitychange event handlers. This made an AJAX test checking exactly that fail in Chrome.
See https://bugs.chromium.org/p/chromium/issues/detail?id=952452

BTW, I can't reliably reproduce the failure in Chrome on macOS when tested via the PHP setup. It does fail in Chrome 78 via Karma & in Edge Chromium in all ways, though. It also reliably fails in TestSwarm. Therefore, we need to drop that test in Chrome.

Checklist

Chrome 78 dropped support for synchronous XHR requests inside of
beforeunload, unload, pagehide, and visibilitychange event handlers.
See https://bugs.chromium.org/p/chromium/issues/detail?id=952452
@mgol mgol added this to the 3.5.0 milestone Oct 27, 2019
@mgol mgol self-assigned this Oct 27, 2019
@mgol
Copy link
Member Author

mgol commented Oct 27, 2019

Firefox tests fail due to #4529 but this PR makes them succeed in Chrome again.

@mgol mgol merged commit c5b48c8 into jquery:3.x-stable Oct 28, 2019
@mgol mgol deleted the chrome-78-sync-xhr branch October 28, 2019 19:27
@mgol mgol removed the Needs review label Oct 28, 2019
mgol added a commit that referenced this pull request Oct 28, 2019
Chrome 78 dropped support for synchronous XHR requests inside of
beforeunload, unload, pagehide, and visibilitychange event handlers.
See https://bugs.chromium.org/p/chromium/issues/detail?id=952452

Closes gh-4536

(cherry picked from commit c5b48c8)
@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2 participants