Skip to content

Commit f391670

Browse files
committed
fix: broken finder with Firefox 24.*(>24.0.0)
1 parent f0bf6b7 commit f391670

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

common/content/finder.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const Finder = Module("finder", {
132132
* @default false
133133
* @see Bug537013 https://bugzilla.mozilla.org/show_bug.cgi?id=537013
134134
*/
135-
findAgain: Services.vc.compare(Services.appinfo.version, "24.0") > 0 ?
135+
findAgain: Services.vc.compare(Services.appinfo.version, "25.0") >= 0 ?
136136
function (reverse) {
137137
let fastFind = config.browser.getFindBar();
138138
if (fastFind._findField.value != this._lastSearchString)
@@ -143,7 +143,7 @@ const Finder = Module("finder", {
143143
let result = fastFind._findAgain(backwards);
144144
this._displayFindResult(result, backwards);
145145
} :
146-
// FIXME: remove when minVersion > 24
146+
// FIXME: remove when minVersion >= 25
147147
function (reverse) {
148148
// This hack is needed to make n/N work with the correct string, if
149149
// we typed /foo<esc> after the original search. Since searchString is
@@ -216,9 +216,9 @@ const Finder = Module("finder", {
216216
// focus links after searching, so the user can just hit <Enter> another time to follow the link
217217
// This has to be done async, because the mode reset after onSubmit would
218218
// clear the focus
219-
let elem = Services.vc.compare(Services.appinfo.version, "24.0") > 0 ?
219+
let elem = Services.vc.compare(Services.appinfo.version, "25.0") >= 0 ?
220220
config.browser.getFindBar()._foundLinkRef.get() :
221-
config.browser.fastFind.foundLink; // FIXME: remove when minVersion > 24
221+
config.browser.fastFind.foundLink; // FIXME: remove when minVersion >= 25
222222
this.setTimeout(function() {
223223
if (elem)
224224
elem.focus();

0 commit comments

Comments
 (0)