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:
Gijs Kruitbosch 2018-04-27 17:41:24 +01:00
parent c456827081
commit f51ee6e956
2 changed files with 6 additions and 2 deletions

View File

@ -227,7 +227,10 @@ function promiseFindFinished(searchText, highlightOn) {
};
resultListener = {
onFindResult: foundOrTimedout
onFindResult: foundOrTimedout,
onCurrentSelection() {},
onMatchesCountResult() {},
onHighlightFinished() {},
};
findbar.browser.finder.addResultListener(resultListener);
findbar._find();

View File

@ -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);
}
}
},