Navigation Cancels XHR Requests and Calls Onerror Callback
Categories
(Core :: DOM: Networking, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: mayhemer, Assigned: jesup)
References
(Blocks 1 open bug)
Details
(Keywords: webcompat:platform-bug, Whiteboard: [necko-triaged][necko-priority-queue], [wptsync upstream])
User Story
user-impact-score:1600
Attachments
(1 file, 1 obsolete file)
| Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
| Reporter | ||
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Comment 7•3 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Comment 8•10 months ago
|
||
With the revised reproducer I see only the onabort callback is called instead of onerror. https://plnkr.co/edit/GViDNXbJzbEDBT2E
Updated•10 months ago
|
Comment 9•9 months ago
|
||
Initially I thought this would be as easy as detecting whether the global is dying or not. But apparently the global only dies shortly after the abort event is dispatched via XMLHttpRequestMainThread::OnStopRequest, and thus nsIGlobalObject::IsDying gives false. Still something should be triggering the network abort during the teardown and we should be able to read some state from there, but I'm not familiar about that part.
Maybe Kershaw knows better.
Comment 10•9 months ago
|
||
Updated•9 months ago
|
Comment 11•9 months ago
|
||
Comment on attachment 9501259 [details]
Bug 1505389 - Remove redundant XMLHttpRequestMainThread::mContext r=#necko-reviewers
Revision D257685 was moved to bug 1977642. Setting attachment 9501259 [details] to obsolete.
Updated•9 months ago
|
Updated•9 months ago
|
Comment 12•9 months ago
|
||
(In reply to Kagami Rosylight [:saschanaz] (they/them) from comment #9)
Initially I thought this would be as easy as detecting whether the global is dying or not. But apparently the global only dies shortly after the abort event is dispatched via XMLHttpRequestMainThread::OnStopRequest, and thus
nsIGlobalObject::IsDyinggives false. Still something should be triggering the network abort during the teardown and we should be able to read some state from there, but I'm not familiar about that part.Maybe Kershaw knows better.
Sorry, not familiar with this code.
Maybe Sunil can help?
Updated•7 months ago
|
Comment 14•23 days ago
|
||
moving to priority queue as blocking P1 webcompat issue.
| Assignee | ||
Comment 15•9 days ago
|
||
My apologies Sunil; I wanted to get the webcompat issue out of the way and so took a shot a this
| Assignee | ||
Comment 16•9 days ago
|
||
Fires readystatechange and loadend intead of abort
Comment 17•8 days ago
|
||
Comment 18•8 days ago
|
||
Comment 19•8 days ago
|
||
Backed out for causing wpt failures atXMLHttpRequest
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | /xhr/abort-after-stop.window.html | XMLHttpRequest : abort event should fire when stop() method is used - assert_equals: expected true but got false
| Assignee | ||
Updated•8 days ago
|
| Assignee | ||
Updated•8 days ago
|
Comment 20•8 days ago
|
||
Comment 21•7 days ago
|
||
| bugherder | ||
Comment 22•7 days ago
|
||
(In reply to Randell Jesup [:jesup] (needinfo me) from comment #15)
My apologies Sunil; I wanted to get the webcompat issue out of the way and so took a shot a this
No worries Randell, this unblocks Bug 833462 and Bug 1732512 for me. thank you
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/59603 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Description
•