Bug 1092826 - Cu. and Ci. is undefined errors in PrintUtils since Bug 1082575 (regression) r=mconley
authorPhilip Chee <philip.chee@gmail.com>
Mon, 17 Nov 2014 14:56:55 +0800
changeset 240295 d6cef8f84cb52ad5ff9ba873f65b4bf95162478a
parent 240294 2748f3c6b225d63651e1b991f4b01ba7a026e9f7
child 240296 c386915cdeda12e86236d529829052a21a444851
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1092826, 1082575
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1092826 - Cu. and Ci. is undefined errors in PrintUtils since Bug 1082575 (regression) r=mconley
toolkit/components/printing/content/printUtils.js
--- a/toolkit/components/printing/content/printUtils.js
+++ b/toolkit/components/printing/content/printUtils.js
@@ -142,27 +142,27 @@ var PrintUtils = {
       if (this.usingRemoteTabs) {
         throw new Error("Windows running with remote tabs must explicitly pass " +
                         "a content window to PrintUtils.print.");
       }
       // Otherwise, we should have access to window.content.
       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.");
       }
     } 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;
     }
 
     if (!aBrowser) {
       throw new Error("PrintUtils.print could not resolve content window " +
                       "to a browser.");
     }