diff -r 000000000000 -r 6474c204b198 toolkit/content/widgets/findbar.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/content/widgets/findbar.xml Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,1213 @@ + + + + + +%findBarDTD; +]> + + + + + + + + null + + + return this._findbar ? + this._findbar : this._findbar = document.getBindingParent(this); + + + + + + + + + + + + + + + + + + + + + +#ifdef XP_MACOSX + +#endif + + + + + + + + + + + + + + + + + + + + 0 + 1 + 2 + + 0 + + 0 + 6 + + + 150 + + + + + + + + + + + + + null + + + + + + + + false + + + + + + + + + + + + + + + + { + if (this._findMode != this.FIND_NORMAL) + this.close(); + this._quickFindTimeout = null; + }, this._quickFindTimeoutLength); + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + null + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + this._findFailedString = null; + this._findResetTimeout = -1; + }, 1000); + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + this._selectionMaxLen) { + let 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); + ]]> + + + + + + + + + + + + + this._flash(), 500); + prefsvc.setIntPref("accessibility.typeaheadfind.flashBar", + --this._flashFindBar); + } + + if (this.prefillWithSelection) + userWantsPrefill = + prefsvc.getBoolPref("accessibility.typeaheadfind.prefillwithselection"); + + let initialString = null; + if (this.prefillWithSelection && userWantsPrefill) + initialString = this._getInitialSelection(); +#ifdef XP_MACOSX + if (!initialString) { + let clipboardSearchString = this.browser.finder.clipboardSearchString; + if (clipboardSearchString) + initialString = clipboardSearchString; + } +#endif + + if (initialString) + this._findField.value = initialString; + + this._enableFindButtons(!!this._findField.value); + + this._findField.select(); + this._findField.focus(); + ]]> + + + + + + + + + + + + + +#ifdef XP_MACOSX + + + + + + + + +#endif + + + + + + + + + + + + + + + + + + + +