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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/plugins/plugin-placeholder-csp.html
diff --git a/LayoutTests/fast/plugins/plugin-placeholder-csp.html b/LayoutTests/fast/plugins/plugin-placeholder-csp.html
new file mode 100644
index 0000000000000000000000000000000000000000..52acf3fc90f622bdd7aa829ec4ecce622e4ef21c
--- /dev/null
+++ b/LayoutTests/fast/plugins/plugin-placeholder-csp.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+
+<!-- Forbid inline style. -->
+<meta http-equiv="Content-Security-Policy" content="style-src 'none'">
+
+<!-- The message inserted below should be shown with some suitable style. -->
+<embed type="application/x-fake-plugin"></embed>
+
+<script>
+var plugin = document.querySelector("embed");
+internals.forcePluginPlaceholder(plugin, { message: "This box should be styled despite CSP." });
+</script>
« 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