mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1070223: Ignore exceptions thrown from nsIBrowserSearchInitObserver. r=MattN
This commit is contained in:
parent
4938e93b4a
commit
d08f93d549
@ -3871,10 +3871,14 @@ SearchService.prototype = {
|
||||
if (observer) {
|
||||
this._initObservers.promise.then(
|
||||
function onSuccess() {
|
||||
observer.onInitComplete(self._initRV);
|
||||
try {
|
||||
observer.onInitComplete(self._initRV);
|
||||
} catch (e) {
|
||||
Cu.reportError(e);
|
||||
}
|
||||
},
|
||||
function onError(aReason) {
|
||||
Components.utils.reportError("Internal error while initializing SearchService: " + aReason);
|
||||
Cu.reportError("Internal error while initializing SearchService: " + aReason);
|
||||
observer.onInitComplete(Components.results.NS_ERROR_UNEXPECTED);
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user