From e960a75af34265a3a38a83dea786a445cab826d4 Mon Sep 17 00:00:00 2001 From: Philip Chee Date: Mon, 17 Nov 2014 14:56:55 +0800 Subject: [PATCH] Bug 1092826 - Cu. and Ci. is undefined errors in PrintUtils since Bug 1082575 (regression) r=mconley --- toolkit/components/printing/content/printUtils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/toolkit/components/printing/content/printUtils.js b/toolkit/components/printing/content/printUtils.js index 65d5fafd1867..981cb4196555 100644 --- a/toolkit/components/printing/content/printUtils.js +++ b/toolkit/components/printing/content/printUtils.js @@ -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; }