Open
Bug 1842970
Opened 10 months ago
Updated 9 months ago
Pass failing xhr WPTs related to aborting XMLHttpRequests on workers
Categories
(Core :: DOM: Networking, defect, P2)
Core
DOM: Networking
Tracking
()
NEW
People
(Reporter: twisniewski, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged][necko-monitor])
Our logic for workers is a bit off from the spec. We should be firing abort events right away when abort is called, not wait for the main thread to send us its related events. We can do this by ignoring all of the main-thread-sent abort events (save for the loadstarts and upload.loadend, so we know whether we have upload listeners).
We also don't quite follow the spec in other subtler terms that are most easily addressed by updating our implementation to just more closely match the spec-text around the related methods, and reduce the complexity of the code around abort events.
This would let us pass the last three WPTs related to this:
- https://wpt.fyi/results/xhr/abort-after-receive.any.worker.html
- https://wpt.fyi/results/xhr/abort-after-send.any.worker.html
- https://wpt.fyi/results/xhr/abort-during-upload.any.worker.html
I have a patch in progress to do this.
Reporter | ||
Updated•10 months ago
|
Summary: Pass failing xhr WPTs related to aborting XMLHttpRequests on worker → Pass failing xhr WPTs related to aborting XMLHttpRequests on workers
Updated•10 months ago
|
Component: DOM: Core & HTML → DOM: Networking
Updated•10 months ago
|
Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged][necko-monitor]
Reporter | ||
Comment 1•9 months ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•