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

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

Issue 585873002: Show a warning when using sync xhr. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added needsrebaseline for win_rel. Created 6 years, 1 month 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 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. 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://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. 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 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.
4 5
5 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.
6 7
7 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)
8 Expecting success: false 9 Expecting success: false
9 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'.
10 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)
11 Expecting success: true 12 Expecting success: true
12 PASS: PASS: Cross-domain access allowed. 13 PASS: PASS: Cross-domain access allowed.
13 14
14 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)
15 Expecting success: false 16 Expecting success: false
16 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'.
17 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)
18 Expecting success: false 19 Expecting success: false
19 PASS: 0 20 PASS: 0
20 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)
21 Expecting success: false 22 Expecting success: false
22 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'.
23 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)
24 Expecting success: false 25 Expecting success: false
25 PASS: 0 26 PASS: 0
26 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698