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

Unified Diff: LayoutTests/http/tests/security/script-crossorigin-loads-correctly-credentials.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-credentials.html
diff --git a/LayoutTests/http/tests/security/script-crossorigin-loads-correctly.html b/LayoutTests/http/tests/security/script-crossorigin-loads-correctly-credentials.html
similarity index 89%
copy from LayoutTests/http/tests/security/script-crossorigin-loads-correctly.html
copy to LayoutTests/http/tests/security/script-crossorigin-loads-correctly-credentials.html
index a4dd197ad74ed1f799a74a69067842f74d010a83..7890f161d74530579bccadc3a7fe53f64feef4af 100644
--- a/LayoutTests/http/tests/security/script-crossorigin-loads-correctly.html
+++ b/LayoutTests/http/tests/security/script-crossorigin-loads-correctly-credentials.html
@@ -14,8 +14,8 @@ function done(msg) {
}
var script = document.createElement("script");
-script.crossOrigin = "";
-script.src = "http://localhost:8000/security/resources/cors-script.php";
+script.crossOrigin = "use-credentials";
+script.src = "http://localhost:8000/security/resources/cors-script.php?credentials=true";
script.onload = function() { done("PASS"); }
script.onerror = function() { done("FAIL");}
document.body.appendChild(script);

Powered by Google App Engine
This is Rietveld 408576698