Bug 899080 - Test fixup part 4 - content. r=smaug

This commit is contained in:
Georg Fritzsche 2013-09-04 16:07:52 +02:00
parent cff38dccd0
commit 4d35b4e5ed
2 changed files with 18 additions and 0 deletions

View File

@ -11,6 +11,15 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=62178
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script>
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 == "Test Plug-in") {
tag.enabledState = SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED;;
}
}
var origBlockDisplay = SpecialPowers.getBoolPref("security.mixed_content.block_display_content");
var origBlockActive = SpecialPowers.getBoolPref("security.mixed_content.block_active_content");

View File

@ -11,6 +11,15 @@
"use strict";
SimpleTest.waitForExplicitFinish();
var pluginHost = SpecialPowers.Cc["@mozilla.org/plugin/host;1"]
.getService(SpecialPowers.Ci.nsIPluginHost);
var pluginTags = pluginHost.getPluginTags();
for (var tag of pluginTags) {
if (tag.name == "Test Plug-in") {
tag.enabledState = SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED;;
}
}
// This can go away once embed also is on WebIDL
let OBJLC = SpecialPowers.Ci.nsIObjectLoadingContent;