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

Unified Diff: LayoutTests/http/tests/security/script-crossorigin-loads-correctly.html

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-crossorigin-loads-correctly.html
diff --git a/LayoutTests/http/tests/security/script-crossorigin-loads-correctly.html b/LayoutTests/http/tests/security/script-crossorigin-loads-correctly.html
index a4dd197ad74ed1f799a74a69067842f74d010a83..83724ad249205eeb756b3aa67bcd0cb70da077aa 100644
--- a/LayoutTests/http/tests/security/script-crossorigin-loads-correctly.html
+++ b/LayoutTests/http/tests/security/script-crossorigin-loads-correctly.html
@@ -14,7 +14,7 @@ function done(msg) {
}
var script = document.createElement("script");
-script.crossOrigin = "";
+script.crossOrigin = "anonymous";
script.src = "http://localhost:8000/security/resources/cors-script.php";
script.onload = function() { done("PASS"); }
script.onerror = function() { done("FAIL");}

Powered by Google App Engine
This is Rietveld 408576698