summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/plugins/plugin_add_dynamically.html
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/test/plugins/plugin_add_dynamically.html')
-rw-r--r--browser/base/content/test/plugins/plugin_add_dynamically.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/browser/base/content/test/plugins/plugin_add_dynamically.html b/browser/base/content/test/plugins/plugin_add_dynamically.html
new file mode 100644
index 000000000..863d36e09
--- /dev/null
+++ b/browser/base/content/test/plugins/plugin_add_dynamically.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+</head>
+<body>
+<script>
+function addPlugin(aId, aType="application/x-test") {
+ var embed = document.createElement("embed");
+ embed.setAttribute("id", aId);
+ embed.style.width = "200px";
+ embed.style.height = "200px";
+ embed.setAttribute("type", aType);
+ return document.body.appendChild(embed);
+}
+</script>
+</body>
+</html>