Closed Bug 1711406 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 29012 - [XHR] Stop content type sniffing for testing

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 29012 into mozilla-central (this bug is closed when the sync is complete).

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

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

[XHR] Stop content type sniffing for testing

xhr/event-error.sub.any.js checks whether the "loaded" and "total"
properties of "error" and "loadend" events, but it has a hidden
assumption: at least one progress events have already been dispatched.
To ensure that the assumption holds, diable the XHR content type
sniffing with adding some response headers.

Bug: 402812
Change-Id: I5eb0a50d675d5a9a112344f5fb0aedc8d79d9036

Reviewed-on: https://chromium-review.googlesource.com/2896659
WPT-Export-Revision: 2aea557905d68844edf1dea40ee793ad3e539de7

PR 29012 applied with additional changes from upstream: 20b739c0a0dfefd65fdf8782e07a79ee040fad91
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: 6
FAIL: 2

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/0f575c27c310
[wpt PR 29012] - [XHR] Stop content type sniffing for testing, 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.