Changeset 203732 in webkit


Ignore:
Timestamp:
Jul 26, 2016 1:18:03 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Youenn Fablet <youenn@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.
Location:
trunk
Files:
11 added
23 edited
8 copied

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r203731 r203732  
     12016-07-26  Youenn Fablet  <youenn@apple.com>
     2
     3        [Fetch API] Add support for fetch mode, in particular cors
     4        https://bugs.webkit.org/show_bug.cgi?id=156753
     5
     6        Reviewed by Darin Adler.
     7
     8        Rebasing specific expectations as Maci/iOS WK2 does not like https tests.
     9
     10        * platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt: Added.
     11        * platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt: Added.
     12        * platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt: Added.
     13        * platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt: Added.
     14        * platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt: Added.
     15        * platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt: Added.
     16        * platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt: Added.
     17        * platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt: Added.
     18
    1192016-07-26  Chris Dumez  <cdumez@apple.com>
    220
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r203731 r203732  
     12016-07-26  Youenn Fablet  <youenn@apple.com>
     2
     3        [Fetch API] Add support for fetch mode, in particular cors
     4        https://bugs.webkit.org/show_bug.cgi?id=156753
     5
     6        Reviewed by Darin Adler.
     7
     8        Rebasing tests.
     9
     10        * web-platform-tests/fetch/api/basic/integrity-expected.txt:
     11        * web-platform-tests/fetch/api/basic/integrity-worker-expected.txt:
     12        * web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt:
     13        * web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt:
     14        * web-platform-tests/fetch/api/cors/cors-basic-expected.txt:
     15        * web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt:
     16        * web-platform-tests/fetch/api/cors/cors-cookies-expected.txt:
     17        * web-platform-tests/fetch/api/cors/cors-cookies-worker-expected.txt:
     18        * web-platform-tests/fetch/api/cors/cors-filtering-expected.txt:
     19        * web-platform-tests/fetch/api/cors/cors-filtering-worker-expected.txt:
     20        * web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt:
     21        * web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt:
     22        * web-platform-tests/fetch/api/cors/cors-preflight-expected.txt:
     23        * web-platform-tests/fetch/api/cors/cors-preflight-referrer-worker-expected.txt:
     24        * web-platform-tests/fetch/api/cors/cors-preflight-worker-expected.txt:
     25        * web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt:
     26        * web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt:
     27        * web-platform-tests/fetch/api/credentials/authentication-basic-worker-expected.txt:
     28        * web-platform-tests/fetch/api/request/request-cache-expected.txt:
     29
    1302016-07-26  Chris Dumez  <cdumez@apple.com>
    231
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/integrity-expected.txt

    r198665 r203732  
    1010PASS Multiple integrities: both are valid
    1111FAIL Multiple integrities: both are invalid assert_unreached: Should have rejected. Reached unreachable code
    12 FAIL CORS empty integrity promise_test: Unhandled rejection with value: object "TypeError: Type error"
    13 FAIL CORS SHA-512 integrity promise_test: Unhandled rejection with value: object "TypeError: Type error"
    14 PASS CORS invalid integrity
     12PASS CORS empty integrity
     13PASS CORS SHA-512 integrity
     14FAIL CORS invalid integrity assert_unreached: Should have rejected. Reached unreachable code
    1515
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/integrity-worker-expected.txt

    r198891 r203732  
    1010PASS Multiple integrities: both are valid
    1111FAIL Multiple integrities: both are invalid assert_unreached: Should have rejected. Reached unreachable code
    12 FAIL CORS empty integrity promise_test: Unhandled rejection with value: object "TypeError: Type error"
    13 FAIL CORS SHA-512 integrity promise_test: Unhandled rejection with value: object "TypeError: Type error"
    14 PASS CORS invalid integrity
     12PASS CORS empty integrity
     13PASS CORS SHA-512 integrity
     14FAIL CORS invalid integrity assert_unreached: Should have rejected. Reached unreachable code
    1515
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt

    r202853 r203732  
    22PASS Fetch ../resources/top.txt with no-cors mode
    33PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode
    4 FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4FAIL 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
     5FAIL 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
    66
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt

    r202853 r203732  
    22PASS Fetch ../resources/top.txt with no-cors mode
    33PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode
    4 FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4FAIL 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
     5FAIL 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
    66
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt

    r202853 r203732  
    11
    2 FAIL Same domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    33PASS Same domain different port [server forbid CORS]
    4 FAIL Same domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
     5FAIL Same domain different protocol different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    66PASS Same domain different protocol different port [server forbid CORS]
    7 FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    8 FAIL Cross domain basic usage [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     7FAIL Same domain different protocol different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
     8FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    99PASS Cross domain basic usage [server forbid CORS]
    10 FAIL Cross domain basic usage [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    11 FAIL Cross domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     10FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
     11FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    1212PASS Cross domain different port [server forbid CORS]
    13 FAIL Cross domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    14 FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     13FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
     14FAIL Cross domain different protocol [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    1515PASS Cross domain different protocol [server forbid CORS]
    16 FAIL Cross domain different protocol [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     16FAIL Cross domain different protocol [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    1717
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt

    r203164 r203732  
    11
    2 FAIL Same domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    33PASS Same domain different port [server forbid CORS]
    4 FAIL Same domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    55FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    66PASS Same domain different protocol different port [server forbid CORS]
    77FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    8 FAIL Cross domain basic usage [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     8FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    99PASS Cross domain basic usage [server forbid CORS]
    10 FAIL Cross domain basic usage [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    11 FAIL Cross domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     10FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
     11FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    1212PASS Cross domain different port [server forbid CORS]
    13 FAIL Cross domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     13FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    1414FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    1515PASS Cross domain different protocol [server forbid CORS]
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-cookies-expected.txt

    r203408 r203732  
    11
    22FAIL Omit mode: no cookie sent assert_false: Request should have no cookie expected false got true
    3 FAIL Include mode: 1 cookie promise_test: Unhandled rejection with value: object "TypeError: Type error"
    4 FAIL Include mode: local cookies are not sent with remote request promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL Include mode: remote cookies are not sent with local request promise_test: Unhandled rejection with value: object "TypeError: Type error"
    6 FAIL Same-origin mode: cookies are discarded in cors request promise_test: Unhandled rejection with value: object "TypeError: Type error"
     3FAIL Include mode: 1 cookie assert_equals: Request includes cookie(s) expected (string) "a=1" but got (object) null
     4PASS Include mode: local cookies are not sent with remote request
     5PASS Include mode: remote cookies are not sent with local request
     6PASS Same-origin mode: cookies are discarded in cors request
    77FAIL Include mode: remote cookies are not sent with other remote request promise_test: Unhandled rejection with value: object "TypeError: Type error"
    88
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-cookies-worker-expected.txt

    r203408 r203732  
    11
    22FAIL Omit mode: no cookie sent assert_false: Request should have no cookie expected false got true
    3 FAIL Include mode: 1 cookie promise_test: Unhandled rejection with value: object "TypeError: Type error"
    4 FAIL Include mode: local cookies are not sent with remote request promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL Include mode: remote cookies are not sent with local request promise_test: Unhandled rejection with value: object "TypeError: Type error"
    6 FAIL Same-origin mode: cookies are discarded in cors request promise_test: Unhandled rejection with value: object "TypeError: Type error"
     3FAIL Include mode: 1 cookie assert_equals: Request includes cookie(s) expected (string) "a=1" but got (object) null
     4PASS Include mode: local cookies are not sent with remote request
     5PASS Include mode: remote cookies are not sent with local request
     6PASS Same-origin mode: cookies are discarded in cors request
    77FAIL Include mode: remote cookies are not sent with other remote request promise_test: Unhandled rejection with value: object "TypeError: Type error"
    88
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-filtering-expected.txt

    r200195 r203732  
    11
    2 FAIL CORS filter on Cache-Control header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    3 FAIL CORS filter on Content-Language header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    4 FAIL CORS filter on Content-Type header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL CORS filter on Expires header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    6 FAIL CORS filter on Last-Modified header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    7 FAIL CORS filter on Pragma header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    8 FAIL CORS filter on Age header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    9 FAIL CORS filter on Server header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    10 FAIL CORS filter on Warning header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    11 FAIL CORS filter on Content-Length header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    12 FAIL CORS filter on Set-Cookie header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    13 FAIL CORS filter on Set-Cookie2 header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    14 FAIL CORS filter on Age header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    15 FAIL CORS filter on Server header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    16 FAIL CORS filter on Warning header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    17 FAIL CORS filter on Content-Length header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    18 FAIL CORS filter on Set-Cookie header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    19 FAIL CORS filter on Set-Cookie2 header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2FAIL CORS filter on Cache-Control header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     3FAIL CORS filter on Content-Language header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     4FAIL CORS filter on Content-Type header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     5FAIL CORS filter on Expires header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     6FAIL CORS filter on Last-Modified header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     7FAIL CORS filter on Pragma header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     8FAIL CORS filter on Age header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     9FAIL CORS filter on Server header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     10FAIL CORS filter on Warning header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     11FAIL CORS filter on Content-Length header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     12FAIL CORS filter on Set-Cookie header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     13FAIL CORS filter on Set-Cookie2 header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     14FAIL CORS filter on Age header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     15FAIL CORS filter on Server header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     16FAIL CORS filter on Warning header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     17FAIL CORS filter on Content-Length header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     18FAIL CORS filter on Set-Cookie header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     19FAIL CORS filter on Set-Cookie2 header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
    2020
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-filtering-worker-expected.txt

    r200195 r203732  
    11
    2 FAIL CORS filter on Cache-Control header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    3 FAIL CORS filter on Content-Language header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    4 FAIL CORS filter on Content-Type header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL CORS filter on Expires header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    6 FAIL CORS filter on Last-Modified header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    7 FAIL CORS filter on Pragma header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    8 FAIL CORS filter on Age header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    9 FAIL CORS filter on Server header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    10 FAIL CORS filter on Warning header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    11 FAIL CORS filter on Content-Length header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    12 FAIL CORS filter on Set-Cookie header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    13 FAIL CORS filter on Set-Cookie2 header promise_test: Unhandled rejection with value: object "TypeError: Type error"
    14 FAIL CORS filter on Age header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    15 FAIL CORS filter on Server header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    16 FAIL CORS filter on Warning header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    17 FAIL CORS filter on Content-Length header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    18 FAIL CORS filter on Set-Cookie header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
    19 FAIL CORS filter on Set-Cookie2 header, header is exposed promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2FAIL CORS filter on Cache-Control header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     3FAIL CORS filter on Content-Language header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     4FAIL CORS filter on Content-Type header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     5FAIL CORS filter on Expires header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     6FAIL CORS filter on Last-Modified header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     7FAIL CORS filter on Pragma header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     8FAIL CORS filter on Age header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     9FAIL CORS filter on Server header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     10FAIL CORS filter on Warning header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     11FAIL CORS filter on Content-Length header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     12FAIL CORS filter on Set-Cookie header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     13FAIL CORS filter on Set-Cookie2 header assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     14FAIL CORS filter on Age header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     15FAIL CORS filter on Server header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     16FAIL CORS filter on Warning header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     17FAIL CORS filter on Content-Length header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     18FAIL CORS filter on Set-Cookie header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
     19FAIL CORS filter on Set-Cookie2 header, header is exposed assert_equals: CORS fetch's response has cors type expected "cors" but got "basic"
    2020
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt

    r200195 r203732  
    11
    2 FAIL 3 origins allowed, match the 3rd (http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
    3 FAIL 3 origins allowed, match the 3rd ("*") promise_test: Unhandled rejection with value: object "TypeError: Type error"
    4 FAIL 3 origins allowed, match twice (http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL 3 origins allowed, match twice ("*") promise_test: Unhandled rejection with value: object "TypeError: Type error"
    6 FAIL 3 origins allowed, match twice ("*" and http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2PASS 3 origins allowed, match the 3rd (http://localhost:8800)
     3PASS 3 origins allowed, match the 3rd ("*")
     4PASS 3 origins allowed, match twice (http://localhost:8800)
     5PASS 3 origins allowed, match twice ("*")
     6PASS 3 origins allowed, match twice ("*" and http://localhost:8800)
    77PASS 3 origins allowed, no match
    88
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt

    r200195 r203732  
    11
    2 FAIL 3 origins allowed, match the 3rd (http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
    3 FAIL 3 origins allowed, match the 3rd ("*") promise_test: Unhandled rejection with value: object "TypeError: Type error"
    4 FAIL 3 origins allowed, match twice (http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL 3 origins allowed, match twice ("*") promise_test: Unhandled rejection with value: object "TypeError: Type error"
    6 FAIL 3 origins allowed, match twice ("*" and http://localhost:8800) promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2PASS 3 origins allowed, match the 3rd (http://localhost:8800)
     3PASS 3 origins allowed, match the 3rd ("*")
     4PASS 3 origins allowed, match twice (http://localhost:8800)
     5PASS 3 origins allowed, match twice ("*")
     6PASS 3 origins allowed, match twice ("*" and http://localhost:8800)
    77PASS 3 origins allowed, no match
    88
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-expected.txt

    r203638 r203732  
    11
    2 FAIL CORS [DELETE], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2PASS CORS [DELETE], server allows
    33PASS CORS [DELETE], server refuses
    4 FAIL CORS [PUT], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4PASS CORS [PUT], server allows
    55PASS CORS [PUT], server refuses
    6 FAIL CORS [PATCH], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
     6PASS CORS [PATCH], server allows
    77PASS CORS [PATCH], server refuses
    8 FAIL CORS [NEW], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
     8PASS CORS [NEW], server allows
    99PASS CORS [NEW], server refuses
    10 FAIL CORS [GET] [x-test-header: allowed], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
     10PASS CORS [GET] [x-test-header: allowed], server allows
    1111PASS CORS [GET] [x-test-header: refused], server refuses
    12 FAIL CORS [GET] [several headers], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
     12PASS CORS [GET] [several headers], server allows
    1313PASS CORS [GET] [several headers], server refuses
    14 FAIL CORS [PUT] [several headers], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
     14PASS CORS [PUT] [several headers], server allows
    1515PASS CORS [PUT] [several headers], server refuses
    1616
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-referrer-worker-expected.txt

    r203408 r203732  
    11
    2 Harness Error (TIMEOUT), message = null
     2FAIL Referrer policy: no-referrer promise_test: Unhandled rejection with value: object "TypeError: Type error"
     3FAIL Referrer policy: "" promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4FAIL Referrer policy: origin promise_test: Unhandled rejection with value: object "TypeError: Type error"
     5FAIL Referrer policy: origin-when-cross-origin promise_test: Unhandled rejection with value: object "TypeError: Type error"
     6FAIL Referrer policy: unsafe-url promise_test: Unhandled rejection with value: object "TypeError: Type error"
    37
    4 FAIL Referrer policy: no-referrer assert_equals: Clean stash response's status is 200 expected 200 but got 500
    5 TIMEOUT Referrer policy: "" Test timed out
    6 TIMEOUT Referrer policy: origin Test timed out
    7 TIMEOUT Referrer policy: origin-when-cross-origin Test timed out
    8 TIMEOUT Referrer policy: unsafe-url Test timed out
    9 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-worker-expected.txt

    r203164 r203732  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS CORS [DELETE], server allows
     3PASS CORS [DELETE], server refuses
     4PASS CORS [PUT], server allows
     5PASS CORS [PUT], server refuses
     6PASS CORS [PATCH], server allows
     7PASS CORS [PATCH], server refuses
     8PASS CORS [NEW], server allows
     9PASS CORS [NEW], server refuses
     10PASS CORS [GET] [x-test-header: allowed], server allows
     11PASS CORS [GET] [x-test-header: refused], server refuses
     12PASS CORS [GET] [several headers], server allows
     13PASS CORS [GET] [several headers], server refuses
     14PASS CORS [PUT] [several headers], server allows
     15PASS CORS [PUT] [several headers], server refuses
    316
    4 FAIL CORS [DELETE], server allows promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 TIMEOUT CORS [DELETE], server refuses Test timed out
    6 TIMEOUT CORS [PUT], server allows Test timed out
    7 TIMEOUT CORS [PUT], server refuses Test timed out
    8 TIMEOUT CORS [PATCH], server allows Test timed out
    9 TIMEOUT CORS [PATCH], server refuses Test timed out
    10 TIMEOUT CORS [NEW], server allows Test timed out
    11 TIMEOUT CORS [NEW], server refuses Test timed out
    12 TIMEOUT CORS [GET] [x-test-header: allowed], server allows Test timed out
    13 TIMEOUT CORS [GET] [x-test-header: refused], server refuses Test timed out
    14 TIMEOUT CORS [GET] [several headers], server allows Test timed out
    15 TIMEOUT CORS [GET] [several headers], server refuses Test timed out
    16 TIMEOUT CORS [PUT] [several headers], server allows Test timed out
    17 TIMEOUT CORS [PUT] [several headers], server refuses Test timed out
    18 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt

    r202853 r203732  
    11
    2 PASS Redirect 301 from same origin to remote with user and password
    3 PASS Redirect 301 from same origin to remote with user
    4 PASS Redirect 301 from same origin to remote with password
    5 PASS Redirect 301 from remote to same origin with user and password
    6 PASS Redirect 301 from remote to same origin with user
    7 PASS Redirect 301 from remote to same origin with password
    8 PASS Redirect 301 from remote to same remote with user and password
    9 PASS Redirect 301 from remote to same remote with user
    10 PASS Redirect 301 from remote to same remote with password
    11 PASS Redirect 301 from remote to another remote with user and password
    12 PASS Redirect 301 from remote to another remote with user
    13 PASS Redirect 301 from remote to another remote with password
    14 PASS Redirect 302 from same origin to remote with user and password
    15 PASS Redirect 302 from same origin to remote with user
    16 PASS Redirect 302 from same origin to remote with password
    17 PASS Redirect 302 from remote to same origin with user and password
    18 PASS Redirect 302 from remote to same origin with user
    19 PASS Redirect 302 from remote to same origin with password
    20 PASS Redirect 302 from remote to same remote with user and password
    21 PASS Redirect 302 from remote to same remote with user
    22 PASS Redirect 302 from remote to same remote with password
    23 PASS Redirect 302 from remote to another remote with user and password
    24 PASS Redirect 302 from remote to another remote with user
    25 PASS Redirect 302 from remote to another remote with password
    26 PASS Redirect 303 from same origin to remote with user and password
    27 PASS Redirect 303 from same origin to remote with user
    28 PASS Redirect 303 from same origin to remote with password
    29 PASS Redirect 303 from remote to same origin with user and password
    30 PASS Redirect 303 from remote to same origin with user
    31 PASS Redirect 303 from remote to same origin with password
    32 PASS Redirect 303 from remote to same remote with user and password
    33 PASS Redirect 303 from remote to same remote with user
    34 PASS Redirect 303 from remote to same remote with password
    35 PASS Redirect 303 from remote to another remote with user and password
    36 PASS Redirect 303 from remote to another remote with user
    37 PASS Redirect 303 from remote to another remote with password
    38 PASS Redirect 307 from same origin to remote with user and password
    39 PASS Redirect 307 from same origin to remote with user
    40 PASS Redirect 307 from same origin to remote with password
    41 PASS Redirect 307 from remote to same origin with user and password
    42 PASS Redirect 307 from remote to same origin with user
    43 PASS Redirect 307 from remote to same origin with password
    44 PASS Redirect 307 from remote to same remote with user and password
    45 PASS Redirect 307 from remote to same remote with user
    46 PASS Redirect 307 from remote to same remote with password
    47 PASS Redirect 307 from remote to another remote with user and password
    48 PASS Redirect 307 from remote to another remote with user
    49 PASS Redirect 307 from remote to another remote with password
    50 PASS Redirect 308 from same origin to remote with user and password
    51 PASS Redirect 308 from same origin to remote with user
    52 PASS Redirect 308 from same origin to remote with password
    53 PASS Redirect 308 from remote to same origin with user and password
    54 PASS Redirect 308 from remote to same origin with user
    55 PASS Redirect 308 from remote to same origin with password
    56 PASS Redirect 308 from remote to same remote with user and password
    57 PASS Redirect 308 from remote to same remote with user
    58 PASS Redirect 308 from remote to same remote with password
    59 PASS Redirect 308 from remote to another remote with user and password
    60 PASS Redirect 308 from remote to another remote with user
    61 PASS Redirect 308 from remote to another remote with password
     2FAIL Redirect 301 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     3FAIL Redirect 301 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     4FAIL Redirect 301 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     5FAIL Redirect 301 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     6FAIL Redirect 301 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     7FAIL Redirect 301 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     8FAIL Redirect 301 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     9FAIL Redirect 301 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     10FAIL Redirect 301 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     11FAIL Redirect 301 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     12FAIL Redirect 301 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     13FAIL Redirect 301 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
     14FAIL Redirect 302 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     15FAIL Redirect 302 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     16FAIL Redirect 302 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     17FAIL Redirect 302 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     18FAIL Redirect 302 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     19FAIL Redirect 302 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     20FAIL Redirect 302 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     21FAIL Redirect 302 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     22FAIL Redirect 302 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     23FAIL Redirect 302 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     24FAIL Redirect 302 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     25FAIL Redirect 302 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
     26FAIL Redirect 303 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     27FAIL Redirect 303 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     28FAIL Redirect 303 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     29FAIL Redirect 303 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     30FAIL Redirect 303 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     31FAIL Redirect 303 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     32FAIL Redirect 303 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     33FAIL Redirect 303 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     34FAIL Redirect 303 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     35FAIL Redirect 303 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     36FAIL Redirect 303 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     37FAIL Redirect 303 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
     38FAIL Redirect 307 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     39FAIL Redirect 307 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     40FAIL Redirect 307 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     41FAIL Redirect 307 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     42FAIL Redirect 307 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     43FAIL Redirect 307 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     44FAIL Redirect 307 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     45FAIL Redirect 307 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     46FAIL Redirect 307 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     47FAIL Redirect 307 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     48FAIL Redirect 307 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     49FAIL Redirect 307 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
     50FAIL Redirect 308 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     51FAIL Redirect 308 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     52FAIL Redirect 308 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     53FAIL Redirect 308 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     54FAIL Redirect 308 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     55FAIL Redirect 308 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     56FAIL Redirect 308 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     57FAIL Redirect 308 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     58FAIL Redirect 308 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     59FAIL Redirect 308 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     60FAIL Redirect 308 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     61FAIL Redirect 308 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
    6262
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt

    r203164 r203732  
    11
    2 PASS Redirect 301 from same origin to remote with user and password
    3 PASS Redirect 301 from same origin to remote with user
    4 PASS Redirect 301 from same origin to remote with password
    5 PASS Redirect 301 from remote to same origin with user and password
    6 PASS Redirect 301 from remote to same origin with user
    7 PASS Redirect 301 from remote to same origin with password
    8 PASS Redirect 301 from remote to same remote with user and password
    9 PASS Redirect 301 from remote to same remote with user
    10 PASS Redirect 301 from remote to same remote with password
    11 PASS Redirect 301 from remote to another remote with user and password
    12 PASS Redirect 301 from remote to another remote with user
    13 PASS Redirect 301 from remote to another remote with password
    14 PASS Redirect 302 from same origin to remote with user and password
    15 PASS Redirect 302 from same origin to remote with user
    16 PASS Redirect 302 from same origin to remote with password
    17 PASS Redirect 302 from remote to same origin with user and password
    18 PASS Redirect 302 from remote to same origin with user
    19 PASS Redirect 302 from remote to same origin with password
    20 PASS Redirect 302 from remote to same remote with user and password
    21 PASS Redirect 302 from remote to same remote with user
    22 PASS Redirect 302 from remote to same remote with password
    23 PASS Redirect 302 from remote to another remote with user and password
    24 PASS Redirect 302 from remote to another remote with user
    25 PASS Redirect 302 from remote to another remote with password
    26 PASS Redirect 303 from same origin to remote with user and password
    27 PASS Redirect 303 from same origin to remote with user
    28 PASS Redirect 303 from same origin to remote with password
    29 PASS Redirect 303 from remote to same origin with user and password
    30 PASS Redirect 303 from remote to same origin with user
    31 PASS Redirect 303 from remote to same origin with password
    32 PASS Redirect 303 from remote to same remote with user and password
    33 PASS Redirect 303 from remote to same remote with user
    34 PASS Redirect 303 from remote to same remote with password
    35 PASS Redirect 303 from remote to another remote with user and password
    36 PASS Redirect 303 from remote to another remote with user
    37 PASS Redirect 303 from remote to another remote with password
    38 PASS Redirect 307 from same origin to remote with user and password
    39 PASS Redirect 307 from same origin to remote with user
    40 PASS Redirect 307 from same origin to remote with password
    41 PASS Redirect 307 from remote to same origin with user and password
    42 PASS Redirect 307 from remote to same origin with user
    43 PASS Redirect 307 from remote to same origin with password
    44 PASS Redirect 307 from remote to same remote with user and password
    45 PASS Redirect 307 from remote to same remote with user
    46 PASS Redirect 307 from remote to same remote with password
    47 PASS Redirect 307 from remote to another remote with user and password
    48 PASS Redirect 307 from remote to another remote with user
    49 PASS Redirect 307 from remote to another remote with password
    50 PASS Redirect 308 from same origin to remote with user and password
    51 PASS Redirect 308 from same origin to remote with user
    52 PASS Redirect 308 from same origin to remote with password
    53 PASS Redirect 308 from remote to same origin with user and password
    54 PASS Redirect 308 from remote to same origin with user
    55 PASS Redirect 308 from remote to same origin with password
    56 PASS Redirect 308 from remote to same remote with user and password
    57 PASS Redirect 308 from remote to same remote with user
    58 PASS Redirect 308 from remote to same remote with password
    59 PASS Redirect 308 from remote to another remote with user and password
    60 PASS Redirect 308 from remote to another remote with user
    61 PASS Redirect 308 from remote to another remote with password
     2FAIL Redirect 301 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     3FAIL Redirect 301 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     4FAIL Redirect 301 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     5FAIL Redirect 301 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     6FAIL Redirect 301 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     7FAIL Redirect 301 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     8FAIL Redirect 301 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     9FAIL Redirect 301 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     10FAIL Redirect 301 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     11FAIL Redirect 301 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     12FAIL Redirect 301 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     13FAIL Redirect 301 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
     14FAIL Redirect 302 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     15FAIL Redirect 302 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     16FAIL Redirect 302 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     17FAIL Redirect 302 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     18FAIL Redirect 302 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     19FAIL Redirect 302 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     20FAIL Redirect 302 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     21FAIL Redirect 302 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     22FAIL Redirect 302 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     23FAIL Redirect 302 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     24FAIL Redirect 302 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     25FAIL Redirect 302 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
     26FAIL Redirect 303 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     27FAIL Redirect 303 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     28FAIL Redirect 303 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     29FAIL Redirect 303 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     30FAIL Redirect 303 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     31FAIL Redirect 303 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     32FAIL Redirect 303 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     33FAIL Redirect 303 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     34FAIL Redirect 303 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     35FAIL Redirect 303 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     36FAIL Redirect 303 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     37FAIL Redirect 303 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
     38FAIL Redirect 307 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     39FAIL Redirect 307 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     40FAIL Redirect 307 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     41FAIL Redirect 307 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     42FAIL Redirect 307 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     43FAIL Redirect 307 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     44FAIL Redirect 307 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     45FAIL Redirect 307 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     46FAIL Redirect 307 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     47FAIL Redirect 307 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     48FAIL Redirect 307 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     49FAIL Redirect 307 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
     50FAIL Redirect 308 from same origin to remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     51FAIL Redirect 308 from same origin to remote with user assert_unreached: Should have rejected. Reached unreachable code
     52FAIL Redirect 308 from same origin to remote with password assert_unreached: Should have rejected. Reached unreachable code
     53FAIL Redirect 308 from remote to same origin with user and password assert_unreached: Should have rejected. Reached unreachable code
     54FAIL Redirect 308 from remote to same origin with user assert_unreached: Should have rejected. Reached unreachable code
     55FAIL Redirect 308 from remote to same origin with password assert_unreached: Should have rejected. Reached unreachable code
     56FAIL Redirect 308 from remote to same remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     57FAIL Redirect 308 from remote to same remote with user assert_unreached: Should have rejected. Reached unreachable code
     58FAIL Redirect 308 from remote to same remote with password assert_unreached: Should have rejected. Reached unreachable code
     59FAIL Redirect 308 from remote to another remote with user and password assert_unreached: Should have rejected. Reached unreachable code
     60FAIL Redirect 308 from remote to another remote with user assert_unreached: Should have rejected. Reached unreachable code
     61FAIL Redirect 308 from remote to another remote with password assert_unreached: Should have rejected. Reached unreachable code
    6262
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-worker-expected.txt

    r203164 r203732  
    1 localhost:8800 - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
    2 localhost:8800 - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
    3 localhost:8800 - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
    41
    5 FAIL User-added Authorization header with include mode assert_equals: HTTP status is 200 expected 200 but got 401
    6 FAIL User-added Authorization header with same-origin mode assert_equals: HTTP status is 200 expected 200 but got 401
    7 FAIL User-added Authorization header with omit mode assert_equals: HTTP status is 200 expected 200 but got 401
     2PASS User-added Authorization header with include mode
     3PASS User-added Authorization header with same-origin mode
     4PASS User-added Authorization header with omit mode
    85
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-cache-expected.txt

    r202471 r203732  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS RequestCache "default" mode checks the cache for previously cached content and goes to the network for stale responses with Etag and stale response
     3PASS RequestCache "default" mode checks the cache for previously cached content and goes to the network for stale responses with date and stale response
     4PASS 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
     5PASS 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
     6PASS RequestCache "no-cache" mode revalidates stale responses found in the cache with Etag and stale response
     7PASS RequestCache "no-cache" mode revalidates stale responses found in the cache with date and stale response
     8FAIL RequestCache "no-cache" mode revalidates fresh responses found in the cache with Etag and fresh response assert_equals: expected 2 but got 1
     9FAIL RequestCache "no-cache" mode revalidates fresh responses found in the cache with date and fresh response assert_equals: expected 2 but got 1
     10FAIL 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
     11FAIL 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
     12PASS RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for fresh responses with Etag and fresh response
     13PASS RequestCache "force-cache" mode checks the cache for previously cached content and avoid revalidation for fresh responses with date and fresh response
     14PASS 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
     15PASS 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
     16PASS 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
     17PASS 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
     18PASS 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
     19PASS 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
     20PASS 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
     21PASS 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
     22PASS RequestCache "force-cache" stores the response in the cache if it goes to the network with Etag and stale response
     23PASS RequestCache "force-cache" stores the response in the cache if it goes to the network with date and stale response
     24PASS RequestCache "force-cache" stores the response in the cache if it goes to the network with Etag and fresh response
     25PASS RequestCache "force-cache" stores the response in the cache if it goes to the network with date and fresh response
     26FAIL 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"
     27FAIL 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"
     28FAIL 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"
     29FAIL 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"
     30PASS 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
     31PASS 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
     32FAIL 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"
     33FAIL 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"
     34FAIL 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"
     35FAIL 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"
     36PASS RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with Etag and fresh response
     37PASS RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with date and fresh response
     38PASS RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with Etag and stale response
     39PASS RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with date and stale response
     40FAIL 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\""
     41FAIL 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"
     42FAIL 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
     43FAIL 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
     44FAIL 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\""
     45FAIL 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"
     46FAIL RequestCache "no-store" mode does not store the response in the cache with Etag and fresh response assert_equals: expected 2 but got 1
     47FAIL RequestCache "no-store" mode does not store the response in the cache with date and fresh response assert_equals: expected 2 but got 1
     48PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and stale response
     49PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and stale response
     50PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and fresh response
     51PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and fresh response
     52PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and stale response
     53PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and stale response
     54FAIL 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
     55PASS RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and fresh response
     56PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and stale response
     57PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and stale response
     58PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and fresh response
     59PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and fresh response
     60PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and stale response
     61PASS RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and stale response
     62FAIL 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
     63FAIL 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
     64PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and stale response
     65PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and stale response
     66PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and fresh response
     67PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and fresh response
     68PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and stale response
     69PASS RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and stale response
     70FAIL 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
     71FAIL 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
     72PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and stale response
     73PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and stale response
     74PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and fresh response
     75PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and fresh response
     76PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and stale response
     77PASS RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and stale response
     78FAIL 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
     79FAIL 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
     80PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and stale response
     81PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and stale response
     82PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and fresh response
     83PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and fresh response
     84PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and stale response
     85PASS RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and stale response
     86FAIL 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
     87FAIL 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
     88PASS Responses with the "Cache-Control: no-store" header are not stored in the cache with Etag and stale response
     89PASS Responses with the "Cache-Control: no-store" header are not stored in the cache with date and stale response
     90PASS Responses with the "Cache-Control: no-store" header are not stored in the cache with Etag and fresh response
     91PASS Responses with the "Cache-Control: no-store" header are not stored in the cache with date and fresh response
     92FAIL 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\""
     93FAIL 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"
     94FAIL 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
     95FAIL 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
     96PASS RequestCache "reload" mode does store the response in the cache with Etag and stale response
     97PASS RequestCache "reload" mode does store the response in the cache with date and stale response
     98PASS RequestCache "reload" mode does store the response in the cache with Etag and fresh response
     99PASS RequestCache "reload" mode does store the response in the cache with date and fresh response
     100FAIL 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\""
     101FAIL 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"
     102FAIL 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
     103FAIL 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
    3104
    4 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
    5 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
    6 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
    7 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
    8 TIMEOUT RequestCache "no-cache" mode revalidates stale responses found in the cache with Etag and stale response Test timed out
    9 TIMEOUT RequestCache "no-cache" mode revalidates stale responses found in the cache with date and stale response Test timed out
    10 TIMEOUT RequestCache "no-cache" mode revalidates fresh responses found in the cache with Etag and fresh response Test timed out
    11 TIMEOUT RequestCache "no-cache" mode revalidates fresh responses found in the cache with date and fresh response Test timed out
    12 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
    13 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
    14 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
    15 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
    16 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
    17 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
    18 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
    19 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
    20 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
    21 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
    22 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
    23 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
    24 TIMEOUT RequestCache "force-cache" stores the response in the cache if it goes to the network with Etag and stale response Test timed out
    25 TIMEOUT RequestCache "force-cache" stores the response in the cache if it goes to the network with date and stale response Test timed out
    26 TIMEOUT RequestCache "force-cache" stores the response in the cache if it goes to the network with Etag and fresh response Test timed out
    27 TIMEOUT RequestCache "force-cache" stores the response in the cache if it goes to the network with date and fresh response Test timed out
    28 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
    29 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
    30 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
    31 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
    32 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
    33 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
    34 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
    35 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
    36 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
    37 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
    38 TIMEOUT RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with Etag and fresh response Test timed out
    39 TIMEOUT RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with date and fresh response Test timed out
    40 TIMEOUT RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with Etag and stale response Test timed out
    41 TIMEOUT RequestCache "only-if-cached" (with "same-origin") does not follow redirects across origins and rejects with date and stale response Test timed out
    42 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
    43 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
    44 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
    45 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
    46 TIMEOUT RequestCache "no-store" mode does not store the response in the cache with Etag and stale response Test timed out
    47 TIMEOUT RequestCache "no-store" mode does not store the response in the cache with date and stale response Test timed out
    48 TIMEOUT RequestCache "no-store" mode does not store the response in the cache with Etag and fresh response Test timed out
    49 TIMEOUT RequestCache "no-store" mode does not store the response in the cache with date and fresh response Test timed out
    50 TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and stale response Test timed out
    51 TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and stale response Test timed out
    52 TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and fresh response Test timed out
    53 TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and fresh response Test timed out
    54 TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and stale response Test timed out
    55 TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and stale response Test timed out
    56 TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with Etag and fresh response Test timed out
    57 TIMEOUT RequestCache "default" mode with an If-Modified-Since header is treated similarly to "no-store" with date and fresh response Test timed out
    58 TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and stale response Test timed out
    59 TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and stale response Test timed out
    60 TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and fresh response Test timed out
    61 TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and fresh response Test timed out
    62 TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and stale response Test timed out
    63 TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and stale response Test timed out
    64 TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with Etag and fresh response Test timed out
    65 TIMEOUT RequestCache "default" mode with an If-None-Match header is treated similarly to "no-store" with date and fresh response Test timed out
    66 TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and stale response Test timed out
    67 TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and stale response Test timed out
    68 TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and fresh response Test timed out
    69 TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and fresh response Test timed out
    70 TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and stale response Test timed out
    71 TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and stale response Test timed out
    72 TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with Etag and fresh response Test timed out
    73 TIMEOUT RequestCache "default" mode with an If-Unmodified-Since header is treated similarly to "no-store" with date and fresh response Test timed out
    74 TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and stale response Test timed out
    75 TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and stale response Test timed out
    76 TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and fresh response Test timed out
    77 TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and fresh response Test timed out
    78 TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and stale response Test timed out
    79 TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and stale response Test timed out
    80 TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with Etag and fresh response Test timed out
    81 TIMEOUT RequestCache "default" mode with an If-Match header is treated similarly to "no-store" with date and fresh response Test timed out
    82 TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and stale response Test timed out
    83 TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and stale response Test timed out
    84 TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and fresh response Test timed out
    85 TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and fresh response Test timed out
    86 TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and stale response Test timed out
    87 TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and stale response Test timed out
    88 TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with Etag and fresh response Test timed out
    89 TIMEOUT RequestCache "default" mode with an If-Range header is treated similarly to "no-store" with date and fresh response Test timed out
    90 TIMEOUT Responses with the "Cache-Control: no-store" header are not stored in the cache with Etag and stale response Test timed out
    91 TIMEOUT Responses with the "Cache-Control: no-store" header are not stored in the cache with date and stale response Test timed out
    92 TIMEOUT Responses with the "Cache-Control: no-store" header are not stored in the cache with Etag and fresh response Test timed out
    93 TIMEOUT Responses with the "Cache-Control: no-store" header are not stored in the cache with date and fresh response Test timed out
    94 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
    95 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
    96 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
    97 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
    98 TIMEOUT RequestCache "reload" mode does store the response in the cache with Etag and stale response Test timed out
    99 TIMEOUT RequestCache "reload" mode does store the response in the cache with date and stale response Test timed out
    100 TIMEOUT RequestCache "reload" mode does store the response in the cache with Etag and fresh response Test timed out
    101 TIMEOUT RequestCache "reload" mode does store the response in the cache with date and fresh response Test timed out
    102 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
    103 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
    104 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
    105 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
    106 
  • trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt

    r203731 r203732  
    33PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode
    44FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
     5FAIL 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
    66
  • trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt

    r203731 r203732  
    33PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode
    44FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
     5FAIL 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
    66
  • trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt

    r203731 r203732  
    11
    2 FAIL Same domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    33PASS Same domain different port [server forbid CORS]
    4 FAIL Same domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    55FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    66PASS Same domain different protocol different port [server forbid CORS]
    77FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    8 FAIL Cross domain basic usage [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     8FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    99PASS Cross domain basic usage [server forbid CORS]
    10 FAIL Cross domain basic usage [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    11 FAIL Cross domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     10FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
     11FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    1212PASS Cross domain different port [server forbid CORS]
    13 FAIL Cross domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     13FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    1414FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    1515PASS Cross domain different protocol [server forbid CORS]
  • trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt

    r203731 r203732  
    11
    2 FAIL Same domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    33PASS Same domain different port [server forbid CORS]
    4 FAIL Same domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    55FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    66PASS Same domain different protocol different port [server forbid CORS]
    77FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    8 FAIL Cross domain basic usage [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     8FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    99PASS Cross domain basic usage [server forbid CORS]
    10 FAIL Cross domain basic usage [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    11 FAIL Cross domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     10FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
     11FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    1212PASS Cross domain different port [server forbid CORS]
    13 FAIL Cross domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     13FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    1414FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    1515PASS Cross domain different protocol [server forbid CORS]
  • trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-expected.txt

    r203731 r203732  
    33PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode
    44FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
     5FAIL 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
    66
  • trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors-worker-expected.txt

    r203731 r203732  
    33PASS Fetch http://localhost:8800/fetch/api/resources/top.txt with no-cors mode
    44FAIL Fetch https://localhost:9443/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
    5 FAIL Fetch http://localhost:8801/fetch/api/resources/top.txt with no-cors mode promise_test: Unhandled rejection with value: object "TypeError: Type error"
     5FAIL 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
    66
  • trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt

    r203731 r203732  
    11
    2 FAIL Same domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    33PASS Same domain different port [server forbid CORS]
    4 FAIL Same domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    55FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    66PASS Same domain different protocol different port [server forbid CORS]
    77FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    8 FAIL Cross domain basic usage [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     8FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    99PASS Cross domain basic usage [server forbid CORS]
    10 FAIL Cross domain basic usage [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    11 FAIL Cross domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     10FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
     11FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    1212PASS Cross domain different port [server forbid CORS]
    13 FAIL Cross domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     13FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    1414FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    1515PASS Cross domain different protocol [server forbid CORS]
  • trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt

    r203731 r203732  
    11
    2 FAIL Same domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     2FAIL Same domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    33PASS Same domain different port [server forbid CORS]
    4 FAIL Same domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     4FAIL Same domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    55FAIL Same domain different protocol different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    66PASS Same domain different protocol different port [server forbid CORS]
    77FAIL Same domain different protocol different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    8 FAIL Cross domain basic usage [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     8FAIL Cross domain basic usage [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    99PASS Cross domain basic usage [server forbid CORS]
    10 FAIL Cross domain basic usage [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    11 FAIL Cross domain different port [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     10FAIL Cross domain basic usage [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
     11FAIL Cross domain different port [no-cors mode] assert_equals: Opaque filter: status is 0 expected 0 but got 200
    1212PASS Cross domain different port [server forbid CORS]
    13 FAIL Cross domain different port [cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
     13FAIL Cross domain different port [cors mode] assert_equals: CORS response's type is cors expected "cors" but got "basic"
    1414FAIL Cross domain different protocol [no-cors mode] promise_test: Unhandled rejection with value: object "TypeError: Type error"
    1515PASS Cross domain different protocol [server forbid CORS]
  • trunk/Source/WebCore/ChangeLog

    r203731 r203732  
     12016-07-26  Youenn Fablet  <youenn@apple.com>
     2
     3        [Fetch API] Add support for fetch mode, in particular cors
     4        https://bugs.webkit.org/show_bug.cgi?id=156753
     5
     6        Reviewed by Darin Adler.
     7
     8        Covered by rebased tests.
     9
     10        * Modules/fetch/FetchLoader.cpp:
     11        (WebCore::FetchLoader::start): Passing fetch mode to ThreadableLoader.
     12        Disabling as a temp fix credentials in case of CORS mode as credential options is not yet supported and would make several tests fail.
     13
    1142016-07-26  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/Modules/fetch/FetchLoader.cpp

    r203726 r203732  
    8484    // FIXME: Pass directly all fetch options to loader options.
    8585    options.redirect = request.fetchOptions().redirect;
    86     options.mode = FetchOptions::Mode::SameOrigin;
     86    options.mode = request.fetchOptions().mode;
     87    if (options.mode == FetchOptions::Mode::Cors)
     88        options.setAllowCredentials(DoNotAllowStoredCredentials);
    8789
    8890    m_loader = ThreadableLoader::create(&context, this, request.internalRequest(), options);
Note: See TracChangeset for help on using the changeset viewer.