Closed Bug 1695216 Opened 3 years ago Closed 9 months ago

XMLHttpRequest should reset response upon receiving a bad chunk

Categories

(Core :: DOM: Networking, defect, P2)

defect

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: annevk, Assigned: twisniewski)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(2 files, 1 obsolete file)

See https://github.com/whatwg/xhr/pull/315 and https://github.com/web-platform-tests/wpt/pull/27778. With chunked encoding Firefox does not reset responseText and such upon receiving garbage. Presumably this also applies to a bad chunk from a ReadableStream object, but I didn't explicitly test that scenario.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged]

Anne, my interpretation of this is that the spec has evolved to account for a defect, and you've filed this bug to track the fact that our implementation should catch up. P2 based on that - but let me know if my interpretation is wrong.

Flags: needinfo?(annevk)

(and the defect in question does not seem to me to be a P1 to fix)

It doesn't seem particularly high priority, but good to fix to align our behavior with the spec and other browsers.

Blocks: xhr
Flags: needinfo?(annevk)
Assignee: nobody → nhnt11
Status: NEW → ASSIGNED
Attachment #9240450 - Attachment is obsolete: true
Pushed by nhnt11@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/914436169022
XMLHttpRequest should reset response upon receiving a bad chunk. r=annevk,necko-reviewers

Backed out changeset 914436169022 (Bug 1695216) for causing build bustages.
Backout link
Push with failures - B
Failure Log

Flags: needinfo?(nhnt11)
Attachment #9240158 - Attachment description: Bug 1695216 - XMLHttpRequest should reset response upon receiving a bad chunk. r=annevk!,#necko! → Bug 1695216 - XMLHttpRequest should reset response upon network errors. r=annevk!,#necko!
Pushed by nhnt11@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c6819fdea3a5
XMLHttpRequest should reset response upon network errors. r=annevk,necko-reviewers
Backout by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ea893f7838e1
Backed out changeset c6819fdea3a5 for causing XMLHttpRequestWorker related crashes. CLOSED TREE
Flags: needinfo?(nhnt11)

Recalibrating my priorities. I might pick this back up. The patch is pretty much there, but need to iron out the test failures.

Assignee: nhnt11 → nobody
Status: ASSIGNED → NEW
  • clear the response on network failure (bad chunks, etc).
  • throw the expected error for abort/timeout/error for sync XHR failures.
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Pushed by twisniewski@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9e7d1a045e6c
Follow the XMLHttpRequest spec more closely for network and other errors; r=kershaw,sunil
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: