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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/image-full-host-wildcard-fails.html

Issue 1362813002: CSP source *.x.y should not match host x.y (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test fixes Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/contentSecurityPolicy/image-full-host-wildcard-fails.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/image-full-host-wildcard-allowed.html b/LayoutTests/http/tests/security/contentSecurityPolicy/image-full-host-wildcard-fails.html
similarity index 73%
rename from LayoutTests/http/tests/security/contentSecurityPolicy/image-full-host-wildcard-allowed.html
rename to LayoutTests/http/tests/security/contentSecurityPolicy/image-full-host-wildcard-fails.html
index d05f167edb84b512d637eaad5435433d4619f154..250aa8421232a1b60f186722491d82587b6b1bcb 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/image-full-host-wildcard-allowed.html
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/image-full-host-wildcard-fails.html
@@ -8,6 +8,6 @@ if (window.testRunner)
</script>
</head>
<body>
-<img src="../resources/abe.png" onload="alert(this.width == 76 ? 'PASS' : 'FAIL')">
+<img src="../resources/abe.png" onerror="alert('PASS')">
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698