-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1486008 [wpt PR 10424] - XMLHttpRequest: response header value co…
…ntaining 0x00, a=testonly Automatic update from web-platform-testsFetch/XHR: response header value containing 0x00 As discussed in whatwg/xhr#165 these should turn the response into a network error. -- wpt-commits: 3d172bc612e03a896b5611d9e9652f860995feef wpt-pr: 10424 UltraBlame original commit: 0d71b9cb47cea8e9ace98cbffa1585cd9c97c8ca
- Loading branch information
Showing
3 changed files
with
318 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
testing/web-platform/tests/fetch/api/basic/header-value-null-byte.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
promise_test | ||
( | ||
t | ||
= | ||
> | ||
{ | ||
return | ||
promise_rejects | ||
( | ||
t | ||
new | ||
TypeError | ||
( | ||
) | ||
fetch | ||
( | ||
" | ||
. | ||
. | ||
/ | ||
. | ||
. | ||
/ | ||
. | ||
. | ||
/ | ||
xhr | ||
/ | ||
resources | ||
/ | ||
parse | ||
- | ||
headers | ||
. | ||
py | ||
? | ||
my | ||
- | ||
custom | ||
- | ||
header | ||
= | ||
" | ||
+ | ||
encodeURIComponent | ||
( | ||
" | ||
x | ||
\ | ||
0x | ||
" | ||
) | ||
) | ||
) | ||
; | ||
} | ||
" | ||
Ensure | ||
fetch | ||
( | ||
) | ||
rejects | ||
null | ||
bytes | ||
in | ||
headers | ||
" | ||
) | ||
; |
Oops, something went wrong.