mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1119719 - onError function added in urlbarBindings.xml for the search addEngine callback. r=gavin
This commit is contained in:
parent
74d8b48ae4
commit
008befab19
@ -1268,6 +1268,9 @@
|
|||||||
onSuccess: function(engine) {
|
onSuccess: function(engine) {
|
||||||
event.target.hidePopup();
|
event.target.hidePopup();
|
||||||
BrowserSearch.searchBar.openSuggestionsPanel();
|
BrowserSearch.searchBar.openSuggestionsPanel();
|
||||||
|
},
|
||||||
|
onError: function(errorCode) {
|
||||||
|
Components.utils.reportError("Error adding search engine: " + errorCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Services.search.addEngine(target.getAttribute("uri"),
|
Services.search.addEngine(target.getAttribute("uri"),
|
||||||
|
Loading…
Reference in New Issue
Block a user