Bug 790732 - Fix miscellaneous Components proliferation. r=me

This commit is contained in:
Bobby Holley 2013-03-28 14:26:02 -07:00
Родитель 0058cdaa1d
Коммит 874b5eb3fb
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -12,7 +12,7 @@
SimpleTest.waitForExplicitFinish();
// This can go away once embed also is on WebIDL
let OBJLC = Components.interfaces.nsIObjectLoadingContent;
let OBJLC = SpecialPowers.Ci.nsIObjectLoadingContent;
// Use string modes in this test to make the test easier to read/debug.
// nsIObjectLoadingContent refers to this as "type", but I am using "mode"

Просмотреть файл

@ -16,7 +16,7 @@ var index = GamepadService.addGamepad("test gamepad", // id
2);// axes
function setFrameVisible(f, visible) {
var Ci = SpecialPowers.wrap(Components.interfaces);
var Ci = SpecialPowers.Ci;
var docshell = SpecialPowers.wrap(f.contentWindow).QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIDocShell);
docshell.isActive = visible;
}

Просмотреть файл

@ -21,7 +21,7 @@ function pressButton() {
}
function setFrameVisible(f, visible) {
var Ci = SpecialPowers.wrap(Components.interfaces);
var Ci = SpecialPowers.Ci;
var docshell = SpecialPowers.wrap(f.contentWindow).QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIDocShell);
docshell.isActive = visible;
}