Closed Bug 980902 Opened 10 years ago Closed 5 years ago
Warn about use of sync XHR during unload and pagehide events
Bug 980902 - log a warning recommending the use of sendBeacon during unload instead of synchronous XMLHttpRequest; r?ehsan
47 bytes, text/x-phabricator-request
|Details | Review|
Currently we warn about use of sync XHR when we're outside unload event listeners. Now that we have sendBeacon, there should be no reason to use sync XHR on the main thread.
Except that it's not enabled by default yet, right? :-)
Ah. Well, let's fix this once it is enabled.
Bug 990220 enabled sendBeacon by default? What's left? Sync XHR on unload is actually going to bite us (see bug 1109793 for example).
Depends on: 990220
Summary: Warn about use of sync XHR during unload events → Warn about use of sync XHR during unload and pagehide events
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/7dc8eb2bb2ec log a warning recommending the use of sendBeacon during unload instead of synchronous XMLHttpRequest; r=Ehsan
You need to log in before you can comment on or make changes to this bug.