Bug 1499315 - Remove datatype for search bar addEngine. r=adw
authorMichael Kaply <mozilla@kaply.com>
Tue, 16 Oct 2018 23:04:47 +0000
changeset 489960 135512b63ffc0ba69ee632474f51a9223f8a802c
parent 489959 46c013fd9f6a051e5bc47ddf1405b9564e907f59
child 489961 99c45aca2d8a868eb9e6c3c5543af78954839934
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersadw
bugs1499315
milestone64.0a1
Bug 1499315 - Remove datatype for search bar addEngine. r=adw Differential Revision: https://phabricator.services.mozilla.com/D8908
browser/components/search/content/search.xml
--- a/browser/components/search/content/search.xml
+++ b/browser/components/search/content/search.xml
@@ -1784,17 +1784,17 @@
                                                            [brandName, target.getAttribute("uri")], 2);
               Services.prompt.QueryInterface(Ci.nsIPromptFactory);
               let prompt = Services.prompt.getPrompt(gBrowser.contentWindow, Ci.nsIPrompt);
               prompt.QueryInterface(Ci.nsIWritablePropertyBag2);
               prompt.setPropertyAsBool("allowTabModal", true);
               prompt.alert(title, text);
             },
           };
-          Services.search.addEngine(target.getAttribute("uri"), null,
+          Services.search.addEngine(target.getAttribute("uri"),
                                     target.getAttribute("image"), false,
                                     installCallback);
         }
         let anonid = target.getAttribute("anonid");
         if (anonid == "search-one-offs-context-open-in-new-tab") {
           // Select the context-clicked button so that consumers can easily
           // tell which button was acted on.
           this.selectedButton = this._buttonForEngine(this._contextEngine);