зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1092826 - Cu. and Ci. is undefined errors in PrintUtils since Bug 1082575 (regression) r=mconley
This commit is contained in:
Родитель
f38c5b5e70
Коммит
e960a75af3
|
@ -147,7 +147,7 @@ var PrintUtils = {
|
|||
aWindow = window.content;
|
||||
}
|
||||
|
||||
if (Cu.isCrossProcessWrapper(aWindow)) {
|
||||
if (Components.utils.isCrossProcessWrapper(aWindow)) {
|
||||
if (!aBrowser) {
|
||||
throw new Error("PrintUtils.print expects a remote browser passed as " +
|
||||
"an argument if the content window is a CPOW.");
|
||||
|
@ -155,9 +155,9 @@ var PrintUtils = {
|
|||
} else {
|
||||
// For content windows coming from non-remote browsers, the browser can
|
||||
// be resolved as the chromeEventHandler.
|
||||
aBrowser = aWindow.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIWebNavigation)
|
||||
.QueryInterface(Ci.nsIDocShell)
|
||||
aBrowser = aWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||
.getInterface(Components.interfaces.nsIWebNavigation)
|
||||
.QueryInterface(Components.interfaces.nsIDocShell)
|
||||
.chromeEventHandler;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче