Closed
Bug 980902
Opened 11 years ago
Closed 6 years ago
Warn about use of sync XHR during unload and pagehide events
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla68
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: smaug, Assigned: twisniewski)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete, site-compat)
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
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.
Comment 1•11 years ago
|
||
Except that it's not enabled by default yet, right? :-)
Reporter | ||
Comment 2•11 years ago
|
||
Ah. Well, let's fix this once it is enabled.
Updated•11 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Comment 3•9 years ago
|
||
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
Updated•9 years ago
|
Keywords: dev-doc-needed,
site-compat
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Assignee | ||
Comment 4•6 years ago
|
||
log a warning recommending the use of sendBeacon during unload instead of synchronous XMLHttpRequest
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → twisniewski
Assignee | ||
Updated•6 years ago
|
Summary: Warn about use of sync XHR during unload events → Warn about use of sync XHR during unload and pagehide events
Pushed by twisniewski@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7dc8eb2bb2ec
log a warning recommending the use of sendBeacon during unload instead of synchronous XMLHttpRequest; r=Ehsan
Comment 7•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox68:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Comment 8•5 years ago
|
||
Posted site compatibility note: https://www.fxsitecompat.com/en-CA/docs/2019/use-of-sync-xhr-during-unload-pagehide-events-is-now-deprecated/
Comment 9•5 years ago
|
||
Added some more text to the article "Synchronous and asynchronous requests", part of the XHR documentation.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•