зеркало из https://github.com/mozilla/gecko-dev.git
Bug 790732 - Fix miscellaneous Components proliferation. r=me
This commit is contained in:
Родитель
0058cdaa1d
Коммит
874b5eb3fb
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче