1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/base/content/test/plugins/plugin_add_dynamically.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 +<meta charset="utf-8"> 1.8 +</head> 1.9 +<body> 1.10 +<script> 1.11 +function addPlugin(type="application/x-test") { 1.12 + var embed = document.createElement("embed"); 1.13 + embed.style.width = "200px"; 1.14 + embed.style.height = "200px"; 1.15 + embed.setAttribute("type", type); 1.16 + return document.body.appendChild(embed); 1.17 +} 1.18 +</script> 1.19 +</body> 1.20 +</html>