Change RequestInit origin type to ImmutableOrigin

This commit is contained in:
Fausto Núñez Alberro 2017-04-26 01:07:31 +02:00 committed by Fausto Núñez Alberro
parent 104e0b4730
commit 6032940fb8
32 changed files with 173 additions and 529 deletions

View file

@ -12,6 +12,3 @@
[Allow origin: [tab\]undefined//undefined]
expected: FAIL
[Allow origin: _http://web-platform.test:8000___[tab\]_]
expected: FAIL

View file

@ -1,17 +0,0 @@
[origin.htm]
type: testharness
[Allow origin: undefined//undefined]
expected: FAIL
[Allow origin: _undefined//undefined]
expected: FAIL
[Allow origin: _undefined//undefined___[tab\]_]
expected: FAIL
[Allow origin: [tab\]undefined//undefined]
expected: FAIL
[Allow origin: _http://web-platform.test:8000___[tab\]_]
expected: FAIL

View file

@ -1,17 +0,0 @@
[mode-same-origin.any.worker.html]
type: testharness
[Fetch https://web-platform.test:8443/fetch/api/resources/top.txt with same-origin mode]
expected: FAIL
[Fetch http://www1.web-platform.test:8000/fetch/api/resources/top.txt with same-origin mode]
expected: FAIL
[mode-same-origin.any.html]
type: testharness
[Fetch https://web-platform.test:8443/fetch/api/resources/top.txt with same-origin mode]
expected: FAIL
[Fetch http://www1.web-platform.test:8000/fetch/api/resources/top.txt with same-origin mode]
expected: FAIL

View file

@ -3,93 +3,32 @@
[Same domain different port [no-cors mode\]]
expected: FAIL
[Same domain different port [server forbid CORS\]]
expected: FAIL
[Same domain different port [cors mode\]]
expected: FAIL
[Same domain different protocol different port [no-cors mode\]]
expected: FAIL
[Same domain different protocol different port [server forbid CORS\]]
expected: FAIL
[Same domain different protocol different port [cors mode\]]
expected: FAIL
[Cross domain basic usage [no-cors mode\]]
expected: FAIL
[Cross domain basic usage [server forbid CORS\]]
expected: FAIL
[Cross domain basic usage [cors mode\]]
expected: FAIL
[Cross domain different port [no-cors mode\]]
expected: FAIL
[Cross domain different port [server forbid CORS\]]
expected: FAIL
[Cross domain different port [cors mode\]]
expected: FAIL
[Cross domain different protocol [no-cors mode\]]
expected: FAIL
[Cross domain different protocol [server forbid CORS\]]
expected: FAIL
[Cross domain different protocol [cors mode\]]
expected: FAIL
[cors-basic.any.html]
type: testharness
[Same domain different port [no-cors mode\]]
expected: FAIL
[Same domain different port [server forbid CORS\]]
expected: FAIL
[Same domain different port [cors mode\]]
expected: FAIL
[Same domain different protocol different port [no-cors mode\]]
expected: FAIL
[Same domain different protocol different port [server forbid CORS\]]
expected: FAIL
[Same domain different protocol different port [cors mode\]]
expected: FAIL
[Cross domain basic usage [no-cors mode\]]
expected: FAIL
[Cross domain basic usage [server forbid CORS\]]
expected: FAIL
[Cross domain basic usage [cors mode\]]
expected: FAIL
[Cross domain different port [no-cors mode\]]
expected: FAIL
[Cross domain different port [server forbid CORS\]]
expected: FAIL
[Cross domain different port [cors mode\]]
expected: FAIL
[Cross domain different protocol [no-cors mode\]]
expected: FAIL
[Cross domain different protocol [server forbid CORS\]]
expected: FAIL
[Cross domain different protocol [cors mode\]]
expected: FAIL

View file

@ -6,12 +6,11 @@
[Include mode: remote cookies are not sent with local request]
expected: FAIL
[Same-origin mode: cookies are discarded in cors request]
expected: FAIL
[cors-cookies.any.worker.html]
type: testharness
[Include mode: 1 cookie]
expected: FAIL
[Include mode: local cookies are not sent with remote request]
expected: FAIL
@ -21,3 +20,17 @@
[Same-origin mode: cookies are discarded in cors request]
expected: FAIL
[Include mode: 1 cookie]
expected: FAIL
[Include mode: remote cookies are not sent with local request]
expected: FAIL
[Same-origin mode: cookies are discarded in cors request]
expected: FAIL
[Include mode: remote cookies are not sent with other remote request]
expected: FAIL
[Include mode: local cookies are not sent with remote request]
expected: FAIL

View file

@ -3,6 +3,3 @@
[Basic Access-Control-Expose-Headers: * support]
expected: FAIL
[Cannot use * for credentialed fetches]
expected: FAIL

View file

@ -1,68 +1,8 @@
[cors-filtering-worker.html]
type: testharness
[CORS filter on Cache-Control header]
expected: FAIL
[CORS filter on Content-Language header]
expected: FAIL
[CORS filter on Content-Type header]
expected: FAIL
[CORS filter on Expires header]
expected: FAIL
[CORS filter on Last-Modified header]
expected: FAIL
[CORS filter on Pragma header]
expected: FAIL
[CORS filter on Age header]
expected: FAIL
[CORS filter on Server header]
expected: FAIL
[CORS filter on Warning header]
expected: FAIL
[CORS filter on Content-Length header]
expected: FAIL
[CORS filter on Set-Cookie header]
expected: FAIL
[CORS filter on Set-Cookie2 header]
expected: FAIL
[CORS filter on Age header, header is exposed]
expected: FAIL
[CORS filter on Server header, header is exposed]
expected: FAIL
[CORS filter on Warning header, header is exposed]
expected: FAIL
[CORS filter on Content-Length header, header is exposed]
expected: FAIL
[CORS filter on Set-Cookie header, header is exposed]
expected: FAIL
[CORS filter on Set-Cookie2 header, header is exposed]
expected: FAIL
[CORS filter on Set-Cookie header, header is forbidden]
expected: FAIL
[CORS filter on Set-Cookie2 header, header is forbidden]
expected: FAIL
[CORS filter on Set-Cookie header, header is forbidden(credentials = include)]
expected: FAIL
[CORS filter on Set-Cookie2 header, header is forbidden(credentials = include)]
expected: FAIL

View file

@ -1,68 +1,8 @@
[cors-filtering.html]
type: testharness
[CORS filter on Cache-Control header]
expected: FAIL
[CORS filter on Content-Language header]
expected: FAIL
[CORS filter on Content-Type header]
expected: FAIL
[CORS filter on Expires header]
expected: FAIL
[CORS filter on Last-Modified header]
expected: FAIL
[CORS filter on Pragma header]
expected: FAIL
[CORS filter on Age header]
expected: FAIL
[CORS filter on Server header]
expected: FAIL
[CORS filter on Warning header]
expected: FAIL
[CORS filter on Content-Length header]
expected: FAIL
[CORS filter on Set-Cookie header]
expected: FAIL
[CORS filter on Set-Cookie2 header]
expected: FAIL
[CORS filter on Age header, header is exposed]
expected: FAIL
[CORS filter on Server header, header is exposed]
expected: FAIL
[CORS filter on Warning header, header is exposed]
expected: FAIL
[CORS filter on Content-Length header, header is exposed]
expected: FAIL
[CORS filter on Set-Cookie header, header is exposed]
expected: FAIL
[CORS filter on Set-Cookie2 header, header is exposed]
expected: FAIL
[CORS filter on Set-Cookie header, header is forbidden]
expected: FAIL
[CORS filter on Set-Cookie2 header, header is forbidden]
expected: FAIL
[CORS filter on Set-Cookie header, header is forbidden(credentials = include)]
expected: FAIL
[CORS filter on Set-Cookie2 header, header is forbidden(credentials = include)]
expected: FAIL

View file

@ -1,5 +1,32 @@
[cors-multiple-origins-worker.html]
type: testharness
[3 origins allowed, no match]
[3 origins allowed, match the 3rd (http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match the 3rd ("*")]
expected: FAIL
[3 origins allowed, match twice (http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match twice ("*")]
expected: FAIL
[3 origins allowed, match twice ("*" and http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match the 3rd (http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match the 3rd ("*")]
expected: FAIL
[3 origins allowed, match twice (http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match twice ("*")]
expected: FAIL
[3 origins allowed, match twice ("*" and http://web-platform.test:8000)]
expected: FAIL

View file

@ -1,5 +1,32 @@
[cors-multiple-origins.html]
type: testharness
[3 origins allowed, no match]
[3 origins allowed, match the 3rd (http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match the 3rd ("*")]
expected: FAIL
[3 origins allowed, match twice (http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match twice ("*")]
expected: FAIL
[3 origins allowed, match twice ("*" and http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match the 3rd (http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match the 3rd ("*")]
expected: FAIL
[3 origins allowed, match twice (http://web-platform.test:8000)]
expected: FAIL
[3 origins allowed, match twice ("*")]
expected: FAIL
[3 origins allowed, match twice ("*" and http://web-platform.test:8000)]
expected: FAIL

View file

@ -1,59 +0,0 @@
[cors-origin.any.html]
type: testharness
[Cross domain different subdomain [origin KO\]]
expected: FAIL
[Same domain different port [origin KO\]]
expected: FAIL
[Cross domain different port [origin KO\]]
expected: FAIL
[Cross domain different protocol [origin KO\]]
expected: FAIL
[Same domain different protocol different port [origin KO\]]
expected: FAIL
[Cross domain [POST\] [origin KO\]]
expected: FAIL
[Cross domain [HEAD\] [origin KO\]]
expected: FAIL
[CORS preflight [PUT\] [origin KO\]]
expected: FAIL
[Allowed origin: "" [origin KO\]]
expected: FAIL
[cors-origin.any.worker.html]
type: testharness
[Cross domain different subdomain [origin KO\]]
expected: FAIL
[Same domain different port [origin KO\]]
expected: FAIL
[Cross domain different port [origin KO\]]
expected: FAIL
[Cross domain different protocol [origin KO\]]
expected: FAIL
[Same domain different protocol different port [origin KO\]]
expected: FAIL
[Cross domain [POST\] [origin KO\]]
expected: FAIL
[Cross domain [HEAD\] [origin KO\]]
expected: FAIL
[CORS preflight [PUT\] [origin KO\]]
expected: FAIL
[Allowed origin: "" [origin KO\]]
expected: FAIL

View file

@ -1,20 +1,11 @@
[cors-preflight-star.any.html]
type: testharness
[CORS that succeeds with credentials: false; method: GET (allowed: get); header: X-Test,1 (allowed: x-test)]
expected: FAIL
[CORS that succeeds with credentials: false; method: SUPER (allowed: *); header: X-Test,1 (allowed: x-test)]
expected: FAIL
[CORS that succeeds with credentials: false; method: OK (allowed: *); header: X-Test,1 (allowed: *)]
expected: FAIL
[CORS that fails with credentials: true; method: PUT (allowed: *); header: undefined (allowed: )]
expected: FAIL
[CORS that fails with credentials: true; method: PUT (allowed: put); header: undefined (allowed: *)]
expected: FAIL
[CORS that fails with credentials: true; method: GET (allowed: get); header: X-Test,1 (allowed: *)]
expected: FAIL
@ -24,24 +15,12 @@
[cors-preflight-star.any.worker.html]
type: testharness
[CORS that succeeds with credentials: false; method: GET (allowed: get); header: X-Test,1 (allowed: x-test)]
expected: FAIL
[CORS that succeeds with credentials: false; method: SUPER (allowed: *); header: X-Test,1 (allowed: x-test)]
expected: FAIL
[CORS that succeeds with credentials: false; method: OK (allowed: *); header: X-Test,1 (allowed: *)]
expected: FAIL
[CORS that fails with credentials: true; method: PUT (allowed: *); header: undefined (allowed: )]
expected: FAIL
[CORS that fails with credentials: true; method: PUT (allowed: put); header: undefined (allowed: *)]
expected: FAIL
[CORS that fails with credentials: true; method: GET (allowed: get); header: X-Test,1 (allowed: *)]
expected: FAIL
[CORS that fails with credentials: true; method: GET (allowed: *); header: X-Test,1 (allowed: *)]
[CORS that succeeds with credentials: false; method: GET (allowed: get); header: X-Test,1 (allowed: x-test)]
expected: FAIL

View file

@ -3,15 +3,9 @@
[CORS [DELETE\], server allows]
expected: FAIL
[CORS [DELETE\], server refuses]
expected: FAIL
[CORS [PUT\], server allows]
expected: FAIL
[CORS [PUT\], server refuses]
expected: FAIL
[CORS [PATCH\], server allows]
expected: FAIL
@ -33,9 +27,6 @@
[CORS [PUT\] [several headers\], server allows]
expected: FAIL
[CORS [PUT\] [several headers\], server refuses]
expected: FAIL
[CORS [PUT\] [only safe headers\], server allows]
expected: FAIL
@ -45,15 +36,9 @@
[CORS [DELETE\], server allows]
expected: FAIL
[CORS [DELETE\], server refuses]
expected: FAIL
[CORS [PUT\], server allows]
expected: FAIL
[CORS [PUT\], server refuses]
expected: FAIL
[CORS [PATCH\], server allows]
expected: FAIL
@ -75,9 +60,6 @@
[CORS [PUT\] [several headers\], server allows]
expected: FAIL
[CORS [PUT\] [several headers\], server refuses]
expected: FAIL
[CORS [PUT\] [only safe headers\], server allows]
expected: FAIL

View file

@ -1,95 +0,0 @@
[cors-redirect-credentials.any.worker.html]
type: testharness
[Redirect 301 from remote to same remote with user and password]
expected: FAIL
[Redirect 301 from remote to same remote with user]
expected: FAIL
[Redirect 301 from remote to same remote with password]
expected: FAIL
[Redirect 302 from remote to same remote with user and password]
expected: FAIL
[Redirect 302 from remote to same remote with user]
expected: FAIL
[Redirect 302 from remote to same remote with password]
expected: FAIL
[Redirect 303 from remote to same remote with user and password]
expected: FAIL
[Redirect 303 from remote to same remote with user]
expected: FAIL
[Redirect 303 from remote to same remote with password]
expected: FAIL
[Redirect 307 from remote to same remote with user and password]
expected: FAIL
[Redirect 307 from remote to same remote with user]
expected: FAIL
[Redirect 307 from remote to same remote with password]
expected: FAIL
[Redirect 308 from remote to same remote with user and password]
expected: FAIL
[Redirect 308 from remote to same remote with user]
expected: FAIL
[Redirect 308 from remote to same remote with password]
expected: FAIL
[cors-redirect-credentials.any.html]
type: testharness
[Redirect 301 from remote to same remote with user and password]
expected: FAIL
[Redirect 301 from remote to same remote with user]
expected: FAIL
[Redirect 301 from remote to same remote with password]
expected: FAIL
[Redirect 302 from remote to same remote with user and password]
expected: FAIL
[Redirect 302 from remote to same remote with user]
expected: FAIL
[Redirect 302 from remote to same remote with password]
expected: FAIL
[Redirect 303 from remote to same remote with user and password]
expected: FAIL
[Redirect 303 from remote to same remote with user]
expected: FAIL
[Redirect 303 from remote to same remote with password]
expected: FAIL
[Redirect 307 from remote to same remote with user and password]
expected: FAIL
[Redirect 307 from remote to same remote with user]
expected: FAIL
[Redirect 307 from remote to same remote with password]
expected: FAIL
[Redirect 308 from remote to same remote with user and password]
expected: FAIL
[Redirect 308 from remote to same remote with user]
expected: FAIL
[Redirect 308 from remote to same remote with password]
expected: FAIL

View file

@ -63,45 +63,30 @@
[cors-redirect.any.html]
type: testharness
[Redirect 301: cors to same cors]
expected: FAIL
[Redirect 301: cors to another cors]
expected: FAIL
[Redirect 301: cors to same origin]
expected: FAIL
[Redirect 302: cors to same cors]
expected: FAIL
[Redirect 302: cors to another cors]
expected: FAIL
[Redirect 302: cors to same origin]
expected: FAIL
[Redirect 303: cors to same cors]
expected: FAIL
[Redirect 303: cors to another cors]
expected: FAIL
[Redirect 303: cors to same origin]
expected: FAIL
[Redirect 307: cors to same cors]
expected: FAIL
[Redirect 307: cors to another cors]
expected: FAIL
[Redirect 307: cors to same origin]
expected: FAIL
[Redirect 308: cors to same cors]
expected: FAIL
[Redirect 308: cors to another cors]
expected: FAIL