mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00
Bug 1450247 - avoid warning spew in browser_findbar.js, r=mikedeboer
MozReview-Commit-ID: DLd4oAKruN1 --HG-- extra : rebase_source : bd39b6608dd58ba8a6acb08817845eeda5cb584f
This commit is contained in:
parent
c456827081
commit
f51ee6e956
@ -227,7 +227,10 @@ function promiseFindFinished(searchText, highlightOn) {
|
||||
};
|
||||
|
||||
resultListener = {
|
||||
onFindResult: foundOrTimedout
|
||||
onFindResult: foundOrTimedout,
|
||||
onCurrentSelection() {},
|
||||
onMatchesCountResult() {},
|
||||
onHighlightFinished() {},
|
||||
};
|
||||
findbar.browser.finder.addResultListener(resultListener);
|
||||
findbar._find();
|
||||
|
@ -91,8 +91,9 @@ RemoteFinder.prototype = {
|
||||
} catch (e) {
|
||||
if (!l[callback]) {
|
||||
Cu.reportError(`Missing ${callback} callback on RemoteFinderListener`);
|
||||
} else {
|
||||
Cu.reportError(e);
|
||||
}
|
||||
Cu.reportError(e);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user