Title: [203732] trunk
Revision
203732
Author
commit-qu...@webkit.org
Date
2016-07-26 13:18:03 -0700 (Tue, 26 Jul 2016)

Log Message

[Fetch API] Add support for fetch mode, in particular cors
https://bugs.webkit.org/show_bug.cgi?id=156753

Patch by Youenn Fablet <you...@apple.com> on 2016-07-26
Reviewed by Darin Adler.

LayoutTests/imported/w3c:

Rebasing tests.

* web-platform-tests/fetch/api/basic/integrity-expected.txt:
* web-platform-tests/fetch/api/basic/integrity-worker-expected.txt:
* web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt:
* web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt:
* web-platform-tests/fetch/api/cors/cors-basic-expected.txt:
* web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt:
* web-platform-tests/fetch/api/cors/cors-cookies-expected.txt:
* web-platform-tests/fetch/api/cors/cors-cookies-worker-expected.txt:
* web-platform-tests/fetch/api/cors/cors-filtering-expected.txt:
* web-platform-tests/fetch/api/cors/cors-filtering-worker-expected.txt:
* web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt:
* web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt:
* web-platform-tests/fetch/api/cors/cors-preflight-expected.txt:
* web-platform-tests/fetch/api/cors/cors-preflight-referrer-worker-expected.txt:
* web-platform-tests/fetch/api/cors/cors-preflight-worker-expected.txt:
* web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt:
* web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt:
* web-platform-tests/fetch/api/credentials/authentication-basic-worker-expected.txt:
* web-platform-tests/fetch/api/request/request-cache-expected.txt:

Source/WebCore:

Covered by rebased tests.

* Modules/fetch/FetchLoader.cpp:
(WebCore::FetchLoader::start): Passing fetch mode to ThreadableLoader.
Disabling as a temp fix credentials in case of CORS mode as credential options is not yet supported and would make several tests fail.

LayoutTests:

Rebasing specific expectations as Maci/iOS WK2 does not like https tests.

* platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt: Added.
* platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt: Added.
* platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt: Added.
* platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt: Added.
* platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt: Added.
* platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt: Added.
* platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt: Added.
* platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (203731 => 203732)


--- trunk/LayoutTests/ChangeLog	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/ChangeLog	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,3 +1,21 @@
+2016-07-26  Youenn Fablet  <you...@apple.com>
+
+        [Fetch API] Add support for fetch mode, in particular cors
+        https://bugs.webkit.org/show_bug.cgi?id=156753
+
+        Reviewed by Darin Adler.
+
+        Rebasing specific expectations as Maci/iOS WK2 does not like https tests.
+
+        * platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt: Added.
+        * platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt: Added.
+        * platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt: Added.
+        * platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt: Added.
+        * platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt: Added.
+        * platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt: Added.
+        * platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt: Added.
+        * platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt: Added.
+
 2016-07-26  Chris Dumez  <cdu...@apple.com>
 
         Align NamedNodeMap with the specification

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,3 +1,32 @@
+2016-07-26  Youenn Fablet  <you...@apple.com>
+
+        [Fetch API] Add support for fetch mode, in particular cors
+        https://bugs.webkit.org/show_bug.cgi?id=156753
+
+        Reviewed by Darin Adler.
+
+        Rebasing tests.
+
+        * web-platform-tests/fetch/api/basic/integrity-expected.txt:
+        * web-platform-tests/fetch/api/basic/integrity-worker-expected.txt:
+        * web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt:
+        * web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-basic-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-cookies-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-cookies-worker-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-filtering-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-filtering-worker-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-preflight-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-preflight-referrer-worker-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-preflight-worker-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt:
+        * web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt:
+        * web-platform-tests/fetch/api/credentials/authentication-basic-worker-expected.txt:
+        * web-platform-tests/fetch/api/request/request-cache-expected.txt:
+
 2016-07-26  Chris Dumez  <cdu...@apple.com>
 
         Align NamedNodeMap with the specification

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/integrity-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/integrity-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/integrity-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -9,7 +9,7 @@
 PASS Multiple integrities: invalid as strong as valid 
 PASS Multiple integrities: both are valid 
 FAIL Multiple integrities: both are invalid assert_unreached: Should have rejected. Reached unreachable code
-FAIL CORS empty integrity promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS SHA-512 integrity promise_test: Unhandled rejection with value: object "TypeError: Type error"
-PASS CORS invalid integrity 
+PASS CORS empty integrity 
+PASS CORS SHA-512 integrity 
+FAIL CORS invalid integrity assert_unreached: Should have rejected. Reached unreachable code
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/integrity-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/integrity-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/integrity-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -9,7 +9,7 @@
 PASS Multiple integrities: invalid as strong as valid 
 PASS Multiple integrities: both are valid 
 FAIL Multiple integrities: both are invalid assert_unreached: Should have rejected. Reached unreachable code
-FAIL CORS empty integrity promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS SHA-512 integrity promise_test: Unhandled rejection with value: object "TypeError: Type error"
-PASS CORS invalid integrity 
+PASS CORS empty integrity 
+PASS CORS SHA-512 integrity 
+FAIL CORS invalid integrity assert_unreached: Should have rejected. Reached unreachable code
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,6 +1,6 @@
 
 PASS Fetch ../resources/top.txt with no-cors mode 
 PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode 
-FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode assert_equals: Opaque filter: status is 0 expected 0 but got 200
+FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode assert_equals: Opaque filter: status is 0 expected 0 but got 200
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,6 +1,6 @@
 
 PASS Fetch ../resources/top.txt with no-cors mode 
 PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode 
-FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode assert_equals: Opaque filter: status is 0 expected 0 but got 200
+FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode assert_equals: Opaque filter: status is 0 expected 0 but got 200
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,17 +1,17 @@
 
-FAIL Same domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
 PASS Same domain different port [server forbid CORS] 
-FAIL Same domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Same domain different protocol different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
 PASS Same domain different protocol different port [server forbid CORS] 
-FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Cross domain basic usage [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Same domain different protocol different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
 PASS Cross domain basic usage [server forbid CORS] 
-FAIL Cross domain basic usage [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Cross domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
 PASS Cross domain different port [server forbid CORS] 
-FAIL Cross domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different protocol [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
 PASS Cross domain different protocol [server forbid CORS] 
-FAIL Cross domain different protocol [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain different protocol [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,16 +1,16 @@
 
-FAIL Same domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
 PASS Same domain different port [server forbid CORS] 
-FAIL Same domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
 FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
 PASS Same domain different protocol different port [server forbid CORS] 
 FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Cross domain basic usage [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
 PASS Cross domain basic usage [server forbid CORS] 
-FAIL Cross domain basic usage [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Cross domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
 PASS Cross domain different port [server forbid CORS] 
-FAIL Cross domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
 FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
 PASS Cross domain different protocol [server forbid CORS] 
 FAIL Cross domain different protocol [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-cookies-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-cookies-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-cookies-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,8 +1,8 @@
 
 FAIL Omit mode: no cookie sent assert_false: Request should have no cookie expected false got true
-FAIL Include mode: 1 cookie promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Include mode: local cookies are not sent with remote request promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Include mode: remote cookies are not sent with local request promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Same-origin mode: cookies are discarded in cors request promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Include mode: 1 cookie assert_equals: Request includes cookie(s) expected (string) "a=1" but got (object) null
+PASS Include mode: local cookies are not sent with remote request 
+PASS Include mode: remote cookies are not sent with local request 
+PASS Same-origin mode: cookies are discarded in cors request 
 FAIL Include mode: remote cookies are not sent with other remote request promise_test: Unhandled rejection with value: object "TypeError: Type error"
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-cookies-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-cookies-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-cookies-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,8 +1,8 @@
 
 FAIL Omit mode: no cookie sent assert_false: Request should have no cookie expected false got true
-FAIL Include mode: 1 cookie promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Include mode: local cookies are not sent with remote request promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Include mode: remote cookies are not sent with local request promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL Same-origin mode: cookies are discarded in cors request promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Include mode: 1 cookie assert_equals: Request includes cookie(s) expected (string) "a=1" but got (object) null
+PASS Include mode: local cookies are not sent with remote request 
+PASS Include mode: remote cookies are not sent with local request 
+PASS Same-origin mode: cookies are discarded in cors request 
 FAIL Include mode: remote cookies are not sent with other remote request promise_test: Unhandled rejection with value: object "TypeError: Type error"
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-filtering-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-filtering-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-filtering-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,20 +1,20 @@
 
-FAIL CORS filter on Cache-Control header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Content-Language header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Content-Type header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Expires header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Last-Modified header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Pragma header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Age header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Server header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Warning header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Content-Length header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Set-Cookie header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Set-Cookie2 header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Age header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Server header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Warning header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Content-Length header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Set-Cookie header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Set-Cookie2 header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL CORS filter on Cache-Control header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Content-Language header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Content-Type header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Expires header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Last-Modified header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Pragma header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Age header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Server header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Warning header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Content-Length header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Set-Cookie header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Set-Cookie2 header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Age header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Server header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Warning header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Content-Length header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Set-Cookie header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Set-Cookie2 header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-filtering-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-filtering-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-filtering-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,20 +1,20 @@
 
-FAIL CORS filter on Cache-Control header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Content-Language header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Content-Type header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Expires header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Last-Modified header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Pragma header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Age header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Server header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Warning header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Content-Length header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Set-Cookie header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Set-Cookie2 header promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Age header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Server header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Warning header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Content-Length header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Set-Cookie header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL CORS filter on Set-Cookie2 header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL CORS filter on Cache-Control header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Content-Language header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Content-Type header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Expires header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Last-Modified header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Pragma header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Age header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Server header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Warning header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Content-Length header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Set-Cookie header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Set-Cookie2 header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Age header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Server header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Warning header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Content-Length header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Set-Cookie header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
+FAIL CORS filter on Set-Cookie2 header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,8 +1,8 @@
 
-FAIL 3 origins allowed, match the 3rd (http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL 3 origins allowed, match the 3rd ("*") promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL 3 origins allowed, match twice (http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL 3 origins allowed, match twice ("*") promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL 3 origins allowed, match twice ("*" and http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS 3 origins allowed, match the 3rd (http://localhost:8800) 
+PASS 3 origins allowed, match the 3rd ("*") 
+PASS 3 origins allowed, match twice (http://localhost:8800) 
+PASS 3 origins allowed, match twice ("*") 
+PASS 3 origins allowed, match twice ("*" and http://localhost:8800) 
 PASS 3 origins allowed, no match 
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,8 +1,8 @@
 
-FAIL 3 origins allowed, match the 3rd (http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL 3 origins allowed, match the 3rd ("*") promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL 3 origins allowed, match twice (http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL 3 origins allowed, match twice ("*") promise_test: Unhandled rejection with value: object "TypeError: Type error"
-FAIL 3 origins allowed, match twice ("*" and http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS 3 origins allowed, match the 3rd (http://localhost:8800) 
+PASS 3 origins allowed, match the 3rd ("*") 
+PASS 3 origins allowed, match twice (http://localhost:8800) 
+PASS 3 origins allowed, match twice ("*") 
+PASS 3 origins allowed, match twice ("*" and http://localhost:8800) 
 PASS 3 origins allowed, no match 
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,16 +1,16 @@
 
-FAIL CORS [DELETE], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS CORS [DELETE], server allows 
 PASS CORS [DELETE], server refuses 
-FAIL CORS [PUT], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS CORS [PUT], server allows 
 PASS CORS [PUT], server refuses 
-FAIL CORS [PATCH], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS CORS [PATCH], server allows 
 PASS CORS [PATCH], server refuses 
-FAIL CORS [NEW], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS CORS [NEW], server allows 
 PASS CORS [NEW], server refuses 
-FAIL CORS [GET] [x-test-header: allowed], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS CORS [GET] [x-test-header: allowed], server allows 
 PASS CORS [GET] [x-test-header: refused], server refuses 
-FAIL CORS [GET] [several headers], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS CORS [GET] [several headers], server allows 
 PASS CORS [GET] [several headers], server refuses 
-FAIL CORS [PUT] [several headers], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS CORS [PUT] [several headers], server allows 
 PASS CORS [PUT] [several headers], server refuses 
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-referrer-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-referrer-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-referrer-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,9 +1,7 @@
 
-Harness Error (TIMEOUT), message = null
+FAIL Referrer policy: no-referrer promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Referrer policy: "" promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Referrer policy: origin promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Referrer policy: origin-when-cross-origin promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Referrer policy: unsafe-url promise_test: Unhandled rejection with value: object "TypeError: Type error"
 
-FAIL Referrer policy: no-referrer assert_equals: Clean stash response's status is 200 expected 200 but got 500
-TIMEOUT Referrer policy: "" Test timed out
-TIMEOUT Referrer policy: origin Test timed out
-TIMEOUT Referrer policy: origin-when-cross-origin Test timed out
-TIMEOUT Referrer policy: unsafe-url Test timed out
-

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,18 +1,16 @@
 
-Harness Error (TIMEOUT), message = null
+PASS CORS [DELETE], server allows 
+PASS CORS [DELETE], server refuses 
+PASS CORS [PUT], server allows 
+PASS CORS [PUT], server refuses 
+PASS CORS [PATCH], server allows 
+PASS CORS [PATCH], server refuses 
+PASS CORS [NEW], server allows 
+PASS CORS [NEW], server refuses 
+PASS CORS [GET] [x-test-header: allowed], server allows 
+PASS CORS [GET] [x-test-header: refused], server refuses 
+PASS CORS [GET] [several headers], server allows 
+PASS CORS [GET] [several headers], server refuses 
+PASS CORS [PUT] [several headers], server allows 
+PASS CORS [PUT] [several headers], server refuses 
 
-FAIL CORS [DELETE], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
-TIMEOUT CORS [DELETE], server refuses Test timed out
-TIMEOUT CORS [PUT], server allows Test timed out
-TIMEOUT CORS [PUT], server refuses Test timed out
-TIMEOUT CORS [PATCH], server allows Test timed out
-TIMEOUT CORS [PATCH], server refuses Test timed out
-TIMEOUT CORS [NEW], server allows Test timed out
-TIMEOUT CORS [NEW], server refuses Test timed out
-TIMEOUT CORS [GET] [x-test-header: allowed], server allows Test timed out
-TIMEOUT CORS [GET] [x-test-header: refused], server refuses Test timed out
-TIMEOUT CORS [GET] [several headers], server allows Test timed out
-TIMEOUT CORS [GET] [several headers], server refuses Test timed out
-TIMEOUT CORS [PUT] [several headers], server allows Test timed out
-TIMEOUT CORS [PUT] [several headers], server refuses Test timed out
-

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,62 +1,62 @@
 
-PASS Redirect 301 from same origin to remote with user and password 
-PASS Redirect 301 from same origin to remote with user 
-PASS Redirect 301 from same origin to remote with password 
-PASS Redirect 301 from remote to same origin with user and password 
-PASS Redirect 301 from remote to same origin with user 
-PASS Redirect 301 from remote to same origin with password 
-PASS Redirect 301 from remote to same remote with user and password 
-PASS Redirect 301 from remote to same remote with user 
-PASS Redirect 301 from remote to same remote with password 
-PASS Redirect 301 from remote to another remote with user and password 
-PASS Redirect 301 from remote to another remote with user 
-PASS Redirect 301 from remote to another remote with password 
-PASS Redirect 302 from same origin to remote with user and password 
-PASS Redirect 302 from same origin to remote with user 
-PASS Redirect 302 from same origin to remote with password 
-PASS Redirect 302 from remote to same origin with user and password 
-PASS Redirect 302 from remote to same origin with user 
-PASS Redirect 302 from remote to same origin with password 
-PASS Redirect 302 from remote to same remote with user and password 
-PASS Redirect 302 from remote to same remote with user 
-PASS Redirect 302 from remote to same remote with password 
-PASS Redirect 302 from remote to another remote with user and password 
-PASS Redirect 302 from remote to another remote with user 
-PASS Redirect 302 from remote to another remote with password 
-PASS Redirect 303 from same origin to remote with user and password 
-PASS Redirect 303 from same origin to remote with user 
-PASS Redirect 303 from same origin to remote with password 
-PASS Redirect 303 from remote to same origin with user and password 
-PASS Redirect 303 from remote to same origin with user 
-PASS Redirect 303 from remote to same origin with password 
-PASS Redirect 303 from remote to same remote with user and password 
-PASS Redirect 303 from remote to same remote with user 
-PASS Redirect 303 from remote to same remote with password 
-PASS Redirect 303 from remote to another remote with user and password 
-PASS Redirect 303 from remote to another remote with user 
-PASS Redirect 303 from remote to another remote with password 
-PASS Redirect 307 from same origin to remote with user and password 
-PASS Redirect 307 from same origin to remote with user 
-PASS Redirect 307 from same origin to remote with password 
-PASS Redirect 307 from remote to same origin with user and password 
-PASS Redirect 307 from remote to same origin with user 
-PASS Redirect 307 from remote to same origin with password 
-PASS Redirect 307 from remote to same remote with user and password 
-PASS Redirect 307 from remote to same remote with user 
-PASS Redirect 307 from remote to same remote with password 
-PASS Redirect 307 from remote to another remote with user and password 
-PASS Redirect 307 from remote to another remote with user 
-PASS Redirect 307 from remote to another remote with password 
-PASS Redirect 308 from same origin to remote with user and password 
-PASS Redirect 308 from same origin to remote with user 
-PASS Redirect 308 from same origin to remote with password 
-PASS Redirect 308 from remote to same origin with user and password 
-PASS Redirect 308 from remote to same origin with user 
-PASS Redirect 308 from remote to same origin with password 
-PASS Redirect 308 from remote to same remote with user and password 
-PASS Redirect 308 from remote to same remote with user 
-PASS Redirect 308 from remote to same remote with password 
-PASS Redirect 308 from remote to another remote with user and password 
-PASS Redirect 308 from remote to another remote with user 
-PASS Redirect 308 from remote to another remote with password 
+FAIL Redirect 301 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,62 +1,62 @@
 
-PASS Redirect 301 from same origin to remote with user and password 
-PASS Redirect 301 from same origin to remote with user 
-PASS Redirect 301 from same origin to remote with password 
-PASS Redirect 301 from remote to same origin with user and password 
-PASS Redirect 301 from remote to same origin with user 
-PASS Redirect 301 from remote to same origin with password 
-PASS Redirect 301 from remote to same remote with user and password 
-PASS Redirect 301 from remote to same remote with user 
-PASS Redirect 301 from remote to same remote with password 
-PASS Redirect 301 from remote to another remote with user and password 
-PASS Redirect 301 from remote to another remote with user 
-PASS Redirect 301 from remote to another remote with password 
-PASS Redirect 302 from same origin to remote with user and password 
-PASS Redirect 302 from same origin to remote with user 
-PASS Redirect 302 from same origin to remote with password 
-PASS Redirect 302 from remote to same origin with user and password 
-PASS Redirect 302 from remote to same origin with user 
-PASS Redirect 302 from remote to same origin with password 
-PASS Redirect 302 from remote to same remote with user and password 
-PASS Redirect 302 from remote to same remote with user 
-PASS Redirect 302 from remote to same remote with password 
-PASS Redirect 302 from remote to another remote with user and password 
-PASS Redirect 302 from remote to another remote with user 
-PASS Redirect 302 from remote to another remote with password 
-PASS Redirect 303 from same origin to remote with user and password 
-PASS Redirect 303 from same origin to remote with user 
-PASS Redirect 303 from same origin to remote with password 
-PASS Redirect 303 from remote to same origin with user and password 
-PASS Redirect 303 from remote to same origin with user 
-PASS Redirect 303 from remote to same origin with password 
-PASS Redirect 303 from remote to same remote with user and password 
-PASS Redirect 303 from remote to same remote with user 
-PASS Redirect 303 from remote to same remote with password 
-PASS Redirect 303 from remote to another remote with user and password 
-PASS Redirect 303 from remote to another remote with user 
-PASS Redirect 303 from remote to another remote with password 
-PASS Redirect 307 from same origin to remote with user and password 
-PASS Redirect 307 from same origin to remote with user 
-PASS Redirect 307 from same origin to remote with password 
-PASS Redirect 307 from remote to same origin with user and password 
-PASS Redirect 307 from remote to same origin with user 
-PASS Redirect 307 from remote to same origin with password 
-PASS Redirect 307 from remote to same remote with user and password 
-PASS Redirect 307 from remote to same remote with user 
-PASS Redirect 307 from remote to same remote with password 
-PASS Redirect 307 from remote to another remote with user and password 
-PASS Redirect 307 from remote to another remote with user 
-PASS Redirect 307 from remote to another remote with password 
-PASS Redirect 308 from same origin to remote with user and password 
-PASS Redirect 308 from same origin to remote with user 
-PASS Redirect 308 from same origin to remote with password 
-PASS Redirect 308 from remote to same origin with user and password 
-PASS Redirect 308 from remote to same origin with user 
-PASS Redirect 308 from remote to same origin with password 
-PASS Redirect 308 from remote to same remote with user and password 
-PASS Redirect 308 from remote to same remote with user 
-PASS Redirect 308 from remote to same remote with password 
-PASS Redirect 308 from remote to another remote with user and password 
-PASS Redirect 308 from remote to another remote with user 
-PASS Redirect 308 from remote to another remote with password 
+FAIL Redirect 301 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 301 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 302 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 303 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 307 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
+FAIL Redirect 308 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-worker-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-worker-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,8 +1,5 @@
-localhost:8800 - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
-localhost:8800 - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
-localhost:8800 - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
 
-FAIL User-added Authorization header with include mode assert_equals: HTTP status is 200 expected 200 but got 401
-FAIL User-added Authorization header with same-origin mode assert_equals: HTTP status is 200 expected 200 but got 401
-FAIL User-added Authorization header with omit mode assert_equals: HTTP status is 200 expected 200 but got 401
+PASS User-added Authorization header with include mode 
+PASS User-added Authorization header with same-origin mode 
+PASS User-added Authorization header with omit mode 
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-cache-expected.txt (203731 => 203732)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-cache-expected.txt	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-cache-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,106 +1,104 @@
 
-Harness Error (TIMEOUT), message = null
+PASS RequestCache "default" mode checks the cache for previously cached content and goes to the network for stale responses with Etag and stale response 
+PASS RequestCache "default" mode checks the cache for previously cached content and goes to the network for stale responses with date and stale response 
+PASS RequestCache "default" mode checks the cache for previously cached content and avoids going to the network if a fresh response exists with Etag and fresh response 
+PASS RequestCache "default" mode checks the cache for previously cached content and avoids going to the network if a fresh response exists with date and fresh response 
+PASS RequestCache "no-cache" mode revalidates stale responses found in the cache with Etag and stale response 
+PASS RequestCache "no-cache" mode revalidates stale responses found in the cache with date and stale response 
+FAIL RequestCache "no-cache" mode revalidates fresh responses found in the cache with Etag and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "no-cache" mode revalidates fresh responses found in the cache with date and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for stale responses with Etag and stale response assert_equals: expected 1 but got 2
+FAIL RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for stale responses with date and stale response assert_equals: expected 1 but got 2
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for fresh responses with Etag and fresh response 
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for fresh responses with date and fresh response 
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response is not found with Etag and stale response 
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response is not found with date and stale response 
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response is not found with Etag and fresh response 
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response is not found with date and fresh response 
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response would vary with Etag and stale response 
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response would vary with date and stale response 
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response would vary with Etag and fresh response 
+PASS RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response would vary with date and fresh response 
+PASS RequestCache "force-cache" stores the response in the cache if it goes to the network with Etag and stale response 
+PASS RequestCache "force-cache" stores the response in the cache if it goes to the network with date and stale response 
+PASS RequestCache "force-cache" stores the response in the cache if it goes to the network with Etag and fresh response 
+PASS RequestCache "force-cache" stores the response in the cache if it goes to the network with date and fresh response 
+FAIL RequestCache "only-if-cached" mode checks the cache for previously cached content and avoids revalidation for stale responses with Etag and stale response promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL RequestCache "only-if-cached" mode checks the cache for previously cached content and avoids revalidation for stale responses with date and stale response promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL RequestCache "only-if-cached" mode checks the cache for previously cached content and avoids revalidation for fresh responses with Etag and fresh response promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL RequestCache "only-if-cached" mode checks the cache for previously cached content and avoids revalidation for fresh responses with date and fresh response promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS RequestCache "only-if-cached" mode checks the cache for previously cached content and does not go to the network if a cached response is not found with Etag and fresh response 
+PASS RequestCache "only-if-cached" mode checks the cache for previously cached content and does not go to the network if a cached response is not found with date and fresh response 
+FAIL RequestCache "only-if-cached" (with "same-origin") uses cached same-origin redirects to same-origin content with Etag and fresh response promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL RequestCache "only-if-cached" (with "same-origin") uses cached same-origin redirects to same-origin content with date and fresh response promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL RequestCache "only-if-cached" (with "same-origin") uses cached same-origin redirects to same-origin content with Etag and stale response promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL RequestCache "only-if-cached" (with "same-origin") uses cached same-origin redirects to same-origin content with date and stale response promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with Etag and fresh response 
+PASS RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with date and fresh response 
+PASS RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with Etag and stale response 
+PASS RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with date and stale response 
+FAIL RequestCache "no-store" mode does not check the cache for previously cached content and goes to the network regardless with Etag and stale response assert_equals: expected (undefined) undefined but got (string) "\"0.5708867760543104\""
+FAIL RequestCache "no-store" mode does not check the cache for previously cached content and goes to the network regardless with date and stale response assert_equals: expected (undefined) undefined but got (string) "Tue, 26 Jul 2016 18:03:51 GMT"
+FAIL RequestCache "no-store" mode does not check the cache for previously cached content and goes to the network regardless with Etag and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "no-store" mode does not check the cache for previously cached content and goes to the network regardless with date and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "no-store" mode does not store the response in the cache with Etag and stale response assert_equals: expected (undefined) undefined but got (string) "\"0.03236160265570209\""
+FAIL RequestCache "no-store" mode does not store the response in the cache with date and stale response assert_equals: expected (undefined) undefined but got (string) "Tue, 26 Jul 2016 18:03:51 GMT"
+FAIL RequestCache "no-store" mode does not store the response in the cache with Etag and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "no-store" mode does not store the response in the cache with date and fresh response assert_equals: expected 2 but got 1
+PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and stale response 
+PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and fresh response 
+PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and fresh response 
+PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and stale response 
+FAIL RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and fresh response assert_equals: expected 2 but got 1
+PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and fresh response 
+PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and stale response 
+PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and fresh response 
+PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and fresh response 
+PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and stale response 
+FAIL RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and fresh response assert_equals: expected 2 but got 1
+PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and stale response 
+PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and fresh response 
+PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and fresh response 
+PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and stale response 
+FAIL RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and fresh response assert_equals: expected 2 but got 1
+PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and stale response 
+PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and fresh response 
+PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and fresh response 
+PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and stale response 
+FAIL RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and fresh response assert_equals: expected 2 but got 1
+PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and stale response 
+PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and fresh response 
+PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and fresh response 
+PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and stale response 
+PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and stale response 
+FAIL RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and fresh response assert_equals: expected 2 but got 1
+PASS Responses with the "Cache-Control: no-store" header are not stored in the cache with Etag and stale response 
+PASS Responses with the "Cache-Control: no-store" header are not stored in the cache with date and stale response 
+PASS Responses with the "Cache-Control: no-store" header are not stored in the cache with Etag and fresh response 
+PASS Responses with the "Cache-Control: no-store" header are not stored in the cache with date and fresh response 
+FAIL RequestCache "reload" mode does not check the cache for previously cached content and goes to the network regardless with Etag and stale response assert_equals: expected (undefined) undefined but got (string) "\"0.32037580965802115\""
+FAIL RequestCache "reload" mode does not check the cache for previously cached content and goes to the network regardless with date and stale response assert_equals: expected (undefined) undefined but got (string) "Tue, 26 Jul 2016 18:03:51 GMT"
+FAIL RequestCache "reload" mode does not check the cache for previously cached content and goes to the network regardless with Etag and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "reload" mode does not check the cache for previously cached content and goes to the network regardless with date and fresh response assert_equals: expected 2 but got 1
+PASS RequestCache "reload" mode does store the response in the cache with Etag and stale response 
+PASS RequestCache "reload" mode does store the response in the cache with date and stale response 
+PASS RequestCache "reload" mode does store the response in the cache with Etag and fresh response 
+PASS RequestCache "reload" mode does store the response in the cache with date and fresh response 
+FAIL RequestCache "reload" mode does store the response in the cache even if a previous response is already stored with Etag and stale response assert_equals: expected (undefined) undefined but got (string) "\"0.702774010433134\""
+FAIL RequestCache "reload" mode does store the response in the cache even if a previous response is already stored with date and stale response assert_equals: expected (undefined) undefined but got (string) "Tue, 26 Jul 2016 18:03:51 GMT"
+FAIL RequestCache "reload" mode does store the response in the cache even if a previous response is already stored with Etag and fresh response assert_equals: expected 2 but got 1
+FAIL RequestCache "reload" mode does store the response in the cache even if a previous response is already stored with date and fresh response assert_equals: expected 2 but got 1
 
-FAIL RequestCache "default" mode checks the cache for previously cached content and goes to the network for stale responses with Etag and stale response assert_array_equals: property 0, expected 200 but got 500
-TIMEOUT RequestCache "default" mode checks the cache for previously cached content and goes to the network for stale responses with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode checks the cache for previously cached content and avoids going to the network if a fresh response exists with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode checks the cache for previously cached content and avoids going to the network if a fresh response exists with date and fresh response Test timed out
-TIMEOUT RequestCache "no-cache" mode revalidates stale responses found in the cache with Etag and stale response Test timed out
-TIMEOUT RequestCache "no-cache" mode revalidates stale responses found in the cache with date and stale response Test timed out
-TIMEOUT RequestCache "no-cache" mode revalidates fresh responses found in the cache with Etag and fresh response Test timed out
-TIMEOUT RequestCache "no-cache" mode revalidates fresh responses found in the cache with date and fresh response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for stale responses with Etag and stale response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for stale responses with date and stale response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for fresh responses with Etag and fresh response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for fresh responses with date and fresh response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response is not found with Etag and stale response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response is not found with date and stale response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response is not found with Etag and fresh response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response is not found with date and fresh response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response would vary with Etag and stale response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response would vary with date and stale response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response would vary with Etag and fresh response Test timed out
-TIMEOUT RequestCache "force-cache" mode checks the cache for previously cached content and goes to the network if a cached response would vary with date and fresh response Test timed out
-TIMEOUT RequestCache "force-cache" stores the response in the cache if it goes to the network with Etag and stale response Test timed out
-TIMEOUT RequestCache "force-cache" stores the response in the cache if it goes to the network with date and stale response Test timed out
-TIMEOUT RequestCache "force-cache" stores the response in the cache if it goes to the network with Etag and fresh response Test timed out
-TIMEOUT RequestCache "force-cache" stores the response in the cache if it goes to the network with date and fresh response Test timed out
-TIMEOUT RequestCache "only-if-cached" mode checks the cache for previously cached content and avoids revalidation for stale responses with Etag and stale response Test timed out
-TIMEOUT RequestCache "only-if-cached" mode checks the cache for previously cached content and avoids revalidation for stale responses with date and stale response Test timed out
-TIMEOUT RequestCache "only-if-cached" mode checks the cache for previously cached content and avoids revalidation for fresh responses with Etag and fresh response Test timed out
-TIMEOUT RequestCache "only-if-cached" mode checks the cache for previously cached content and avoids revalidation for fresh responses with date and fresh response Test timed out
-TIMEOUT RequestCache "only-if-cached" mode checks the cache for previously cached content and does not go to the network if a cached response is not found with Etag and fresh response Test timed out
-TIMEOUT RequestCache "only-if-cached" mode checks the cache for previously cached content and does not go to the network if a cached response is not found with date and fresh response Test timed out
-TIMEOUT RequestCache "only-if-cached" (with "same-origin") uses cached same-origin redirects to same-origin content with Etag and fresh response Test timed out
-TIMEOUT RequestCache "only-if-cached" (with "same-origin") uses cached same-origin redirects to same-origin content with date and fresh response Test timed out
-TIMEOUT RequestCache "only-if-cached" (with "same-origin") uses cached same-origin redirects to same-origin content with Etag and stale response Test timed out
-TIMEOUT RequestCache "only-if-cached" (with "same-origin") uses cached same-origin redirects to same-origin content with date and stale response Test timed out
-TIMEOUT RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with Etag and fresh response Test timed out
-TIMEOUT RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with date and fresh response Test timed out
-TIMEOUT RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with Etag and stale response Test timed out
-TIMEOUT RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with date and stale response Test timed out
-TIMEOUT RequestCache "no-store" mode does not check the cache for previously cached content and goes to the network regardless with Etag and stale response Test timed out
-TIMEOUT RequestCache "no-store" mode does not check the cache for previously cached content and goes to the network regardless with date and stale response Test timed out
-TIMEOUT RequestCache "no-store" mode does not check the cache for previously cached content and goes to the network regardless with Etag and fresh response Test timed out
-TIMEOUT RequestCache "no-store" mode does not check the cache for previously cached content and goes to the network regardless with date and fresh response Test timed out
-TIMEOUT RequestCache "no-store" mode does not store the response in the cache with Etag and stale response Test timed out
-TIMEOUT RequestCache "no-store" mode does not store the response in the cache with date and stale response Test timed out
-TIMEOUT RequestCache "no-store" mode does not store the response in the cache with Etag and fresh response Test timed out
-TIMEOUT RequestCache "no-store" mode does not store the response in the cache with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and stale response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and fresh response Test timed out
-TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and fresh response Test timed out
-TIMEOUT Responses with the "Cache-Control: no-store" header are not stored in the cache with Etag and stale response Test timed out
-TIMEOUT Responses with the "Cache-Control: no-store" header are not stored in the cache with date and stale response Test timed out
-TIMEOUT Responses with the "Cache-Control: no-store" header are not stored in the cache with Etag and fresh response Test timed out
-TIMEOUT Responses with the "Cache-Control: no-store" header are not stored in the cache with date and fresh response Test timed out
-TIMEOUT RequestCache "reload" mode does not check the cache for previously cached content and goes to the network regardless with Etag and stale response Test timed out
-TIMEOUT RequestCache "reload" mode does not check the cache for previously cached content and goes to the network regardless with date and stale response Test timed out
-TIMEOUT RequestCache "reload" mode does not check the cache for previously cached content and goes to the network regardless with Etag and fresh response Test timed out
-TIMEOUT RequestCache "reload" mode does not check the cache for previously cached content and goes to the network regardless with date and fresh response Test timed out
-TIMEOUT RequestCache "reload" mode does store the response in the cache with Etag and stale response Test timed out
-TIMEOUT RequestCache "reload" mode does store the response in the cache with date and stale response Test timed out
-TIMEOUT RequestCache "reload" mode does store the response in the cache with Etag and fresh response Test timed out
-TIMEOUT RequestCache "reload" mode does store the response in the cache with date and fresh response Test timed out
-TIMEOUT RequestCache "reload" mode does store the response in the cache even if a previous response is already stored with Etag and stale response Test timed out
-TIMEOUT RequestCache "reload" mode does store the response in the cache even if a previous response is already stored with date and stale response Test timed out
-TIMEOUT RequestCache "reload" mode does store the response in the cache even if a previous response is already stored with Etag and fresh response Test timed out
-TIMEOUT RequestCache "reload" mode does store the response in the cache even if a previous response is already stored with date and fresh response Test timed out
-

Copied: trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt (from rev 203731, trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt) (0 => 203732)


--- trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -0,0 +1,6 @@
+
+PASS Fetch ../resources/top.txt with no-cors mode 
+PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode 
+FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode assert_equals: Opaque filter: status is 0 expected 0 but got 200
+

Copied: trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt (from rev 203731, trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt) (0 => 203732)


--- trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -0,0 +1,6 @@
+
+PASS Fetch ../resources/top.txt with no-cors mode 
+PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode 
+FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode assert_equals: Opaque filter: status is 0 expected 0 but got 200
+

Copied: trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt (from rev 203731, trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt) (0 => 203732)


--- trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -0,0 +1,17 @@
+
+FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Same domain different port [server forbid CORS] 
+FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS Same domain different protocol different port [server forbid CORS] 
+FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Cross domain basic usage [server forbid CORS] 
+FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Cross domain different port [server forbid CORS] 
+FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS Cross domain different protocol [server forbid CORS] 
+FAIL Cross domain different protocol [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+

Copied: trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt (from rev 203731, trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt) (0 => 203732)


--- trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -0,0 +1,17 @@
+
+FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Same domain different port [server forbid CORS] 
+FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS Same domain different protocol different port [server forbid CORS] 
+FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Cross domain basic usage [server forbid CORS] 
+FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Cross domain different port [server forbid CORS] 
+FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS Cross domain different protocol [server forbid CORS] 
+FAIL Cross domain different protocol [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+

Copied: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt (from rev 203731, trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt) (0 => 203732)


--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -0,0 +1,6 @@
+
+PASS Fetch ../resources/top.txt with no-cors mode 
+PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode 
+FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode assert_equals: Opaque filter: status is 0 expected 0 but got 200
+

Copied: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt (from rev 203731, trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt) (0 => 203732)


--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -0,0 +1,6 @@
+
+PASS Fetch ../resources/top.txt with no-cors mode 
+PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode 
+FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode assert_equals: Opaque filter: status is 0 expected 0 but got 200
+

Copied: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt (from rev 203731, trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt) (0 => 203732)


--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -0,0 +1,17 @@
+
+FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Same domain different port [server forbid CORS] 
+FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS Same domain different protocol different port [server forbid CORS] 
+FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Cross domain basic usage [server forbid CORS] 
+FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Cross domain different port [server forbid CORS] 
+FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS Cross domain different protocol [server forbid CORS] 
+FAIL Cross domain different protocol [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+

Copied: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt (from rev 203731, trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt) (0 => 203732)


--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt	2016-07-26 20:18:03 UTC (rev 203732)
@@ -0,0 +1,17 @@
+
+FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Same domain different port [server forbid CORS] 
+FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS Same domain different protocol different port [server forbid CORS] 
+FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Cross domain basic usage [server forbid CORS] 
+FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
+PASS Cross domain different port [server forbid CORS] 
+FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
+FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS Cross domain different protocol [server forbid CORS] 
+FAIL Cross domain different protocol [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
+

Modified: trunk/Source/WebCore/ChangeLog (203731 => 203732)


--- trunk/Source/WebCore/ChangeLog	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/Source/WebCore/ChangeLog	2016-07-26 20:18:03 UTC (rev 203732)
@@ -1,3 +1,16 @@
+2016-07-26  Youenn Fablet  <you...@apple.com>
+
+        [Fetch API] Add support for fetch mode, in particular cors
+        https://bugs.webkit.org/show_bug.cgi?id=156753
+
+        Reviewed by Darin Adler.
+
+        Covered by rebased tests.
+
+        * Modules/fetch/FetchLoader.cpp:
+        (WebCore::FetchLoader::start): Passing fetch mode to ThreadableLoader.
+        Disabling as a temp fix credentials in case of CORS mode as credential options is not yet supported and would make several tests fail.
+
 2016-07-26  Chris Dumez  <cdu...@apple.com>
 
         Align NamedNodeMap with the specification

Modified: trunk/Source/WebCore/Modules/fetch/FetchLoader.cpp (203731 => 203732)


--- trunk/Source/WebCore/Modules/fetch/FetchLoader.cpp	2016-07-26 19:09:53 UTC (rev 203731)
+++ trunk/Source/WebCore/Modules/fetch/FetchLoader.cpp	2016-07-26 20:18:03 UTC (rev 203732)
@@ -83,7 +83,9 @@
 
     // FIXME: Pass directly all fetch options to loader options.
     options.redirect = request.fetchOptions().redirect;
-    options.mode = FetchOptions::Mode::SameOrigin;
+    options.mode = request.fetchOptions().mode;
+    if (options.mode == FetchOptions::Mode::Cors)
+        options.setAllowCredentials(DoNotAllowStoredCredentials);
 
     m_loader = ThreadableLoader::create(&context, this, request.internalRequest(), options);
     m_isStarted = m_loader;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to