Skip to content

Commit

Permalink
Bug 1486008 [wpt PR 10424] - XMLHttpRequest: response header value co…
Browse files Browse the repository at this point in the history
…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
marco-c committed Oct 3, 2019
1 parent 3248fe5 commit 67520af
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 48 deletions.
154 changes: 153 additions & 1 deletion testing/web-platform/meta/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -2137660,6 +2137660,130 @@ api
/
basic
/
header
-
value
-
null
-
byte
.
any
.
js
"
:
[
[
"
/
fetch
/
api
/
basic
/
header
-
value
-
null
-
byte
.
any
.
html
"
{
}
]
[
"
/
fetch
/
api
/
basic
/
header
-
value
-
null
-
byte
.
any
.
serviceworker
.
html
"
{
}
]
[
"
/
fetch
/
api
/
basic
/
header
-
value
-
null
-
byte
.
any
.
sharedworker
.
html
"
{
}
]
[
"
/
fetch
/
api
/
basic
/
header
-
value
-
null
-
byte
.
any
.
worker
.
html
"
{
}
]
]
"
fetch
/
api
/
basic
/
integrity
.
sub
Expand Down Expand Up @@ -3888415,6 +3888539,34 @@ api
/
basic
/
header
-
value
-
null
-
byte
.
any
.
js
"
:
[
"
9c223740c7807b43a6595ba81ef4f5b3c74c60b4
"
"
testharness
"
]
"
fetch
/
api
/
basic
/
integrity
.
sub
Expand Down Expand Up @@ -4411345,7 +4411497,7 @@ htm
:
[
"
466b0d977cc6cdba12190a27dfe42e6452ea98d8
84f2fc8582127b9a8e271887d420b3ea7a87696a
"
"
testharness
Expand Down
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
"
)
;
Loading

0 comments on commit 67520af

Please sign in to comment.