Skip to content

Commit

Permalink
Bug 1687453 [wpt PR 27240] - Fetch: ensure preflight is required for …
Browse files Browse the repository at this point in the history
…Authorization/Range, a=testonly

Automatic update from web-platform-tests
Fetch: ensure preflight is required for Authorization/Range

Plus some minor cleanup.

We will likely have to treat Range as a special case for media elements (see whatwg/fetch#145) so creating this to ensure that only happens when Range is set by the user agent.

--

wpt-commits: 56116583e8a403e4b9d410c1429a83fbb96397f4
wpt-pr: 27240

UltraBlame original commit: fb94e67baa08bbced0bebf19114b1f7c8dc255a6
  • Loading branch information
marco-c committed Feb 10, 2021
1 parent ef66c90 commit a7e927d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ language
]
[
"
authorization
"
"
basics
"
]
[
"
content
-
language
Expand Down Expand Up @@ -86,6 +94,16 @@ long
]
[
"
range
"
"
bytes
0
-
"
]
[
"
test
"
"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ headers
return
fetch
(
RESOURCES_DIR
+
"
.
.
/
resources
/
authentication
.
py
Expand Down Expand Up @@ -196,3 +199,28 @@ omit
200
)
;
basicAuth
(
"
User
-
added
bogus
Authorization
header
with
omit
mode
"
"
notuser
"
"
notpassword
"
"
omit
"
401
)
;
27 changes: 0 additions & 27 deletions testing/web-platform/tests/fetch/api/resources/utils.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
var
inWorker
=
false
;
var
RESOURCES_DIR
=
"
Expand All @@ -14,28 +9,6 @@ resources
/
"
;
try
{
inWorker
=
!
(
self
instanceof
Window
)
;
}
catch
(
e
)
{
inWorker
=
true
;
}
function
dirname
(
Expand Down

0 comments on commit a7e927d

Please sign in to comment.