Bug 1353439 - Cc and Ci are not defined in printUtils.js so use Components full names. r=jhector, a=gchang
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Wed, 05 Apr 2017 03:08:00 -0400
changeset 379476 07f46f3fb49ca12f5c15ae7a505dad6dda5a5a8e
parent 379475 e80c1fc7722833bea78fe336870a2b532802d27e
child 379477 65eb65fb5933f1897ca5c572cdf02ac814097ca1
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhector, gchang
bugs1353439
milestone53.0
Bug 1353439 - Cc and Ci are not defined in printUtils.js so use Components full names. r=jhector, a=gchang
toolkit/components/printing/content/printUtils.js
--- a/toolkit/components/printing/content/printUtils.js
+++ b/toolkit/components/printing/content/printUtils.js
@@ -97,18 +97,18 @@ var PrintUtils = {
       dump("showPageSetup " + e + "\n");
       return false;
     }
     return true;
   },
 
   getDefaultPrinterName() {
     try {
-      let PSSVC = Cc["@mozilla.org/gfx/printsettings-service;1"]
-                    .getService(Ci.nsIPrintSettingsService);
+      let PSSVC = Components.classes["@mozilla.org/gfx/printsettings-service;1"]
+                            .getService(Components.interfaces.nsIPrintSettingsService);
 
       return PSSVC.defaultPrinterName;
     } catch (e) {
       Components.utils.reportError(e);
     }
 
     return null;
   },