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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions-expected.txt

Issue 2456013002: CSP: 'connect-src' should not cause exceptions. (Closed)
Patch Set: Ugh. Created 3 years, 9 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 ERROR: line 23: Refused to connect to 'http://not.example.com/' because it violates the following Content Security Policy directive: "connect-src http:/ /example.com".
2
3 This tests that exceptions thrown by XHR.open() have reasonable messages. 1 This tests that exceptions thrown by XHR.open() have reasonable messages.
4 2
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
6 4
7 5
8 PASS xhrException.message is "Failed to execute 'open' on 'XMLHttpRequest': 'TRA CE' HTTP method is unsupported." 6 PASS xhrException.message is "Failed to execute 'open' on 'XMLHttpRequest': 'TRA CE' HTTP method is unsupported."
9 PASS xhrException.message is "Failed to execute 'open' on 'XMLHttpRequest': Refu sed to connect to 'http://not.example.com/' because it violates the document's C ontent Security Policy."
10 PASS xhr.readyState is XMLHttpRequest.UNSENT 7 PASS xhr.readyState is XMLHttpRequest.UNSENT
11 PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, badString, ' password'); threw exception Exception in toString(). 8 PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, badString, ' password'); threw exception Exception in toString().
12 PASS xhr.readyState is XMLHttpRequest.UNSENT 9 PASS xhr.readyState is XMLHttpRequest.UNSENT
13 PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, 'username', badString); threw exception Exception in toString(). 10 PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, 'username', badString); threw exception Exception in toString().
14 PASS xhr.readyState is XMLHttpRequest.UNSENT 11 PASS xhr.readyState is XMLHttpRequest.UNSENT
15 PASS successfullyParsed is true 12 PASS successfullyParsed is true
16 13
17 TEST COMPLETE 14 TEST COMPLETE
18 15
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698