Closed Bug 1486008 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 10424 - XMLHttpRequest: response header value containing 0x00

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Anne van Kesteren <annevk@annevk.nl> wrote:
>  XMLHttpRequest: response header value containing 0x00
>  
>  As discussed in https://github.com/whatwg/xhr/issues/165 these should turn the response into a network error.
>  
>  
>
Component: web-platform-tests → DOM
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 5 tests and 19 subtests
OK     : 5
PASS   : 11
FAIL   : 8

Existing tests that now have a worse result (e.g. they used to PASS and now FAIL):
/xhr/headers-normalize-response.htm
    Header value: \0: FAIL
    Header value: hello\0world: FAIL

New tests that have failures or other problems:
/fetch/api/basic/header-value-null-byte.any.html
    Ensure fetch() rejects null bytes in headers: FAIL
/fetch/api/basic/header-value-null-byte.any.serviceworker.html
    Ensure fetch() rejects null bytes in headers: FAIL
/fetch/api/basic/header-value-null-byte.any.sharedworker.html
    Ensure fetch() rejects null bytes in headers: FAIL
/fetch/api/basic/header-value-null-byte.any.worker.html
    Ensure fetch() rejects null bytes in headers: FAIL
/xhr/headers-normalize-response.htm
    Header value: \0hello world: FAIL
    Header value: hello world\0: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0d71b9cb47ce
[wpt PR 10424] - XMLHttpRequest: response header value containing 0x00, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/91d5d5449705
[wpt PR 10424] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/0d71b9cb47ce
https://hg.mozilla.org/mozilla-central/rev/91d5d5449705
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.