Changeset 205464 in webkit
- Timestamp:
- Sep 5, 2016 7:08:52 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 17 deleted
- 53 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r205455 r205464 1 2016-09-05 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r205450. 4 https://bugs.webkit.org/show_bug.cgi?id=161614 5 6 Made tests flaky, causing false positives on EWS (Requested by 7 ap on #webkit). 8 9 Reverted changeset: 10 11 "CachedResourceLoader is not taking into account fetch options 12 to use or not cached resources" 13 https://bugs.webkit.org/show_bug.cgi?id=161389 14 http://trac.webkit.org/changeset/205450 15 1 16 2016-09-05 Youenn Fablet <youenn@apple.com> 2 17 -
trunk/LayoutTests/http/tests/eventsource/eventsource-cors-basic-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.2 1 CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-basic.php?count=1. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.4 2 CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-basic.php?count=2. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 5 3 Test that basic EventSource cross-origin requests fail until they are allowed by the Access-Control-Allow-Origin header. Should print a series of PASS messages followed by DONE. -
trunk/LayoutTests/http/tests/eventsource/eventsource-cors-with-credentials-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.2 1 CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-credentials.php?count=1. Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 3 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.4 2 CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-credentials.php?count=2. Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 5 CONSOLE MESSAGE: Credentials flag is true, but Access-Control-Allow-Credentials is not "true".6 3 CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-credentials.php?count=3. Credentials flag is true, but Access-Control-Allow-Credentials is not "true". 7 4 Test that EventSource cross-origin requests with credentials fail until the correct CORS headers are sent. Should print a series of PASS messages followed by DONE. -
trunk/LayoutTests/http/tests/loading/cross-origin-XHR-willLoadRequest-expected.txt
r205450 r205464 4 4 main frame - didHandleOnloadEventsForFrame 5 5 main frame - didFinishLoadForFrame 6 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 7 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/loading/resources/foo.txt due to access control checks. 6 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/loading/resources/foo.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 8 7 The console message above should report failure to load foo.txt due to cross-origin access, not a network error. -
trunk/LayoutTests/http/tests/resources/download-json-with-delay.php
r205450 r205464 1 1 <?php 2 2 header("Expires: Thu, 01 Dec 2003 16:00:00 GMT"); 3 4 if ($_GET['allowCache']) { 5 header("Content-Type: application/json"); 6 } else { 7 header("Content-Type: application/x-no-buffering-please"); 8 header("Cache-Control: no-cache, no-store, must-revalidate"); 9 header("Pragma: no-cache"); 10 } 11 12 if ($_GET['cors']) { 13 header("Access-Control-Allow-Origin: *"); 14 } 3 header("Cache-Control: no-cache, no-store, must-revalidate"); 4 header("Pragma: no-cache"); 5 header("Content-Type: application/x-no-buffering-please"); 15 6 16 7 $iteration = $_GET['iteration']; -
trunk/LayoutTests/http/tests/resources/redirect.php
r205450 r205464 1 1 <?php 2 function addCacheControl($allowCache) { 3 if ($allowCache) 4 header("Cache-Control: public, max-age=86400"); 5 else { 6 # Workaround for https://bugs.webkit.org/show_bug.cgi?id=77538 7 # Caching redirects results in flakiness in tests that dump loader delegates. 8 header("Cache-Control: no-store"); 9 } 2 function addCacheControl() { 3 # Workaround for https://bugs.webkit.org/show_bug.cgi?id=77538 4 # Caching redirects results in flakiness in tests that dump loader delegates. 5 header("Cache-Control: no-store"); 10 6 } 11 7 12 8 $url = $_GET['url']; 13 9 14 $allowCache = isset($_GET['allowCache']);15 16 10 if (isset($_GET['refresh'])) { 17 11 header("HTTP/1.1 200"); 18 12 header("Refresh: " . $_GET['refresh'] . "; url=$url"); 19 addCacheControl( $allowCache);13 addCacheControl(); 20 14 return; 21 15 } … … 29 23 header("HTTP/1.1 " . $_GET['code']); 30 24 header("Location: $url"); 31 addCacheControl( $allowCache);25 addCacheControl(); 32 26 ?> -
trunk/LayoutTests/http/tests/security/img-with-failed-cors-check-fails-to-load-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.2 1 CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy. 3 2 ALERT: PASS: The error event was called. -
trunk/LayoutTests/http/tests/security/resources/abe-allow-star.php
r205450 r205464 1 1 <?php 2 2 header("Access-Control-Allow-Origin: *"); 3 4 $allowCache = $_GET['allowCache'];5 if (isset($allowCache))6 header("Cache-Control: max-age=100");7 3 8 4 $name = 'abe.png'; -
trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.2 1 CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy. 3 2 >>> -
trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash2-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.2 1 CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy. 3 2 Test passes if it doesn't crash. -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-same-origin-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-star.cgi due to access control checks. 3 CONSOLE MESSAGE: Credentials flag is true, but Access-Control-Allow-Credentials is not "true". 4 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-no-credentials.cgi due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-star.cgi. Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-no-credentials.cgi. Credentials flag is true, but Access-Control-Allow-Credentials is not "true". 5 3 Tests that asynchronous XMLHttpRequests handle redirects according to the CORS standard. 6 4 -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-repeated-failed-preflight-crash-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks. 3 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 4 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks. 5 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 6 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks. 7 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 8 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks. 9 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 10 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks. 11 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 12 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 4 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 5 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 6 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 13 7 PASS -
trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt
r205450 r205464 1 1 CONSOLE MESSAGE: line 56: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-origin-no-authorization.php. Credentials flag is true, but Access-Control-Allow-Credentials is not "true". 2 CONSOLE MESSAGE: Credentials flag is true, but Access-Control-Allow-Credentials is not "true". 3 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-origin-no-authorization.php due to access control checks. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-origin-no-authorization.php. Credentials flag is true, but Access-Control-Allow-Credentials is not "true". 4 3 Start 5 4 Trying different ways to access a password protected resource from another origin. The UA already has login and password for this protection space. -
trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-credential-prompt-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/basic-auth/basic-auth.php?uid=41531 due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/basic-auth/basic-auth.php?uid=41531. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 2 There should be no authentication prompt displayed, since this is a cross-origin request. In automatic mode, the test relies on logging of authentication sheets. -
trunk/LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 2 PASS 4 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/onerror-event-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 2 This test that the error event is fired for XMLHttpRequests 4 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-https-expected.txt
r205450 r205464 1 1 CONSOLE MESSAGE: line 20: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/get.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/get.txt due to access control checks. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/get.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 4 3 Tests that origin whitelisting for https does not match http URLs. 5 4 -
trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains-expected.txt
r205450 r205464 1 1 CONSOLE MESSAGE: line 16: XMLHttpRequest cannot load http://127.0.0.1:8000/xmlhttprequest/resources/get.txt. Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin. 3 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8000/xmlhttprequest/resources/get.txt due to access control checks. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8000/xmlhttprequest/resources/get.txt. Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin. 4 3 Specifying that an IP address should match subdomains doesn't make sense. This test verifies that it doesn't do anything. 5 4 -
trunk/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-allow-lists.php due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-allow-lists.php. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 2 Test verifies that content MIME type is set correctly when Blob is sent using XMLHttpRequest asynchronously. 4 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-2-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 2 Test that a cross-origin redirect to a server that responds is indistinguishable from one that does not. Should say PASS: 4 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 2 Test that a cross-origin redirect to a server that responds is indistinguishable from one that does not. Should say PASS: 4 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-denied-events-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 2 Test that a simple cross-origin request to a server that responds (but does not permit cross-origin requests) is indistinguishable from one that does not exist. Should say PASS: 4 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-progress-events-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-site-progress-events.cgi due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-site-progress-events.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-site-progress-events.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 4 3 Test that upload progress events are not dispatched for simple cross-origin requests (i.e. if the listener is set after calling send(), and there are no other reasons to make a preflight request). -
trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unsafe-redirect-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8080/xmlhttprequest/resources/forbidden.txt due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8080/xmlhttprequest/resources/forbidden.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 3 2 This tests that unsafe redirects won't be allowed when making an XMLHttpRequest. 4 3 Sync XHR started. -
trunk/LayoutTests/imported/w3c/ChangeLog
r205450 r205464 1 2016-09-05 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r205450. 4 https://bugs.webkit.org/show_bug.cgi?id=161614 5 6 Made tests flaky, causing false positives on EWS (Requested by 7 ap on #webkit). 8 9 Reverted changeset: 10 11 "CachedResourceLoader is not taking into account fetch options 12 to use or not cached resources" 13 https://bugs.webkit.org/show_bug.cgi?id=161389 14 http://trac.webkit.org/changeset/205450 15 1 16 2016-09-05 Youenn Fablet <youenn@apple.com> 2 17 -
trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/security-consideration.sub-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8801/XMLHttpRequest/resources/img.jpg due to access control checks. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8801/XMLHttpRequest/resources/img.jpg. Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin. 3 2 4 3 FAIL ProgressEvent: security consideration assert_unreached: MUST NOT dispatch progress event. Reached unreachable code -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.3 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.4 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.5 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.6 1 7 2 PASS Same domain different port [no-cors mode] -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.3 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.4 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.5 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.6 1 7 2 PASS Same domain different port [no-cors mode] -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 1 3 2 PASS 3 origins allowed, match the 3rd (http://localhost:8800) -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 1 3 2 PASS 3 origins allowed, match the 3rd (http://localhost:8800) -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.3 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.4 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.5 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.6 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.7 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.8 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.9 1 10 2 PASS Cross domain different subdomain [origin OK] -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.3 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.4 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.5 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.6 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.7 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.8 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.9 1 10 2 PASS Cross domain different subdomain [origin OK] -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin.js
r205450 r205464 17 17 18 18 promise_test(function(test) { 19 returnfetch(RESOURCES_DIR + "clean-stash.py?token=" + uuid_token).then(function(resp) {19 fetch(RESOURCES_DIR + "clean-stash.py?token=" + uuid_token).then(function(resp) { 20 20 assert_equals(resp.status, 200, "Clean stash response's status is 200"); 21 21 if (shouldPass) { -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.2 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.3 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.4 1 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 5 2 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. … … 11 8 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 12 9 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 13 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.14 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.15 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.16 10 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 17 11 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. … … 23 17 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 24 18 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 25 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.26 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.27 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.28 19 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 29 20 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. … … 35 26 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 36 27 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 37 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.38 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.39 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.40 28 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 41 29 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. … … 47 35 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 48 36 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 49 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.50 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.51 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.52 37 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 53 38 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.2 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.3 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.4 1 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 5 2 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. … … 11 8 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 12 9 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 13 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.14 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.15 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.16 10 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 17 11 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. … … 23 17 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 24 18 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 25 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.26 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.27 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.28 19 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 29 20 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. … … 35 26 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 36 27 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 37 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.38 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.39 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.40 28 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 41 29 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. … … 47 35 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 48 36 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 49 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.50 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.51 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.52 37 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. 53 38 CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. -
trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.3 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.4 1 5 2 PASS Same domain different port [no-cors mode] -
trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.3 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.4 1 5 2 PASS Same domain different port [no-cors mode] -
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.3 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.4 1 5 2 PASS Same domain different port [no-cors mode] -
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt
r205450 r205464 1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.2 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.3 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.4 1 5 2 PASS Same domain different port [no-cors mode] -
trunk/Source/WebCore/ChangeLog
r205462 r205464 1 2016-09-05 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r205450. 4 https://bugs.webkit.org/show_bug.cgi?id=161614 5 6 Made tests flaky, causing false positives on EWS (Requested by 7 ap on #webkit). 8 9 Reverted changeset: 10 11 "CachedResourceLoader is not taking into account fetch options 12 to use or not cached resources" 13 https://bugs.webkit.org/show_bug.cgi?id=161389 14 http://trac.webkit.org/changeset/205450 15 1 16 2016-08-31 Filip Pizlo <fpizlo@apple.com> 2 17 -
trunk/Source/WebCore/loader/CrossOriginPreflightChecker.cpp
r205450 r205464 101 101 void CrossOriginPreflightChecker::startPreflight() 102 102 { 103 ResourceLoaderOptions options ;104 options. referrerPolicy = m_loader.options().referrerPolicy;103 ResourceLoaderOptions options = static_cast<FetchOptions>(m_loader.options()); 104 options.credentials = FetchOptions::Credentials::Omit; 105 105 options.redirect = FetchOptions::Redirect::Manual; 106 106 -
trunk/Source/WebCore/loader/DocumentThreadableLoader.cpp
r205450 r205464 277 277 ASSERT(m_client); 278 278 279 String accessControlErrorDescription; 280 if (!m_sameOriginRequest && m_options.mode == FetchOptions::Mode::Cors) { 281 if (!passesAccessControlCheck(response, m_options.allowCredentials, securityOrigin(), accessControlErrorDescription)) { 282 m_client->didFail(ResourceError(errorDomainWebKitInternal, 0, response.url(), accessControlErrorDescription, ResourceError::Type::AccessControl)); 283 return; 284 } 285 } 286 279 287 ASSERT(response.type() != ResourceResponse::Type::Error); 280 288 if (response.type() == ResourceResponse::Type::Default) { … … 423 431 424 432 ResourceResponse::Tainting tainting = ResourceResponse::Tainting::Basic; 425 if (!m_sameOriginRequest) { 426 if (m_options.mode == FetchOptions::Mode::NoCors) 427 tainting = ResourceResponse::Tainting::Opaque; 428 else { 429 ASSERT(m_options.mode == FetchOptions::Mode::Cors); 430 tainting = ResourceResponse::Tainting::Cors; 431 String accessControlErrorDescription; 432 if (!passesAccessControlCheck(response, m_options.allowCredentials, securityOrigin(), accessControlErrorDescription)) { 433 m_client->didFail(ResourceError(errorDomainWebKitInternal, 0, response.url(), accessControlErrorDescription, ResourceError::Type::AccessControl)); 434 return; 435 } 436 } 437 } 433 if (!m_sameOriginRequest) 434 tainting = m_options.mode == FetchOptions::Mode::Cors ? ResourceResponse::Tainting::Cors : ResourceResponse::Tainting::Opaque; 438 435 didReceiveResponse(identifier, response, tainting); 439 436 -
trunk/Source/WebCore/loader/ImageLoader.cpp
r205450 r205464 211 211 errorEventSender().dispatchEventSoon(*this); 212 212 } 213 213 214 214 CachedImage* oldImage = m_image.get(); 215 215 if (newImage != oldImage) { … … 283 283 return; 284 284 285 if ( resource->resourceError().isAccessControl()) {285 if (element().hasAttributeWithoutSynchronization(HTMLNames::crossoriginAttr) && !resource->passesSameOriginPolicyCheck(*element().document().securityOrigin())) { 286 286 clearImageWithoutConsideringPendingLoadEvent(); 287 287 -
trunk/Source/WebCore/loader/SubresourceLoader.cpp
r205450 r205464 278 278 } 279 279 280 String errorDescription;281 if (!checkResponseCrossOriginAccessControl(response, errorDescription)) {282 if (m_frame && m_frame->document())283 m_frame->document()->addConsoleMessage(MessageSource::Security, MessageLevel::Error, errorDescription);284 cancel(ResourceError(String(), 0, request().url(), errorDescription, ResourceError::Type::AccessControl));285 return;286 }287 288 280 m_resource->responseReceived(response); 289 281 if (reachedTerminalState()) … … 410 402 } 411 403 frame->page()->diagnosticLoggingClient().logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceKey(), DiagnosticLoggingKeys::loadedKey(), resourceType, ShouldSample::Yes); 412 }413 414 bool SubresourceLoader::checkResponseCrossOriginAccessControl(const ResourceResponse& response, String& errorDescription)415 {416 if (!m_resource->isCrossOrigin() || options().mode != FetchOptions::Mode::Cors)417 return true;418 419 ASSERT(m_origin);420 return passesAccessControlCheck(response, options().allowCredentials, *m_origin, errorDescription);421 404 } 422 405 -
trunk/Source/WebCore/loader/SubresourceLoader.h
r205450 r205464 93 93 94 94 bool checkForHTTPStatusCodeError(); 95 bool checkResponseCrossOriginAccessControl(const ResourceResponse&, String&);96 95 bool checkRedirectionCrossOriginAccessControl(const ResourceRequest& previousRequest, const ResourceResponse&, ResourceRequest& newRequest, String&); 97 96 -
trunk/Source/WebCore/loader/cache/CachedImage.cpp
r205450 r205464 115 115 } 116 116 117 void CachedImage::setBodyDataFrom(const CachedResource& resource)118 {119 ASSERT(resource.type() == type());120 const CachedImage& image = static_cast<const CachedImage&>(resource);121 122 setLoading(false);123 m_image = image.m_image;124 125 if (m_image && is<SVGImage>(*m_image))126 m_svgImageCache = std::make_unique<SVGImageCache>(&downcast<SVGImage>(*m_image));127 }128 129 117 void CachedImage::didAddClient(CachedResourceClient* client) 130 118 { … … 133 121 m_image->setData(m_data.copyRef(), true); 134 122 } 135 123 136 124 ASSERT(client->resourceClientType() == CachedImageClient::expectedType()); 137 125 if (m_image && !m_image->isNull()) -
trunk/Source/WebCore/loader/cache/CachedImage.h
r205450 r205464 92 92 void clear(); 93 93 94 CachedImage(CachedImage&, const ResourceRequest&, SessionID);95 96 void setBodyDataFrom(const CachedResource&) final;97 98 94 void createImage(); 99 95 void clearImage(); -
trunk/Source/WebCore/loader/cache/CachedResource.cpp
r205450 r205464 237 237 } 238 238 239 void CachedResource::addAdditionalRequestHeaders(CachedResourceLoader& loader) 240 { 241 addAdditionalRequestHeadersToRequest(m_resourceRequest, loader, *this); 242 } 243 244 void CachedResource::computeOrigin(CachedResourceLoader& loader) 245 { 246 if (type() == MainResource) 247 return; 248 249 ASSERT(loader.document()); 250 if (m_resourceRequest.hasHTTPOrigin()) 251 m_origin = SecurityOrigin::createFromString(m_resourceRequest.httpOrigin()); 252 else 253 m_origin = loader.document()->securityOrigin(); 254 ASSERT(m_origin); 255 256 if (!(m_resourceRequest.url().protocolIsData() && m_options.sameOriginDataURLFlag == SameOriginDataURLFlag::Set) && !m_origin->canRequest(m_resourceRequest.url())) 257 setCrossOrigin(); 258 259 addAdditionalRequestHeaders(loader); 239 void CachedResource::addAdditionalRequestHeaders(CachedResourceLoader& cachedResourceLoader) 240 { 241 addAdditionalRequestHeadersToRequest(m_resourceRequest, cachedResourceLoader, *this); 260 242 } 261 243 … … 319 301 m_resourceRequest.setPriority(loadPriority()); 320 302 321 computeOrigin(cachedResourceLoader); 303 if (type() != MainResource) { 304 if (m_resourceRequest.hasHTTPOrigin()) 305 m_origin = SecurityOrigin::createFromString(m_resourceRequest.httpOrigin()); 306 else 307 m_origin = cachedResourceLoader.document()->securityOrigin(); 308 ASSERT(m_origin); 309 310 if (!(m_resourceRequest.url().protocolIsData() && options.sameOriginDataURLFlag == SameOriginDataURLFlag::Set) && m_origin && !m_origin->canRequest(m_resourceRequest.url())) 311 setCrossOrigin(); 312 313 addAdditionalRequestHeaders(cachedResourceLoader); 314 } 322 315 323 316 // FIXME: It's unfortunate that the cache layer and below get to know anything about fragment identifiers. … … 338 331 339 332 m_status = Pending; 340 }341 342 void CachedResource::loadFrom(const CachedResource& resource, const ResourceLoaderOptions& options, CachedResourceLoader& cachedResourceLoader)343 {344 ASSERT(url() == resource.url());345 ASSERT(type() == resource.type());346 ASSERT(resource.status() == Status::Cached);347 348 m_options = options;349 computeOrigin(cachedResourceLoader);350 351 if (isCrossOrigin() && options.mode == FetchOptions::Mode::Cors) {352 ASSERT(m_origin);353 String errorMessage;354 if (!WebCore::passesAccessControlCheck(resource.response(), m_options.allowCredentials, *m_origin, errorMessage)) {355 setResourceError(ResourceError(String(), 0, url(), errorMessage, ResourceError::Type::AccessControl));356 return;357 }358 }359 360 setBodyDataFrom(resource);361 333 } 362 334 -
trunk/Source/WebCore/loader/cache/CachedResource.h
r205450 r205464 210 210 ResourceResponse::Tainting responseTainting() const { return m_responseTainting; } 211 211 212 void loadFrom(const CachedResource&, const ResourceLoaderOptions&, CachedResourceLoader&);213 214 212 SecurityOrigin* origin() const { return m_origin.get(); } 215 213 … … 308 306 virtual void checkNotify(); 309 307 virtual bool mayTryReplaceEncodedData() const { return false; } 310 virtual void setBodyDataFrom(const CachedResource&) { }311 308 312 309 std::chrono::microseconds freshnessLifetime(const ResourceResponse&) const; 313 310 314 311 void addAdditionalRequestHeaders(CachedResourceLoader&); 315 void computeOrigin(CachedResourceLoader&);316 312 void failBeforeStarting(); 317 313 -
trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp
r205450 r205464 540 540 } 541 541 542 bool CachedResourceLoader::updateCachedResourceWithCurrentRequest(CachedResourceRequest& request, CachedResourceHandle<CachedResource>& resourceHandle)543 {544 ASSERT(resourceHandle);545 546 CachedResource& resource = *resourceHandle;547 548 // FIXME: We should progressively extend this to other reusable resources549 if (resource.type() != CachedResource::Type::ImageResource)550 return false;551 552 bool shouldUpdate = resource.options().mode != request.options().mode || request.resourceRequest().httpOrigin() != resource.resourceRequest().httpOrigin();553 554 if (!shouldUpdate)555 return false;556 557 // FIXME: For being loaded requests, we currently do not use the same resource, as this may induce errors in the resource response tainting.558 // We should find a way to improve this.559 if (resource.status() != CachedResource::Cached) {560 request.setCachingPolicy(CachingPolicy::DisallowCaching);561 resourceHandle = loadResource(resource.type(), request);562 return true;563 }564 565 resourceHandle = createResource(resource.type(), request.mutableResourceRequest(), request.charset(), sessionID());566 resourceHandle->loadFrom(resource, request.options(), *this);567 return true;568 }569 570 542 static inline void logMemoryCacheResourceRequest(Frame* frame, const String& description, const String& value = String()) 571 543 { … … 664 636 break; 665 637 case Use: 666 if (!updateCachedResourceWithCurrentRequest(request, resource)) { 667 if (!shouldContinueAfterNotifyingLoadedFromMemoryCache(request, resource.get())) 668 return nullptr; 669 logMemoryCacheResourceRequest(frame(), DiagnosticLoggingKeys::inMemoryCacheKey(), DiagnosticLoggingKeys::usedKey()); 670 memoryCache.resourceAccessed(*resource); 638 if (!shouldContinueAfterNotifyingLoadedFromMemoryCache(request, resource.get())) 639 return nullptr; 640 logMemoryCacheResourceRequest(frame(), DiagnosticLoggingKeys::inMemoryCacheKey(), DiagnosticLoggingKeys::usedKey()); 641 memoryCache.resourceAccessed(*resource); 671 642 #if ENABLE(WEB_TIMING) 672 if (document() && RuntimeEnabledFeatures::sharedFeatures().resourceTimingEnabled()) { 673 // FIXME (161170): The networkLoadTiming shouldn't be stored on the ResourceResponse. 674 resource->response().networkLoadTiming().reset(); 675 loadTiming.setResponseEnd(monotonicallyIncreasingTime()); 676 m_resourceTimingInfo.storeResourceTimingInitiatorInformation(resource, request, frame()); 677 m_resourceTimingInfo.addResourceTiming(resource.get(), *document(), loadTiming); 678 } 679 #endif 680 } 643 if (document() && RuntimeEnabledFeatures::sharedFeatures().resourceTimingEnabled()) { 644 // FIXME (161170): The networkLoadTiming shouldn't be stored on the ResourceResponse. 645 resource->response().networkLoadTiming().reset(); 646 loadTiming.setResponseEnd(monotonicallyIncreasingTime()); 647 m_resourceTimingInfo.storeResourceTimingInitiatorInformation(resource, request, frame()); 648 m_resourceTimingInfo.addResourceTiming(resource.get(), *document(), loadTiming); 649 } 650 #endif 681 651 break; 682 652 } … … 831 801 if (cachedResourceRequest.defer() == CachedResourceRequest::DeferredByClient) 832 802 return Reload; 833 803 834 804 // Don't reload resources while pasting. 835 805 if (m_allowStaleResources) 836 806 return Use; 837 807 838 808 // Always use preloads. 839 809 if (existingResource->isPreloaded()) -
trunk/Source/WebCore/loader/cache/CachedResourceLoader.h
r205450 r205464 156 156 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; 157 157 RevalidationPolicy determineRevalidationPolicy(CachedResource::Type, CachedResourceRequest&, CachedResource* existingResource) const; 158 159 bool updateCachedResourceWithCurrentRequest(CachedResourceRequest&, CachedResourceHandle<CachedResource>&); 158 160 159 bool shouldContinueAfterNotifyingLoadedFromMemoryCache(const CachedResourceRequest&, CachedResource*); 161 160 bool checkInsecureContent(CachedResource::Type, const URL&) const; -
trunk/Source/WebCore/loader/cache/CachedResourceRequest.h
r205450 r205464 62 62 const AtomicString& initiatorName() const; 63 63 bool allowsCaching() const { return m_options.cachingPolicy == CachingPolicy::AllowCaching; } 64 void setCachingPolicy(CachingPolicy policy) { m_options.cachingPolicy = policy; }65 64 66 65 void setAsPotentiallyCrossOrigin(const String&, Document&); -
trunk/Source/WebCore/style/StylePendingResources.cpp
r205450 r205464 55 55 options.mode = FetchOptions::Mode::Cors; 56 56 options.allowCredentials = DoNotAllowStoredCredentials; 57 options.sameOriginDataURLFlag = SameOriginDataURLFlag::Set;58 57 } 59 58
Note: See TracChangeset
for help on using the changeset viewer.