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

Side by Side Diff: LayoutTests/http/tests/htmlimports/csp-block-import.html

Issue 19940002: [HTML Import] Respect Content Security Policy Model (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Mac build failure Created 7 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/htmlimports/csp-block-import-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-inline'">
5 <link id="target" rel="import" href="resources/hello.html">
6 </head>
7 <body>
8 <pre id="result"></pre>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
12
13 if (window.target.import == null)
14 result.innerHTML = "PASS\n";
15 else
16 result.innerHTML = "FAIL: The import should be blocked.\n";
17 </script>
18 </body>
19 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/htmlimports/csp-block-import-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698