%findBarDTD; ]> null return this._findbar ? this._findbar : this._findbar = document.getBindingParent(this); 0 1 2 0 null "0" false null 0 6 150 null null textfield element is focused var inputType = elt.type; switch (inputType) { case "text": case "password": case "file": return false; } } else if (elt instanceof HTMLTextAreaElement || elt instanceof HTMLSelectElement || elt instanceof HTMLIsIndexElement || elt instanceof HTMLObjectElement || elt instanceof HTMLEmbedElement) return false; } // disable FAYT in about:config and about:blank to prevent FAYT // opening unexpectedly - to fix bugs 264562, 267150, 269712 var url = this.browser.currentURI.spec; if (url == "about:blank" || url == "about:config") return false; if (win) { try { var editingSession = win.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIEditingSession); if (editingSession.windowIsEditable(win)) return false; } catch (e) { // If someone built with composer disabled, we can't get an editing session. } } return true; ]]> this._selectionMaxLen) { var pattern = new RegExp("^(?:\\s*.){0," + this._selectionMaxLen + "}"); pattern.test(selText); selText = RegExp.lastMatch; } return selText.replace(/^\s+/, "") .replace(/\s+$/, "") .replace(/\s+/g, " ") .substr(0, this._selectionMaxLen); ]]>