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> |