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 33523 69f66abef59f
parent 33522 449f77be593c
child 33524 d06c0a180c45
push id2384
push usermozilla@jorgk.com
push dateWed, 06 Mar 2019 00:14:50 +0000
treeherdercomm-beta@33baca79596d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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;