Bug 1497041 - Follow-up: Import WindowsRegistry.jsm only on Windows. rs=bustage-fix a=jorgk
authorJorg K <jorgk@jorgk.com>
Thu, 28 Feb 2019 12:29:57 +0100
changeset 34377 69f66abef59f87e3f951768707b2f8f1562b872c
parent 34376 449f77be593c30000c8f396eb3e65afea38ad68b
child 34378 d06c0a180c45696b04c1655bea008f092292d10e
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewersbustage-fix, jorgk
bugs1497041
Bug 1497041 - Follow-up: Import WindowsRegistry.jsm only on Windows. rs=bustage-fix a=jorgk
mail/base/modules/Windows8WindowFrameColor.jsm
--- a/mail/base/modules/Windows8WindowFrameColor.jsm
+++ b/mail/base/modules/Windows8WindowFrameColor.jsm
@@ -1,17 +1,19 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
 this.EXPORTED_SYMBOLS = ["Windows8WindowFrameColor"];
 
-ChromeUtils.import("resource://gre/modules/WindowsRegistry.jsm");
+if ("@mozilla.org/windows-registry-key;1" in Cc) {
+  ChromeUtils.import("resource://gre/modules/WindowsRegistry.jsm");
+}
 ChromeUtils.import("resource://gre/modules/Color.jsm");
 
 var Windows8WindowFrameColor = {
   _windowFrameColor: null,
 
   get() {
     if (this._windowFrameColor)
       return this._windowFrameColor;