Bug 1119719 - onError function added in urlbarBindings.xml for the search addEngine callback. r=gavin

This commit is contained in:
shreyas 2015-01-28 00:05:54 -08:00
parent 74d8b48ae4
commit 008befab19

View File

@ -1268,6 +1268,9 @@
onSuccess: function(engine) {
event.target.hidePopup();
BrowserSearch.searchBar.openSuggestionsPanel();
},
onError: function(errorCode) {
Components.utils.reportError("Error adding search engine: " + errorCode);
}
}
Services.search.addEngine(target.getAttribute("uri"),