Bug 1353439 - Cc and Ci are not defined in printUtils.js so use Components full names. r=jhector
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Wed, 05 Apr 2017 03:08:00 -0400
changeset 351492 f44b0bd3813055b688a8747e908546e2babe1f01
parent 351491 c46e2ef0d7ed9fd219ab95e0808ce596364e1fd0
child 351493 5d34e84c6fbcf18728918f733acf494731f2d5eb
push id31611
push usercbook@mozilla.com
push dateThu, 06 Apr 2017 10:51:05 +0000
treeherdermozilla-central@950612071c4e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhector
bugs1353439
milestone55.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 1353439 - Cc and Ci are not defined in printUtils.js so use Components full names. r=jhector
toolkit/components/printing/content/printUtils.js
--- a/toolkit/components/printing/content/printUtils.js
+++ b/toolkit/components/printing/content/printUtils.js
@@ -100,18 +100,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;
   },