onUnload Asynchronous AJAX calls aren't fired when window closes
Categories
(Core :: DOM: Networking, defect, P3)
Tracking
()
People
(Reporter: gec.producto, Unassigned)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
|
1.78 KB,
application/octet-stream
|
Details |
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
Comment 3•14 years ago
|
||
Updated•3 years ago
|
Comment 5•2 years ago
|
||
See bug 1773351 for some further discussion. Specifically, despite the cross-browser difference, this doesn't seem to be a high Web compat issue.
Moving to DOM: Networking rather than Networking for a decision if we want to pursue some hack to avoid canceling a request like this despite its initiation context going away.
smaug, I think there might have been discussion of special-casing XHR from this handler. Do you recall why we haven't done so?
Comment 6•2 years ago
|
||
I don't recall discussions about special casing XHR.
Comment 7•2 years ago
|
||
@valentin - I assume this and bug 1773351 were filed because someone actually did run into this in the field, so while it may not be a major webcompat issue, it may be hit occasionally, and it's unclear how often this would get noticed and tracked down.
How much work would it be for us to behave closer to Chrome/Safari?
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 8•2 years ago
|
||
I don't think this bug and bug 1773351 are the same. This is related to being able to send requests onUnload event and bug 1773351 is our capability to send requests beforeunload event.
unload event is deprecated where as beforeunload event is still supported.
Hence, I would close this bug as INVALID as supporting a request during page unload is simply not supported by the spec and we have modern alternatives like fetch keepalive/sendbeacons if we want to support pushing data to the server on page unloads.
Description
•