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

Side by Side Diff: LayoutTests/http/tests/htmlimports/resources/having-nonce-policy.html

Issue 183883004: Let ContentSecurityPolicy shared between imports and the master. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adding guardRef()/guardDeref() Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Security-Policy" content="script-src 'nonce-hello'">
5 <script src="external-script.js"></script> 4 <script src="external-script.js"></script>
6 <script nonce="hello" src="external-script-with-nonce.js"></script> 5 <script nonce="hello" src="external-script-with-nonce.js"></script>
7 <script> 6 <script>
8 document.inlineScriptHasRun = true; 7 document.inlineScriptHasRun = true;
9 eval("document.evalFromInlineHasRun = true;"); 8 eval("document.evalFromInlineHasRun = true;");
10 </script> 9 </script>
11 10
12 <script nonce="hello"> 11 <script nonce="hello">
13 document.inlineScriptWithNonceHasRun = true; 12 document.inlineScriptWithNonceHasRun = true;
14 eval("document.evalFromInlineWithNonceHasRun = true;"); 13 eval("document.evalFromInlineWithNonceHasRun = true;");
15 </script> 14 </script>
16 </head> 15 </head>
17 </html> 16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698