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

Unified Diff: LayoutTests/http/tests/security/script-onerror-crossorigin-same-origin-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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/script-onerror-crossorigin-same-origin-expected.txt
diff --git a/LayoutTests/http/tests/security/script-onerror-crossorigin-cors-expected.txt b/LayoutTests/http/tests/security/script-onerror-crossorigin-same-origin-expected.txt
similarity index 50%
copy from LayoutTests/http/tests/security/script-onerror-crossorigin-cors-expected.txt
copy to LayoutTests/http/tests/security/script-onerror-crossorigin-same-origin-expected.txt
index 0049875133f3b93f449a595b8b68aadde45f5a40..167d454f4639531bf893cdcec171efe1aa6bc2e3 100644
--- a/LayoutTests/http/tests/security/script-onerror-crossorigin-cors-expected.txt
+++ b/LayoutTests/http/tests/security/script-onerror-crossorigin-same-origin-expected.txt
@@ -1,11 +1,11 @@
CONSOLE ERROR: line 1: Uncaught SomeError
-The test passes if 'window.onerror' gets unsanitized information about an exception thrown in a script loaded with a 'crossorigin' attribute, and delivered with valid CORS headers.
+The test passes if 'window.onerror' is invoked with unsanitized information on a script loaded with a 'crossorigin' attribute, but loads from same-origin and without valid CORS headers.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS /SomeError/.test(msg) is true
-PASS url is "http://localhost:8000/security/resources/cors-script.php?fail=true&cors=true"
+PASS url is "http://127.0.0.1:8000/security/resources/cors-script.php?fail=true&cors=false"
PASS line is 1
PASS column is 1
PASS window.errorObject is not null

Powered by Google App Engine
This is Rietveld 408576698