rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
function Flasher(aColor, aThickness, aDuration, aSpeed) | function Flasher(aColor, aThickness, aDuration, aSpeed, aInvert) | function Flasher(aColor, aThickness, aDuration, aSpeed){ this.mShell = XPCU.createInstance("@mozilla.org/inspector/flasher;1", "inIFlasher");; this.color = aColor; this.mThickness = aThickness; this.duration = aDuration; this.mSpeed = aSpeed; this.register();} |
this.mInvert = aInvert; | function Flasher(aColor, aThickness, aDuration, aSpeed){ this.mShell = XPCU.createInstance("@mozilla.org/inspector/flasher;1", "inIFlasher");; this.color = aColor; this.mThickness = aThickness; this.duration = aDuration; this.mSpeed = aSpeed; this.register();} | |
this.dataIIDKey = aDataIIDKey || "nsISupportsWString"; | this.dataIIDKey = aDataIIDKey || "nsISupportsString"; | function Flavour(aContentType, aDataIIDKey){ this.contentType = aContentType; this.dataIIDKey = aDataIIDKey || "nsISupportsWString"; this._XferID = "Flavour";} |
var currentFocusedElement = null; if(MessagePaneHasFocus()){ currentFocusedElement="messagepanebox" } else{ currentFocusedElement= WhichPaneHasFocus() } if(currentFocusedElement != lastFocusedElement){ if( currentFocusedElement == "threadTree"){ document.getElementById("threadTree").setAttribute("focusring","true") ... | function FocusRingUpdate_Mail(){ var currentFocusedElement = null; if(MessagePaneHasFocus()){ currentFocusedElement="messagepanebox" } else{ currentFocusedElement= WhichPaneHasFocus() } if(currentFocusedElement != lastFocusedElement){ if( currentFocusedElement == "threadTree"){ document.getElementById("thread... | |
} | var currentFocusedElement = WhichPaneHasFocus(); if (!currentFocusedElement) currentFocusedElement = GetMessagePane(); if(currentFocusedElement != lastFocusedElement) { if( currentFocusedElement == GetThreadTree()) { GetThreadTree().setAttribute("focusring","true"); GetMessagePane().setAttribute("focusring","false"); ... | function FocusRingUpdate_Mail(){ var currentFocusedElement = null; if(MessagePaneHasFocus()){ currentFocusedElement="messagepanebox" } else{ currentFocusedElement= WhichPaneHasFocus() } if(currentFocusedElement != lastFocusedElement){ if( currentFocusedElement == "threadTree"){ document.getElementById("thread... |
else{ if(currentFocusedElement=="folderTree"){ document.getElementById("threadTree").setAttribute("focusring","false") document.getElementById("messagepanebox").setAttribute("focusring","false") } else{ if(currentFocusedElement=="messagepanebox"){ document.getElementById("threadTree").setAttribute("focusring","false")... | else if(currentFocusedElement==GetFolderTree()) { GetThreadTree().setAttribute("focusring","false"); GetMessagePane().setAttribute("focusring","false"); } else if(currentFocusedElement==GetMessagePane()){ GetThreadTree().setAttribute("focusring","false"); GetMessagePane().setAttribute("focusring","true"); } else { GetT... | function FocusRingUpdate_Mail(){ var currentFocusedElement = null; if(MessagePaneHasFocus()){ currentFocusedElement="messagepanebox" } else{ currentFocusedElement= WhichPaneHasFocus() } if(currentFocusedElement != lastFocusedElement){ if( currentFocusedElement == "threadTree"){ document.getElementById("thread... |
if (this.mTxMgrShell) rootShell.observerService.Notify(this.mTxMgrShell.mDataSource.mDataSource, "vfd-focus", this); | if (this.mTxMgrShell) { try { rootShell.observerService.Notify(this.mTxMgrShell.mDataSource.mDataSource, "vfd-focus", this); } catch (e) { } } | focusVFD: function () { var rootShell = vxUtils.getRootShell(); // for a focused vfd, send "vfd,url" // vixenMain.vxShell.mFocusObserver.Notify({ }, "window_focus", ("vfd," + this.mParams.documentURL)); rootShell.mFocusedWindow = window; if (this.mTxMgrShell) rootShell.observerService.Notify... |
var item = t.parentNode.parentNode.parentNode; | item = t.parentNode.parentNode.parentNode; | function FolderPaneOnClick(event){ debug("in FolderPaneClick()\n"); var t = event.originalTarget; if (t.getAttribute('twisty') == 'true') { // The twisty is nested three below the treeitem: // <treeitem> // <treerow> // <treecell> // <titledbutton class="tree-cell-tw... |
var uri = treeitem.getAttribute("id"); | uri = treeitem.getAttribute("id"); | function FolderPaneOnClick(event){ debug("in FolderPaneClick()\n"); var t = event.originalTarget; if (t.getAttribute('twisty') == 'true') { // The twisty is nested three below the treeitem: // <treeitem> // <treerow> // <treecell> // <titledbutton class="tree-cell-tw... |
var item = t.parentNode.parentNode; | item = t.parentNode.parentNode; | function FolderPaneOnClick(event){ debug("in FolderPaneClick()\n"); var t = event.originalTarget; if (t.getAttribute('twisty') == 'true') { // The twisty is nested three below the treeitem: // <treeitem> // <treerow> // <treecell> // <titledbutton class="tree-cell-tw... |
CycleFolderView(); | function FolderPaneOnClick(event){ // we only care about button 0 (left click) events if (event.button != 0) return; var folderTree = GetFolderTree(); var row = {}; var col = {}; var elt = {}; folderTree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, elt); if (row.value =... | |
else | else { document.getElementById('advancedButton').setAttribute("disabled" , !(IsCanSearchMessagesEnabled())); | function FolderPaneSelectionChange(){ var folderOutliner = GetFolderOutliner(); var folderSelection = folderOutliner.outlinerBoxObject.selection; // This prevents a folder from being loaded in the case that the user // has right-clicked on a folder different from the one that was // originally highlighte... |
} | function FolderPaneSelectionChange(){ var folderOutliner = GetFolderOutliner(); var folderSelection = folderOutliner.outlinerBoxObject.selection; // This prevents a folder from being loaded in the case that the user // has right-clicked on a folder different from the one that was // originally highlighte... | |
gMsgFolder.charset = folderCharsetList.getAttribute("data"); | gMsgFolder.charset = folderCharsetList.getAttribute("value"); | function folderPropsOKButtonCallback(){ if (gMsgFolder) { if (document.getElementById("selectForDownload").checked) gMsgFolder.setFlag(FOLDER_FLAG_OFFLINE); else gMsgFolder.clearFlag(FOLDER_FLAG_OFFLINE); // set charset attributes var folderCharsetList = document.getElementById("folderCharsetLi... |
folderCharsetList.setAttribute("value", charsetTitle); folderCharsetList.setAttribute("data", gMsgFolder.charset); | folderCharsetList.setAttribute("label", charsetTitle); folderCharsetList.setAttribute("value", gMsgFolder.charset); | function folderPropsOnLoad(){ dump("folder props loaded"+'\n'); doSetOKCancel(folderPropsOKButtonCallback); moveToAlertPosition(); RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); // look in arguments[0] for parameters if (window.arguments && window.arguments... |
testcases[tc++] = new TestCase( | new TestCase( | function ForIn_1( object ) { PropertyArray = new Array(); ValueArray = new Array(); for ( PropertyArray[PropertyArray.length] in object ) { ValueArray[ValueArray.length] = object[PropertyArray[PropertyArray.length-1]]; } for ( var i = 0; i < PropertyArray... |
with ( object ) { for ( property in object ) { testcases[tc++] = new TestCase( SECTION, "with loop in a for...in loop. ("+object+")["+property +"] == "+ "eval ( " + property +" )", true, object[property] == eval(property) ); } } | with ( object ) { for ( property in object ) { new TestCase( SECTION, "with loop in a for...in loop. ("+object+")["+property +"] == "+ "eval ( " + property +" )", true, object[property] == eval(property) ); | function ForIn_1( object) { with ( object ) { for ( property in object ) { testcases[tc++] = new TestCase( SECTION, "with loop in a for...in loop. ("+object+")["+property +"] == "+ "eval ( " + property +" )", ... |
} } | function ForIn_1( object) { with ( object ) { for ( property in object ) { testcases[tc++] = new TestCase( SECTION, "with loop in a for...in loop. ("+object+")["+property +"] == "+ "eval ( " + property +" )", ... | |
testcases[tc++] = new TestCase( | new TestCase( | function ForIn_2( object ) { PropertyArray = new Array(); ValueArray = new Array(); var i = 0; for ( PropertyArray[i++] in object ) { ValueArray[ValueArray.length] = object[PropertyArray[PropertyArray.length-1]]; } for ( i = 0; i < PropertyArray.le... |
for ( property in object ) { with ( object ) { testcases[tc++] = new TestCase( SECTION, "with loop in a for...in loop. ("+object+")["+property +"] == "+ "eval ( " + property +" )", true, object[property] == eval(property) ); } } | for ( property in object ) { with ( object ) { new TestCase( SECTION, "with loop in a for...in loop. ("+object+")["+property +"] == "+ "eval ( " + property +" )", true, object[property] == eval(property) ); | function ForIn_2(object) { for ( property in object ) { with ( object ) { testcases[tc++] = new TestCase( SECTION, "with loop in a for...in loop. ("+object+")["+property +"] == "+ "eval ( " + property +" )", ... |
} } | function ForIn_2(object) { for ( property in object ) { with ( object ) { testcases[tc++] = new TestCase( SECTION, "with loop in a for...in loop. ("+object+")["+property +"] == "+ "eval ( " + property +" )", ... | |
testcases[tc++] = new TestCase( | new TestCase( | function ForIn_3( object ) { var checkBreak = "pass"; var properties = new Array(); var values = new Array(); for ( properties[properties.length] in object ) { values[values.length] = object[properties[properties.length-1]]; break; checkBreak = "fail"; ... |
testcases[tc++] = new TestCase( | new TestCase( | function ForIn_4( object ) { var result1 = 0; var result2 = 0; var result3 = 0; var result4 = 0; var i = 0; var property = new Array(); butterbean: { result1++; for ( property[i++] in object ) { result2++; break; ... |
testcases[tc++] = new TestCase( | new TestCase( | function ForIn_5 (object) { var result1 = 0; var result2 = 0; var result3 = 0; var result4 = 0; var i = 0; var property = new Array(); bigredbird: { result1++; for ( property[i++] in object ) { result2++; break bigr... |
testcases[tc++] = new TestCase( | new TestCase( | function ForIn_7( object ) { var result1 = 0; var result2 = 0; var result3 = 0; var result4 = 0; var i = 0; var property = new Array(); bigredbird: for ( property[i++] in object ) { result2++; continue bigredbird; ... |
testcases[tc++] = new TestCase( | new TestCase( | function ForIn_8( object ) { var checkBreak = "pass"; var properties = new Array(); var values = new Array(); for ( properties[properties.length] in object ) { values[values.length] = object[properties[properties.length-1]]; break; checkBreak = "fail"; ... |
[p[i].name.stringValue, formatValue(v, true)])); | [p[i].name.stringValue, formatValue(p[i].value, true)])); | function formatArguments (v){ var ary = new Array(); var p = new Object(); v.getProperties (p, {}); p = p.value; for (var i = 0; i < p.length; ++i) { if (p[i].flags & jsdIProperty.FLAG_ARGUMENT) ary.push (getMsg(MSN_FMT_ARGUMENT, [p[i].name.stringValue, fo... |
if (days > 0) ary.push (getMsg(MSG_DAYS, days)); if (hours > 0) ary.push (getMsg(MSG_HOURS, hours)); if (minutes > 0) ary.push (getMsg(MSG_MINUTES, minutes)); if (seconds > 0 || offset == 0) ary.push (getMsg(MSG_SECONDS, seconds)); | if (days == 1) ary.push(MSG_DAY); else if (days > 0) ary.push(getMsg(MSG_DAYS, days)); if (hours == 1) ary.push(MSG_HOUR); else if (hours > 0) ary.push(getMsg(MSG_HOURS, hours)); if (minutes == 1) ary.push(MSG_MINUTE); else if (minutes > 0) ary.push(getMsg(MSG_MINUTES, minutes)); if (seconds == 1) ary.push(MSG_SECON... | function formatDateOffset (offset, format){ var seconds = roundTo(offset % 60, 2); var minutes = Math.floor(offset / 60); var hours = Math.floor(minutes / 60); minutes = minutes % 60; var days = Math.floor(hours / 24); hours = hours % 24; if (!format) { var ary = new Array(); if (d... |
DateFormater.prototype.formatDateTime = function formatDateTime(datetime, omitDateIfToday, timeString) { var formattedTime = (timeString || this.getFormatedTime( datetime )); if (omitDateIfToday) { var today = new Date(); if (datetime.getFullYear() == today.getFullYear() && datetime.getMonth() == today.getMonth() && da... | DateFormater.prototype.formatDateTime = function formatDateTime(datetime, relativeToDate, allDayOrTimeString) { var formattedTime = (! allDayOrTimeString ? this.getFormatedTime( datetime ) : typeof(allDayOrTimeString) == "string" ? allDayOrTimeString : allDayOrTimeString instanceof Strin... | DateFormater.prototype.formatDateTime = function formatDateTime(datetime, omitDateIfToday, timeString) { var formattedTime = (timeString || this.getFormatedTime( datetime )); if (omitDateIfToday) { var today = new Date(); if (datetime.getFullYear() == today.getFullYear() && datetime.getMonth() == today... |
if ( getBoolPref(gCalendarWindow.calendarPreferences.calendarPref, "date.formatTimeBeforeDate", false )) { return formattedTime+" "+formattedDate; } else { return formattedDate+" "+formattedTime; | var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var dateBranch = prefService.getBranch("calendar.date."); try { if ( dateBranch.getBoolPref("formatTimeBeforeDate") ) return formattedTime+" "+formattedDate; | DateFormater.prototype.formatDateTime = function formatDateTime(datetime, relativeToDate, allDayOrTimeString) { var formattedTime = (! allDayOrTimeString ? this.getFormatedTime( datetime ) : typeof(allDayOrTimeString) == "string" ? allDayOrTimeString : allDayOrTimeString ins... |
catch(ex) {} return formattedDate+" "+formattedTime; | DateFormater.prototype.formatDateTime = function formatDateTime(datetime, relativeToDate, allDayOrTimeString) { var formattedTime = (! allDayOrTimeString ? this.getFormatedTime( datetime ) : typeof(allDayOrTimeString) == "string" ? allDayOrTimeString : allDayOrTimeString ins... | |
return this.shortMonthName(aDate.month) + " " + aDate.day; | if (this.mMonthFirst) { return this.shortMonthName(aDate.month) + " " + aDate.day; } else { return aDate.day + " " + this.shortMonthName(aDate.month); } | function formatDateWithoutYear(aDate) { // XXX Using a hardcoded format, because nsIScriptableDateFormat doesn't // have a way to leave out the year. return this.shortMonthName(aDate.month) + " " + aDate.day;}; |
var url = (f.isNative) ? MSG_URL_NATIVE : f.script.fileName; | function formatFrame (f){ if (!f) throw new BadMojo (ERR_REQUIRED_PARAM, "f"); return getMsg (MSN_FMT_FRAME, [f.script.functionName, formatArguments(f.scope), f.script.fileName, f.line]);} | |
[f.script.functionName, formatArguments(f.scope), f.script.fileName, f.line]); | [f.functionName, formatArguments(f.scope), url, f.line]); | function formatFrame (f){ if (!f) throw new BadMojo (ERR_REQUIRED_PARAM, "f"); return getMsg (MSN_FMT_FRAME, [f.script.functionName, formatArguments(f.scope), f.script.fileName, f.line]);} |
this._rate = "??.?"; var format = isKB ? this._rateFormatKBSec : this._rateFormatMBSec; this._rate = this._replaceInsert(format, 1, this._rate); | this._rateFormatted = "??.?"; else { var format = isKB ? this._rateFormatKBSec : this._rateFormatMBSec; this._rateFormatted = this._replaceInsert(format, 1, this._rate); } | formatStatus: function(currSize, finalSize) { var now = Math.floor((new Date()).getTime() / 1000); // 1) Determine the Download Progress in Kilobytes var total = parseInt(finalSize/1024 + 0.5); this.progress = this._formatKBytes(parseInt(currSize/1024 + 0.5), total); // 2) Determine the Transfe... |
status = this._replaceInsert(status, 2, this._rate); | status = this._replaceInsert(status, 2, this._rateFormatted); | formatStatus: function(currSize, finalSize) { var now = Math.floor((new Date()).getTime() / 1000); // 1) Determine the Download Progress in Kilobytes var total = parseInt(finalSize/1024 + 0.5); this.progress = this._formatKBytes(parseInt(currSize/1024 + 0.5), total); // 2) Determine the Transfe... |
var s2 = d.getMonth() + "/" + d.getDate() + "/" + yr; | var s2 = (d.getMonth()+1) + "/" + d.getDate() + "/" + yr; | function formatTime(ltime, twoLines) { // ltime is in seconds since the epoch in, um, so var d = new Date (ltime*1000); var s1 = d.getHours() + (d.getMinutes() < 10 ? ":0" : ":") + d.getMinutes() + (d.getSeconds() < 10 ? ":0" : ":") + d.getSeconds(); if (twoLines) { var s2 = d.getDate()... |
var allDayString = (isAllDay && gCalendarBundle.getString("AllDay")); return gCalendarWindow.dateFormater.formatDateTime( datetime, true, allDayString ); | return gCalendarWindow.dateFormater.formatDateTime( datetime, true, isAllDay ); | function formatUnifinderEventDateTime( datetime, isAllDay ){ var allDayString = (isAllDay && gCalendarBundle.getString("AllDay")); return gCalendarWindow.dateFormater.formatDateTime( datetime, true, allDayString );} |
return gCalendarWindow.dateFormater.formatDateTime( datetime, true ); | if (datetime != null && datetime.getTime() != kNODATE) return gCalendarWindow.dateFormater.formatDateTime( new Date(datetime.getTime()), true ); else return ""; | function formatUnifinderToDoDateTime( datetime ){ return gCalendarWindow.dateFormater.formatDateTime( datetime, true );} |
function formatURL(aFormat, aVars, aIsPref) { var repl = null; if (aVars) { repl = Cc["@mozilla.org/dictionary;1"].createInstance(Ci.nsIDictionary); for (var key in aVars) { var val = Cc['@mozilla.org/supports-string;1'].createInstance(Ci.nsISupportsString); val.data = aVars[key]; repl.setValue(key, val); } } var for... | function formatURL(aFormat, aIsPref) { var formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"].getService(Ci.nsIURLFormatter); return aIsPref ? formatter.formatURLPref(aFormat) : formatter.formatURL(aFormat); | function formatURL(aFormat, aVars, aIsPref) { var repl = null; if (aVars) { repl = Cc["@mozilla.org/dictionary;1"].createInstance(Ci.nsIDictionary); for (var key in aVars) { var val = Cc['@mozilla.org/supports-string;1'].createInstance(Ci.nsISupportsString); val.data = aVars[key]; repl.setValue(k... |
type = MSG_TYPE_OBJECT; | function formatValue (v, summary){ if (!v) throw BadMojo (ERR_REQUIRED_PARAM, "v"); var type; var value; switch (v.jsType) { case jsdIValue.TYPE_BOOLEAN: type = MSG_TYPE_BOOLEAN; value = String(v.booleanValue); break; case jsdIValue.TYPE_D... | |
} | function formatValue (v, summary){ if (!v) throw BadMojo (ERR_REQUIRED_PARAM, "v"); var type; var value; switch (v.jsType) { case jsdIValue.TYPE_BOOLEAN: type = MSG_TYPE_BOOLEAN; value = String(v.booleanValue); break; case jsdIValue.TYPE_D... | |
this.acceptNode = function(node) | switch (node.nodeName.toLowerCase()) | function FormControlFilter() { this.acceptNode = function(node) { switch (node.nodeName.toLowerCase()) { case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; break; default: r... |
switch (node.nodeName.toLowerCase()) { case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; break; default: return NodeFilter.FILTER_SKIP; break; } return NodeFilter.FILTER_SKIP; } | case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; default: return NodeFilter.FILTER_SKIP; } | function FormControlFilter() { this.acceptNode = function(node) { switch (node.nodeName.toLowerCase()) { case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; break; default: r... |
"WalletViewer", | "_blank", | function formShow() { window.openDialog( "chrome://communicator/content/wallet/WalletViewer.xul", "WalletViewer", "chrome,titlebar,modal=yes,resizable=yes");/* form toolbar is out initToolbarItems(); // need to redetermine which buttons in form toolbar to enable*/ } |
var dl = Components.classes["@mozilla.org/download;1"].createInstance(Components.interfaces.nsIDownload); | var tr = Components.classes["@mozilla.org/download;1"].createInstance(Components.interfaces.nsITransfer); | function foundHeaderInfo(aSniffer, aData, aSkipPrompt){ var contentType = aSniffer.contentType; var contentEncodingType = aSniffer.contentEncodingType; var shouldDecode = false; // Are we allowed to decode? try { const helperAppService = Components.classes["@mozilla.org/uriloader/external-helper-app-servic... |
dl.init(aSniffer.uri, persistArgs.target, null, null, null, persist); | tr.init(aSniffer.uri, persistArgs.target, null, null, null, persist); | function foundHeaderInfo(aSniffer, aData, aSkipPrompt){ var contentType = aSniffer.contentType; var contentEncodingType = aSniffer.contentEncodingType; var shouldDecode = false; // Are we allowed to decode? try { const helperAppService = Components.classes["@mozilla.org/uriloader/external-helper-app-servic... |
dl.init(source, persistArgs.target, null, null, null, persist); | tr.init(source, persistArgs.target, null, null, null, persist); | function foundHeaderInfo(aSniffer, aData, aSkipPrompt){ var contentType = aSniffer.contentType; var contentEncodingType = aSniffer.contentEncodingType; var shouldDecode = false; // Are we allowed to decode? try { const helperAppService = Components.classes["@mozilla.org/uriloader/external-helper-app-servic... |
modeComplete ? MODE_COMPLETE : MODE_FILEONLY); | isDocument ? MODE_COMPLETE : MODE_FILEONLY); const prefSvcContractID = "@mozilla.org/preferences-service;1"; const prefSvcIID = Components.interfaces.nsIPrefService; var prefs = Components.classes[prefSvcContractID].getService(prefSvcIID).getBranch("browser.download"); const nsILocalFile = Components.interfaces.nsILo... | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var mo... |
var defaultFileName = getDefaultFileName(aData.fileName, aSniffer.suggestedFileName, aSniffer.uri); fp.defaultString = getNormalizedLeafName(defaultFileName, contentType); | fp.defaultString = getDefaultFileName(aData.fileName, aSniffer.suggestedFileName, aSniffer.uri, aData.document); | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var mo... |
fp.file.leafName = getNormalizedLeafName(fp.file.leafName, contentType); | const kAllFilesFilterIndex = 1; if (isDocument || fp.filterIndex != kAllFilesFilterIndex) fp.file.leafName = getNormalizedLeafName(fp.file.leafName, contentType); | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var mo... |
var source = (aData.document && contentType == "text/html" && fp.filterIndex == 0) ? aData.document : aSniffer.uri; | var source = (isDocument && fp.filterIndex == 0) ? aData.document : aSniffer.uri; | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var mo... |
var fn = frame.script.functionName; | var fn = frame.functionName; | function FrameRecord (frame){ if (!(frame instanceof jsdIStackFrame)) throw new BadMojo (ERR_INVALID_PARAM, "value"); this.setColumnPropertyName ("stack-col-0", "functionName"); this.setColumnPropertyName ("stack-col-2", "location"); var fn = frame.script.functionName; if (!fn) fn = MSG_VAL... |
var sourceRec = console.scripts[frame.script.fileName]; if (sourceRec) | if (!frame.isNative) | function FrameRecord (frame){ if (!(frame instanceof jsdIStackFrame)) throw new BadMojo (ERR_INVALID_PARAM, "value"); this.setColumnPropertyName ("stack-col-0", "functionName"); this.setColumnPropertyName ("stack-col-2", "location"); var fn = frame.script.functionName; if (!fn) fn = MSG_VAL... |
this.location = sourceRec.shortName + ":" + frame.line; var scriptRec = sourceRec.locateChildByScript(frame.script); if (fn == "anonymous") fn = scriptRec.functionName; | var sourceRec = console.scripts[frame.script.fileName]; if (sourceRec) { this.location = sourceRec.shortName + ":" + frame.line; var scriptRec = sourceRec.locateChildByScript(frame.script); if (fn == "anonymous") fn = scriptRec.functionName; } else dd ("no sourcerec"); | function FrameRecord (frame){ if (!(frame instanceof jsdIStackFrame)) throw new BadMojo (ERR_INVALID_PARAM, "value"); this.setColumnPropertyName ("stack-col-0", "functionName"); this.setColumnPropertyName ("stack-col-2", "location"); var fn = frame.script.functionName; if (!fn) fn = MSG_VAL... |
dd ("no sourcerec"); | { this.location = MSG_URL_NATIVE; } | function FrameRecord (frame){ if (!(frame instanceof jsdIStackFrame)) throw new BadMojo (ERR_INVALID_PARAM, "value"); this.setColumnPropertyName ("stack-col-0", "functionName"); this.setColumnPropertyName ("stack-col-2", "location"); var fn = frame.script.functionName; if (!fn) fn = MSG_VAL... |
this.scopeRec = new ValueRecord (frame.scope, MSG_WORD_SCOPE, ""); this.appendChild (this.scopeRec); this.thisRec = new ValueRecord (frame.thisValue, MSG_WORD_THIS, ""); | if (frame.scope) { this.scopeRec = new ValueRecord (frame.scope, MSG_WORD_SCOPE, ""); this.appendChild (this.scopeRec); } if (frame.thisValue) { this.thisRec = new ValueRecord (frame.thisValue, MSG_WORD_THIS, ""); this.appendChild (this.thisRec); } | function FrameRecord (frame){ if (!(frame instanceof jsdIStackFrame)) throw new BadMojo (ERR_INVALID_PARAM, "value"); this.setColumnPropertyName ("stack-col-0", "functionName"); this.setColumnPropertyName ("stack-col-2", "location"); var fn = frame.script.functionName; if (!fn) fn = MSG_VAL... |
this.appendChild (this.thisRec); | function FrameRecord (frame){ if (!(frame instanceof jsdIStackFrame)) throw new BadMojo (ERR_INVALID_PARAM, "value"); this.setColumnPropertyName ("stack-col-0", "functionName"); this.setColumnPropertyName ("stack-col-2", "location"); var fn = frame.script.functionName; if (!fn) fn = MSG_VAL... | |
function func() { return arguments.callee.__parent__ == GLOBAL; } | function func() { return this; } | function func(){ return arguments.callee.__parent__ == GLOBAL;} |
localFile.initWithUnicodePath(initialPath); | localFile.initWithPath(initialPath); | function futils_nosepicker(initialPath, typeList, attribs){ const classes = Components.classes; const interfaces = Components.interfaces; const PICKER_CTRID = "@mozilla.org/filepicker;1"; const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const nsIFilePicker = interfaces.nsIFilePicker; const nsILoca... |
print(obj); | writeLineToLog(obj); | function G(obj){ if(!obj) obj = {}; print(obj); gc(); print(obj);} |
var Cc = Components.classes; var Ci = Components.interfaces; | function G_Alarm(callback, delayMS, opt_repeating, opt_maxTimes) { this.debugZone = "alarm"; this.callback_ = callback; this.repeating_ = !!opt_repeating; var Cc = Components.classes; var Ci = Components.interfaces; this.timer_ = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer); var type = opt_repeating ? ... | |
this.observerServiceObserver_ = new G_ObserverServiceObserver( 'xpcom-shutdown', BindToObject(this.cancel, this)); | function G_Alarm(callback, delayMS, opt_repeating, opt_maxTimes) { this.debugZone = "alarm"; this.callback_ = callback; this.repeating_ = !!opt_repeating; var Cc = Components.classes; var Ci = Components.interfaces; this.timer_ = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer); var type = opt_repeating ? ... | |
function G_NavWatcher(opt_filterSpurious) { | function G_NavWatcher() { | function G_NavWatcher(opt_filterSpurious) { this.debugZone = "navwatcher"; this.filterSpurious_ = !!opt_filterSpurious; this.events = G_NavWatcher.events; // Convenience pointer this.registrar_ = new EventRegistrar(this.events); var wp = Ci.nsIWebProgress; var wpService = Cc["@mozilla.org/docloaderserv... |
this.filterSpurious_ = !!opt_filterSpurious; | function G_NavWatcher(opt_filterSpurious) { this.debugZone = "navwatcher"; this.filterSpurious_ = !!opt_filterSpurious; this.events = G_NavWatcher.events; // Convenience pointer this.registrar_ = new EventRegistrar(this.events); var wp = Ci.nsIWebProgress; var wpService = Cc["@mozilla.org/docloaderserv... | |
wpService.addProgressListener(this, wp.NOTIFY_STATE_ALL); | wpService.addProgressListener(this, wp.NOTIFY_STATE_REQUEST); | function G_NavWatcher(opt_filterSpurious) { this.debugZone = "navwatcher"; this.filterSpurious_ = !!opt_filterSpurious; this.events = G_NavWatcher.events; // Convenience pointer this.registrar_ = new EventRegistrar(this.events); var wp = Ci.nsIWebProgress; var wpService = Cc["@mozilla.org/docloaderserv... |
this.onDOMContentLoadedClosure_ = BindToObject(this.onDOMContentLoaded, this) this.tabbox_.addEventListener("DOMContentLoaded", this.onDOMContentLoadedClosure_, true); this.onDOMNodeInsertedClosure_ = BindToObject(this.onDOMNodeInserted, this); this.tabbox_.addEventListener("DOMNodeInserted", this.onDOMNodeInsertedC... | function G_TabbedBrowserWatcher(tabBrowser, name, opt_filterAboutBlank) { this.debugZone = "tabbedbrowserwatcher"; this.registrar_ = new EventRegistrar(G_TabbedBrowserWatcher.events); this.tabBrowser_ = tabBrowser; this.filterAboutBlank_ = !!opt_filterAboutBlank; this.events = G_TabbedBrowserWatcher.events; /... | |
this.detectNewTabs_(); | function G_TabbedBrowserWatcher(tabBrowser, name, opt_filterAboutBlank) { this.debugZone = "tabbedbrowserwatcher"; this.registrar_ = new EventRegistrar(G_TabbedBrowserWatcher.events); this.tabBrowser_ = tabBrowser; this.filterAboutBlank_ = !!opt_filterAboutBlank; this.events = G_TabbedBrowserWatcher.events; /... | |
for (var i = 0; i != 1 << 15; ++i) | try | function gc(){ // Thanks to igor.bukanov@gmail.com for (var i = 0; i != 1 << 15; ++i) { new Object(); }} |
new Object(); | netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var jsdIDebuggerService = Components.interfaces.jsdIDebuggerService; var service = Components.classes['@mozilla.org/js/jsd/debugger-service;1']. getService(jsdIDebuggerService); service.GC(); } catch(ex) { for (var i = 0; i != 1 << 15; ++i) { ne... | function gc(){ // Thanks to igor.bukanov@gmail.com for (var i = 0; i != 1 << 15; ++i) { new Object(); }} |
try { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var jsdIDebuggerService = Components.interfaces.jsdIDebuggerService; var service = Components.classes['@mozilla.org/js/jsd/debugger-service;1']. getService(jsdIDebuggerService); service.GC(); } catch(ex) { for (var i = 0; i != 1 << 15; ++... | function gc(){} | |
if (valsOnly) yield vals[i]; | if (keysOnly) yield keys[i]; | var gen = function() { for (var i = 0; i < keys.length; i++) { if (valsOnly) yield vals[i]; else yield [keys[i], vals[i]]; } }; |
text = text.replace(/\,/g, "%2C"); | function GenerateAttachmentsString(){ var attachments = ""; var body = document.getElementById('bucketBody'); var item, row, cell, text, colon; for (var index = 0; index < body.childNodes.length; index++) { item = body.childNodes[index]; if (item.childNodes && item.childNodes.length) { row = item.childNodes[0]; ... | |
if (cell.childNodes && cell.childNodes.length) | if (cell) | function GenerateAttachmentsString(){ var attachments = ""; var body = document.getElementById('bucketBody'); var item, row, cell, text, colon; for (var index = 0; index < body.childNodes.length; index++) { item = body.childNodes[index]; if (item.childNodes && item.childNodes.length) { row = item.childNodes[0]; ... |
text = cell.childNodes[0]; if (text && text.data && text.data.length) | text = cell.getAttribute("value"); if (text.length) | function GenerateAttachmentsString(){ var attachments = ""; var body = document.getElementById('bucketBody'); var item, row, cell, text, colon; for (var index = 0; index < body.childNodes.length; index++) { item = body.childNodes[index]; if (item.childNodes && item.childNodes.length) { row = item.childNodes[0]; ... |
attachments = text.data; | attachments = text; | function GenerateAttachmentsString(){ var attachments = ""; var body = document.getElementById('bucketBody'); var item, row, cell, text, colon; for (var index = 0; index < body.childNodes.length; index++) { item = body.childNodes[index]; if (item.childNodes && item.childNodes.length) { row = item.childNodes[0]; ... |
attachments = attachments + "," + text.data; | attachments = attachments + "," + text; | function GenerateAttachmentsString(){ var attachments = ""; var body = document.getElementById('bucketBody'); var item, row, cell, text, colon; for (var index = 0; index < body.childNodes.length; index++) { item = body.childNodes[index]; if (item.childNodes && item.childNodes.length) { row = item.childNodes[0]; ... |
top.window.title = editCard.titlePrefix + displayName; | top.window.title = Bundle.formatStringFromName(editCard.titleProperty, [ displayName ], 1); | function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /* this used t... |
top.window.title = gAddressBookBundle.getFormattedString(editCard.titleProperty, [ displayName ]); | SetCardDialogTitle(displayName); | function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); if (lastNameField.value && firstNameF... |
separator = editCardLastFirstSeparator; | separator = editCard.lastFirstSeparator; | function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /* this used t... |
separator = editCardFirstLastSeparator; | separator = editCard.firstLastSeparator; | function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /* this used t... |
var separator = ""; if ( lastNameField.value && firstNameField.value ) { | if (lastNameField.value && firstNameField.value) { | function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /*... |
separator = editCard.lastFirstSeparator; | displayName = gAddressBookBundle.getFormattedString("lastFirstFormat",[ lastNameField.value, firstNameField.value ]); | function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /*... |
separator = editCard.firstLastSeparator; | displayName = gAddressBookBundle.getFormattedString("firstLastFormat",[ firstNameField.value, lastNameField.value ]); | function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /*... |
if ( editCard.displayLastNameFirst ) displayName = lastNameField.value + separator + firstNameField.value; else displayName = firstNameField.value + separator + lastNameField.value; | else { displayName = firstNameField.value + lastNameField.value; } | function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /*... |
function generateGetTargetsBoundCallback(callerObject, outer) { function getTargetsBoundCallback(callerObject, outer) { this.callerObject = callerObject; this.outer = outer; | function generateGetTargetsBoundCallback() { function getTargetsBoundCallback() { | function generateGetTargetsBoundCallback(callerObject, outer) { function getTargetsBoundCallback(callerObject, outer) { this.callerObject = callerObject; this.outer = outer; } getTargetsBoundCallback.prototype.callerObject = null; getTarg... |
getTargetsBoundCallback.prototype.callerObject = null; getTargetsBoundCallback.prototype.outer = {}; | getTargetsBoundCallback.prototype.QueryInterface = function(iid) { if (!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsILDAPMessageListener)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; } | function generateGetTargetsBoundCallback(callerObject, outer) { function getTargetsBoundCallback(callerObject, outer) { this.callerObject = callerObject; this.outer = outer; } getTargetsBoundCallback.prototype.callerObject = null; getTarg... |
dump("boundCallback() called with scope: \n\t" + this.outer.Value + "\n\n"); | dump("getTargetsBoundCallback.onLDAPMessage()" + "called with scope: \n\t" + aOuter.Value + "\n\n"); | function generateGetTargetsBoundCallback(callerObject, outer) { function getTargetsBoundCallback(callerObject, outer) { this.callerObject = callerObject; this.outer = outer; } getTargetsBoundCallback.prototype.callerObject = null; getTarg... |
generateGetTargetsSearchCallback(this.callerObject, this.outer)); | generateGetTargetsSearchCallback()); | function generateGetTargetsBoundCallback(callerObject, outer) { function getTargetsBoundCallback(callerObject, outer) { this.callerObject = callerObject; this.outer = outer; } getTargetsBoundCallback.prototype.callerObject = null; getTarg... |
searchOp.searchExt(url.dn, url.scope, url.filter, 0, -1); | searchOp.searchExt(url.dn, url.scope, url.filter, 0, new Array(), 0, -1); | function generateGetTargetsBoundCallback(callerObject, outer) { function getTargetsBoundCallback(callerObject, outer) { this.callerObject = callerObject; this.outer = outer; } getTargetsBoundCallback.prototype.callerObject = null; getTarg... |
return new getTargetsBoundCallback(callerObject, outer); | getTargetsBoundCallback.prototype.onLDAPInit = function(aStatus) { if (DEBUG) { dump("getTargetsBoundCallback.onLDAPInit()" + " called with status of " + aStatus + "\n\n"); } var operation = Components.classes ["@mozilla.org/network/ldap-operation;1"]. createInstance(Components.interfaces.nsILDAPOperation); operatio... | function generateGetTargetsBoundCallback(callerObject, outer) { function getTargetsBoundCallback(callerObject, outer) { this.callerObject = callerObject; this.outer = outer; } getTargetsBoundCallback.prototype.callerObject = null; getTarg... |
generic_Get: function ( aElement ) { if( aElement ) { var dataObject = []; var wsmAttributes = aElement.getAttribute( "wsm_attributes" ); var attributes = wsm.attributes; if( wsmAttributes != "" ) { attributes.push( wsmAttributes.split(" ") ); } for( var i = 0; i < attributes.length; i++ ) { dataObject[attributes[i]] =... | generic_Get: function (aElement) { if (aElement) { var dataObject = new Object(); var wsmAttributes = aElement.getAttribute("wsm_attributes"); var attributes = wsm.attributes; if (wsmAttributes != "") attributes.push(wsmAttributes.split(" ")); for (var i = 0; i < attributes.length; i++) dataObject[attributes[i]] = aEl... | generic_Get: function ( aElement ) { if( aElement ) { var dataObject = []; var wsmAttributes = aElement.getAttribute( "wsm_attributes" ); var attributes = wsm.attributes; // make a copy if( wsmAttributes != "" ) ... |
msgCompFields.SetSubject(document.getElementById("msgSubject").value); | var subject = document.getElementById("msgSubject").value; msgCompFields.SetSubject(subject); | function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); msgCompFields.SetSubject(document.getElem... |
if (subject == "") { if (commonDialogsService) { var result = {value:0}; if (commonDialogsService.Prompt( window, Bundle.GetStringFromName("subjectDlogTitle"), Bundle.GetStringFromName("subjectDlogMessage"), Bundle.GetStringFromName("defaultSubject"), result )) { msgCompFields.SetSubject(result.value); var subjectInput... | function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); msgCompFields.SetSubject(document.getElem... | |
var convert = DetermineConvertibility(); action = DetermineHTMLAction(convert); | var convert = DetermineConvertibility(); var action = DetermineHTMLAction(convert); | function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("ms... |
recommAction = convert == msgCompConvertible.No | var recommAction = convert == msgCompConvertible.No | function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("ms... |
else return; | function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("ms... | |
if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSubject").value; msgCompFields.subject = subject; dump("attachments = " + GenerateAttachmentsString() + "\n"); try { msgCompFields.attachments = Gener... | if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSubject").value; msgCompFields.subject = subject; Attachments2CompFields(msgCompFields); | function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSub... |
if (promptService.Prompt( | if (promptService.prompt( | function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSub... |
Bundle.GetStringFromName("subjectDlogTitle"), Bundle.GetStringFromName("subjectDlogMessage"), Bundle.GetStringFromName("defaultSubject"), | gComposeMsgsBundle.getString("subjectDlogTitle"), gComposeMsgsBundle.getString("subjectDlogMessage"), gComposeMsgsBundle.getString("defaultSubject"), | function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("ms... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.