Closed Bug 1711186 Opened 4 years ago Closed 3 years ago

[wpt-sync] Sync PR 28995 - [XHR] length and transmitted should be zero in "request error steps"

Categories

(Core :: DOM: Networking, task, P4)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 28995 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/28995
Details from upstream follow.

b'Yutaka Hirano <yhirano@chromium.org>' wrote:

[XHR] length and transmitted should be zero in "request error steps"

As specified at https://xhr.spec.whatwg.org/#request-error-steps, give
0 and 0 for length and transmitted to
https://xhr.spec.whatwg.org/#concept-event-fire-progress. This change
is too subtle for an intent.

Bug: 402812
Change-Id: I7231f96af016b36d3ee3dc24b42bc18ba21a1470

Reviewed-on: https://chromium-review.googlesource.com/2892239
WPT-Export-Revision: bf771d9deb0b84d3388aef2ffc5f14f9ae4f4119

Component: web-platform-tests → DOM: Networking
Product: Testing → Core

CI Results

Ran 15 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 4 tests and 2 subtests

Status Summary

Firefox

OK : 4
PASS: 5
FAIL: 3

Chrome

OK : 4
PASS: 8

Safari

OK : 4
PASS: 6
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/xhr/response-body-errors.any.html
Asynchronous XMLHttpRequest should clear response on bad chunk: FAIL
/xhr/response-body-errors.any.worker.html
Synchronous XMLHttpRequest should throw on bad chunk: FAIL
Asynchronous XMLHttpRequest should clear response on bad chunk: FAIL

New Tests That Don't Pass

/xhr/response-body-errors.any.html
Asynchronous XMLHttpRequest should clear response on bad chunk: FAIL (Chrome: PASS, Safari: PASS)
/xhr/response-body-errors.any.worker.html
Synchronous XMLHttpRequest should throw on bad chunk: FAIL (Chrome: PASS, Safari: PASS)
Asynchronous XMLHttpRequest should clear response on bad chunk: FAIL (Chrome: PASS, Safari: PASS)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/30190dcc9bcf [wpt PR 28995] - [XHR] length and transmitted should be zero in "request error steps", a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.