--- findbar.xml.orig 2024-08-15 17:20:08.903779864 +0100 +++ findbar.xml 2024-08-15 17:27:02.438500336 +0100 @@ -367,16 +367,20 @@ this._findStatusDesc = this.getElement("find-status"); this._foundURL = null; let prefsvc = this._prefsvc; this._quickFindTimeoutLength = prefsvc.getIntPref("accessibility.typeaheadfind.timeout"); + if (!prefsvc.getBoolPref("accessibility.typeaheadfind.enabletimeout", + true)) { + this._quickFindTimeoutLength = 0; + } this._flashFindBar = prefsvc.getIntPref("accessibility.typeaheadfind.flashBar"); this._useModalHighlight = prefsvc.getBoolPref("findbar.modalHighlight"); prefsvc.addObserver("accessibility.typeaheadfind", this._observer); prefsvc.addObserver("accessibility.typeaheadfind.linksonly", this._observer); @@ -466,21 +470,25 @@ // Don't close the find toolbar while IME is composing OR when the // findbar is already hidden. if (this._isIMEComposing || this.hidden) { this._quickFindTimeout = null; return; } - this._quickFindTimeout = setTimeout(() => { - if (this._findMode != this.FIND_NORMAL) - this.close(); - this._quickFindTimeout = null; - }, this._quickFindTimeoutLength); + if (this._quickFindTimeoutLength < 1) { + this._quickFindTimeout = null; + } else { + this._quickFindTimeout = setTimeout(() => { + if (this._findMode != this.FIND_NORMAL) + this.close(); + this._quickFindTimeout = null; + }, this._quickFindTimeoutLength); + } ]]> null