Bug 1454041 - Follow-up to part 2: Import Services.jsm. r+a=me BETA_60_CONTINUATION THUNDERBIRD_60_0b9_BUILD1 THUNDERBIRD_60_0b9_RELEASE
authorJorg K <jorgk@jorgk.com>
Mon, 25 Jun 2018 21:10:45 +0200
branchBETA_60_CONTINUATION
changeset 32021 66305b3923d3
parent 32020 6f1e450f9232
child 32279 118b0dfa909e
push id384
push userclokep@gmail.com
push dateTue, 26 Jun 2018 01:38:29 +0000
bugs1454041
Bug 1454041 - Follow-up to part 2: Import Services.jsm. r+a=me
mail/components/devtools/webconsole-overlay.xul
--- a/mail/components/devtools/webconsole-overlay.xul
+++ b/mail/components/devtools/webconsole-overlay.xul
@@ -3,16 +3,17 @@
    - 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/. -->
 
 <!DOCTYPE overlay SYSTEM "chrome://messenger/locale/messenger.dtd">
 
 <overlay id="tb-webconsole-overlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
   <script type="application/javascript"><![CDATA[
+    ChromeUtils.import("resource://gre/modules/Services.jsm");
     ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
     XPCOMUtils.defineLazyGetter(this, "gViewSourceUtils", function() {
       let scope = {};
       Services.scriptloader.loadSubScript("chrome://global/content/viewSourceUtils.js", scope);
       scope.gViewSourceUtils.viewSource = async function (aArgs) {
         // Check if external view source is enabled. If so, try it. If it fails,
         // fallback to internal view source.
         if (Services.prefs.getBoolPref("view_source.editor.external")) {