diff -r 000000000000 -r 6474c204b198 toolkit/components/console/content/consoleBindings.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/components/console/content/consoleBindings.xml Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,547 @@ + + + + + + + + + + + + + + + + + + + 250 + + + + + 200 + + + + Services.prefs.getBoolPref("javascript.options.showInConsole"); + + + + return this.mCount + + + + return this.mMode; + + + + + return this.mFilter; + + + + + return this.getAttribute("sortOrder"); + this.setAttribute("sortOrder", val); return val; + + null + + return this.mSelectedItem + + + + + + + + + + + + + = limit; --i) + if (!messages[i].message) + break; + + // Populate with messages after latest "clear" + while (++i < messages.length) + this.appendItem(messages[i]); + ]]> + + + + + + + + + + + aString.length) + aMiddleCharacter = halfLimit; + + let startPosition = 0; + let endPosition = aString.length; + if (aMiddleCharacter - halfLimit >= 0) + startPosition = aMiddleCharacter - halfLimit; + if (aMiddleCharacter + halfLimit <= aString.length) + endPosition = aMiddleCharacter + halfLimit; + if (endPosition - startPosition < this.fieldMaxLength) + endPosition += this.fieldMaxLength - (endPosition - startPosition); + let truncatedString = aString.substring(startPosition, endPosition); + let Ci = Components.interfaces; + let ellipsis = Services.prefs.getComplexValue("intl.ellipsis", + Ci.nsIPrefLocalizedString).data; + if (startPosition > 0) { + truncatedString = ellipsis + truncatedString; + aMiddleCharacter += ellipsis.length; + } + if (endPosition < aString.length) + truncatedString = truncatedString + ellipsis; + + return { + string: truncatedString, + column: aMiddleCharacter - startPosition + }; + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + this.limit) this.deleteFirst(); + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + this.init(); + this.destroy(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + null + null + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +