Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-expected.txt

Issue 1196423003: Improve console log message for CORS failure (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 CONSOLE WARNING: Synchronous XMLHttpRequest on the main thread is deprecated bec ause of its detrimental effects to the end user's experience. For more help, che ck http://xhr.spec.whatwg.org/. 1 CONSOLE WARNING: Synchronous XMLHttpRequest on the main thread is deprecated bec ause of its detrimental effects to the end user's experience. For more help, che ck http://xhr.spec.whatwg.org/.
2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/redire ct.php?url=http://127.0.0.1:8000/xmlhttprequest/resources/access-control-basic-a llow.cgi. No 'Access-Control-Allow-Origin' header is present on the requested re source. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/redire ct.php?url=http://127.0.0.1:8000/xmlhttprequest/resources/access-control-basic-a llow.cgi. The request was redirected to 'http://127.0.0.1:8000/xmlhttprequest/re sources/access-control-basic-allow.cgi', and has been blocked from loading by Cr oss-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is p resent on the requested resource. Origin 'http://127.0.0.1:8000' is therefore no t allowed access.
3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/redire ct.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-a llow.cgi. No 'Access-Control-Allow-Origin' header is present on the requested re source. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/redire ct.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-a llow.cgi. The request was redirected to 'http://localhost:8000/xmlhttprequest/re sources/access-control-basic-allow.cgi', and has been blocked from loading by Cr oss-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is p resent on the requested resource. Origin 'http://127.0.0.1:8000' is therefore no t allowed access.
4 Tests that redirects between origins are never allowed, even when access control is involved. 4 Tests that redirects between origins are never allowed, even when access control is involved.
5 5
6 Per the spec, these test cases should be allowed, but cross-origin redirects are currently unsupported in WebCore. 6 Per the spec, these test cases should be allowed, but cross-origin redirects are currently unsupported in WebCore.
7 7
8 Testing /resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resourc es/access-control-basic-allow.cgi (sync) 8 Testing /resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resourc es/access-control-basic-allow.cgi (sync)
9 Expecting success: false 9 Expecting success: false
10 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://127.0.0.1:8000/resources/redirect.php?url=http://localhost:8000/xmlhttp request/resources/access-control-basic-allow.cgi'. 10 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://127.0.0.1:8000/resources/redirect.php?url=http://localhost:8000/xmlhttp request/resources/access-control-basic-allow.cgi'.
11 Testing /resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resourc es/access-control-basic-allow.cgi(async) 11 Testing /resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resourc es/access-control-basic-allow.cgi(async)
12 Expecting success: true 12 Expecting success: true
13 PASS: PASS: Cross-domain access allowed. 13 PASS: PASS: Cross-domain access allowed.
14 14
15 Testing http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/x mlhttprequest/resources/access-control-basic-allow.cgi (sync) 15 Testing http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/x mlhttprequest/resources/access-control-basic-allow.cgi (sync)
16 Expecting success: false 16 Expecting success: false
17 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/xmlhttp request/resources/access-control-basic-allow.cgi'. 17 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/xmlhttp request/resources/access-control-basic-allow.cgi'.
18 Testing http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/x mlhttprequest/resources/access-control-basic-allow.cgi(async) 18 Testing http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/x mlhttprequest/resources/access-control-basic-allow.cgi(async)
19 Expecting success: false 19 Expecting success: false
20 PASS: 0 20 PASS: 0
21 Testing http://localhost:8000/resources/redirect.php?url=http://localhost:8000/x mlhttprequest/resources/access-control-basic-allow.cgi (sync) 21 Testing http://localhost:8000/resources/redirect.php?url=http://localhost:8000/x mlhttprequest/resources/access-control-basic-allow.cgi (sync)
22 Expecting success: false 22 Expecting success: false
23 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/resources/redirect.php?url=http://localhost:8000/xmlhttp request/resources/access-control-basic-allow.cgi'. 23 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/resources/redirect.php?url=http://localhost:8000/xmlhttp request/resources/access-control-basic-allow.cgi'.
24 Testing http://localhost:8000/resources/redirect.php?url=http://localhost:8000/x mlhttprequest/resources/access-control-basic-allow.cgi(async) 24 Testing http://localhost:8000/resources/redirect.php?url=http://localhost:8000/x mlhttprequest/resources/access-control-basic-allow.cgi(async)
25 Expecting success: false 25 Expecting success: false
26 PASS: 0 26 PASS: 0
27 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698