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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-affects-cross-site-child-disallowed.html

Issue 2213593002: OOPIF support for 'plugin-types' Content Security Policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@csp-reporting-ipcs
Patch Set: Accounting for lack of https://crrev.com/2190183002 (i.e. no CSP reports from remote frames). Created 4 years, 4 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="plugin-types text/plain">
5 <script src="../resources/dump-as-text.js"></script>
6 </head>
7 <body>
8 <p>
9 This tests a scenario where an iframe element's src attribute points
10 to a cross-site URI that loads a plugin. In this test the plugin
11 is disallowed by the plugin-types Content Security Policy directive,
12 therefore the test passes if
13 1) there is no "Blink Test Plugin: initializing" console message
14 2) there is a console message indicating CSP violation
15 </p>
16
17 <!-- the URI below is cross-site from the default layout tests site
18 http://127.0.0.1:8000 -->
19 <!-- we lie in the "type" attribute below, to pass early CSP checks -->
20 <iframe type="text/plain"
21 src="http://localhost:8000/plugins/resources/mock-plugin.pl"></iframe>
22 </body>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698