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

Side by Side Diff: LayoutTests/fast/plugins/plugin-placeholder-csp.html

Issue 516273002: Move plugin placeholder style to CSS, and allow it to bypass main world CSP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove excess inline style from js Created 6 years, 2 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
(Empty)
1 <!DOCTYPE html>
2
3 <!-- Forbid inline style. -->
4 <meta http-equiv="Content-Security-Policy" content="style-src 'none'">
5
6 <!-- The message inserted below should be shown with some suitable style. -->
7 <embed type="application/x-fake-plugin"></embed>
8
9 <script>
10 var plugin = document.querySelector("embed");
11 internals.forcePluginPlaceholder(plugin, { message: "This box should be styled d espite CSP." });
12 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/plugins/plugin-placeholder.css ('k') | LayoutTests/fast/plugins/plugin-placeholder-csp-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698