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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/script-src-appended-script.html

Issue 701013004: CSP: Adding a test for appended script elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@revert
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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/script-src-appended-script-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inlin e'">
5 </head>
6 <body>
7 <div id="result" text="FAIL">PASS</div>
8
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
12 a=document.createElement('script');
13 a.src='http://localhost:8000/security/contentSecurityPolicy/resources/scri pt.js';
14 document.body.appendChild(a);
15 </script>
16 </body>
17 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/script-src-appended-script-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698