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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed.html

Issue 26481005: Implementation of script hashes for CSP. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on tip of tree Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/duplicate-directive.html b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed.html
similarity index 56%
copy from LayoutTests/http/tests/security/contentSecurityPolicy/duplicate-directive.html
copy to LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed.html
index 814501b81669f3e70afd5a8dde044ee3f27e6b98..10fedea8f4d596130c9f0f394d2eb7b32576402f 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/duplicate-directive.html
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed.html
@@ -1,19 +1,16 @@
<!DOCTYPE html>
<html>
<head>
- <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline'; script-src 'none'">
- <script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- }
- </script>
+ <meta http-equiv="Content-Security-Policy" content="script-src 'sha1-Au4uYFbkf7OYd+ACMnKq96FN3qo='">
<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
alert('PASS (1/1)');
</script>
</head>
<body>
<p>
- This tests the effect of duplicated directives. It passes if a
+ This tests the effect of a valid script-hash value. It passes if no
console warning is visible, and the alert() is executed.
</p>
</body>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698