Bug 1542720 - Follow-up: Fix linting errors. r=mkmelin
authorJorg K <jorgk@jorgk.com>
Thu, 19 Sep 2019 10:56:43 +0200
changeset 79013 395ad4f5654aeadc063c894da05a48fcdf65c289
parent 79012 17dd60cb1d5c71e68d11a0dbebaff804b32b2481
child 79014 a96336115ce738cabc6bc86cb156067dd417e05f
push id9335
push usermozilla@jorgk.com
push dateThu, 19 Sep 2019 10:56:46 +0000
treeherdertry-comm-central@ec7a23f9bcfd [default view] [failures only]
reviewersmkmelin
bugs1542720
Bug 1542720 - Follow-up: Fix linting errors. r=mkmelin
mail/base/content/gloda-autocomplete-input.js
mail/base/content/tabmail.js
--- a/mail/base/content/gloda-autocomplete-input.js
+++ b/mail/base/content/gloda-autocomplete-input.js
@@ -140,21 +140,19 @@ customElements.whenDefined("autocomplete
             } else if (row.nounDef) {
               let theQuery = Gloda.newQuery(Gloda.NOUN_MESSAGE);
               if (row.nounDef.name == "tag") {
                 theQuery = theQuery.tags(row.item);
               } else if (row.nounDef.name == "identity") {
                 theQuery = theQuery.involves(row.item);
               }
               theQuery.orderBy("-date");
-              document
-                .getElementById("tabmail")
-                .openTab("glodaFacet", {
-                  query: theQuery,
-                });
+              document.getElementById("tabmail").openTab("glodaFacet", {
+                query: theQuery,
+              });
             }
           }
         },
       };
 
       let keyLabel =
         AppConstants.platform == "macosx" ? "keyLabelMac" : "keyLabelNonMac";
       let placeholder = this.getAttribute("emptytextbase").replace(
--- a/mail/base/content/tabmail.js
+++ b/mail/base/content/tabmail.js
@@ -9,16 +9,19 @@
 /* import-globals-from commandglue.js */
 /* import-globals-from mailWindow.js */
 
 // Wrap in a block to prevent leaking to window scope.
 {
   const { Services } = ChromeUtils.import(
     "resource://gre/modules/Services.jsm"
   );
+  const { GlodaMsgSearcher } = ChromeUtils.import(
+    "resource:///modules/gloda/msg_search.js"
+  );
 
   /**
    * The MozTabmailAlltabsMenuPopup widget is used as a menupopup to list all the
    * currently opened tabs.
    *
    * @extends {MozElements.MozMenuPopup}
    * @implements {EventListener}
    */