diff --git a/dom/html/test/enableTestPlugin.js b/dom/html/test/enableTestPlugin.js deleted file mode 100644 index 63c481807e0e..000000000000 --- a/dom/html/test/enableTestPlugin.js +++ /dev/null @@ -1,25 +0,0 @@ -// this automatically sets the test plugin to be enabled (not e.g. click-to-play) -// and resets this afterwards - -(function() { - function getTestPlugin(aPluginName) { - var ph = SpecialPowers.Cc["@mozilla.org/plugin/host;1"] - .getService(SpecialPowers.Ci.nsIPluginHost); - var tags = ph.getPluginTags(); - for (var tag of tags) { - if (tag.name == aPluginName) { - return tag; - } - } - - ok(false, "Could not find plugin tag with plugin name '" + name + "'"); - return null; - } - - var plugin = getTestPlugin("Test Plug-in"); - var oldEnabledState = plugin.enabledState; - plugin.enabledState = SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED; - SimpleTest.registerCleanupFunction(function() { - getTestPlugin("Test Plug-in").enabledState = oldEnabledState; - }); -})(); diff --git a/dom/html/test/file_fullscreen-plugins.html b/dom/html/test/file_fullscreen-plugins.html index b1a99df2be3c..4393dac6bc3d 100644 --- a/dom/html/test/file_fullscreen-plugins.html +++ b/dom/html/test/file_fullscreen-plugins.html @@ -16,7 +16,10 @@ Test plugins with DOM full-screen API: Test for Bug 545812 - + +