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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce.html

Issue 705663003: CSP: Harden nonce parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce-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/scriptnonce-invalidnonce.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce.html b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce.html
index c69616eeb341927cddab99a578bbdf73a3dd9e19..af1e4e55959fbba072b3fba5a7150fb14708a63b 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce.html
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce.html
@@ -4,7 +4,11 @@
<script src='../resources/multiple-iframe-test.js'></script>
<script>
var tests = [
+ ['no', 'script-src \'n', 'resources/script.js', ''],
+ ['no', 'script-src \'nonce', 'resources/script.js', ''],
['no', 'script-src \'nonce-\'', 'resources/script.js', ''],
+ ['no', 'script-src \'nonce-', 'resources/script.js', ''],
+ ['no', 'script-src nonce-abcd', 'resources/script.js', ''],
['no', 'script-src \'nonce- \'', 'resources/script.js', ''],
['no', 'script-src \'nonce- \'', 'resources/script.js', ''],
['no', 'script-src \'nonce- nonces have no spaces\'', 'resources/script.js', ''],
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698