Bug 1092826 - Cu. and Ci. is undefined errors in PrintUtils since Bug 1082575 (regression) r=mconley

This commit is contained in:
Philip Chee 2014-11-17 14:56:55 +08:00
Родитель f38c5b5e70
Коммит e960a75af3
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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;
}