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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-blocked.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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="style-src 'self'">
5 <script src="/js-test-resources/js-test.js"></script>
6 <style nonce="noncynonce">
7 #test {
8 color: red;
9 }
10 </style>
11 </head>
12 <body>
13 <p id="test">This text should be green.</p>
14 <script>
15 description("Style that does not match a 'nonce-*' expression in 'st yle-src' should not be applied to the page.");
16 var el = document.querySelector('#test');
17 shouldBeEqualToString("window.getComputedStyle(el).color", "rgb(0, 0 , 0)");
18 </script>
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698