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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/nonces/stylenonce-basic-blocked-error-event.html

Issue 2020223002: Refactor nonce support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inline
Patch Set: Rebase. Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Style element has error on bad style nonce</title> 4 <title>Style element has error on bad style nonce</title>
5 <meta http-equiv="Content-Security-Policy" content="style-src 'nonce-nonceyn once'"> 5 <meta http-equiv="Content-Security-Policy" content="style-src 'nonce-nonceyn once'">
6 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testharnessreport.js"></script>
8 <script> 8 <script>
9 function verifyStep1() { 9 function verifyStep1() {
10 var color = window.getComputedStyle(document.querySelector('p')).col or; 10 var color = window.getComputedStyle(document.querySelector('p')).col or;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 }); 47 });
48 } 48 }
49 </script> 49 </script>
50 </head> 50 </head>
51 <body> 51 <body>
52 <style nonce="nonceynonce">p { color: green; }</style> 52 <style nonce="nonceynonce">p { color: green; }</style>
53 <style id="style1" nonce="notavalidnonce" onerror="styleError();">p { color: red; }</style> 53 <style id="style1" nonce="notavalidnonce" onerror="styleError();">p { color: red; }</style>
54 <p>A test paragraph</p> 54 <p>A test paragraph</p>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698