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

Side by Side Diff: LayoutTests/http/tests/security/script-onerror-crossorigin-no-cors-expected.txt

Issue 47923008: Block execution of failed 'crossorigin' <script>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 7 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 ERROR: line 1: Uncaught SomeError 1 CONSOLE ERROR: Script from origin 'http://localhost:8000' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin ' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
2 The test passes if 'window.onerror' gets sanitized information about an exceptio n thrown in a script loaded with a 'crossorigin' attribute, and delivered withou t valid CORS headers. 2 The test passes if 'window.onerror' is not invoked on a script loaded with a 'cr ossorigin' attribute, but delivered without valid CORS headers.
3 3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5 5
6 6
7 PASS msg is "Script error."
8 PASS url is ""
9 PASS line is 0
10 PASS column is 0
11 PASS window.errorObject is null
12 PASS successfullyParsed is true 7 PASS successfullyParsed is true
13 8
14 TEST COMPLETE 9 TEST COMPLETE
15 10
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698