rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
return compareString(eventA.parent.name, eventB.parent.name) * modifier; | return compareString(eventA.calendar.name, eventB.calendar.name) * modifier; | function compareEvents( eventA, eventB ){ var modifier = 1; if (treeView.sortDirection == "descending") { modifier = -1; } switch(treeView.selectedColumn) { case "unifinder-search-results-tree-col-title": return compareString(eventA.title, eventB.title) * modifier; case "unifinder-s... |
return compareString(eventA.status, eventB.status) * modifier; | return compareNumber(kEventStatusOrder.indexOf(eventA.status), kEventStatusOrder.indexOf(eventB.status)) * modifier; | function compareEvents( eventA, eventB ){ var modifier = 1; if (treeView.sortDirection == "descending") { modifier = -1; } switch(treeView.selectedColumn) { case "unifinder-search-results-tree-col-title": return compareString(eventA.title, eventB.title) * modifier; case "unifinder-s... |
function comparePasswords(password1, password2) | function comparePasswords(password1, password2, emptyOK) | function comparePasswords(password1, password2){ if (isWhitespace(password1.value)) { return warnEmpty(password1, "Password"); } if (isWhitespace(password2.value)) { return warnEmpty(password2, "Confirm Password"); } if (password1.value.length < 5) { return warnInvalid (password1, iPassword... |
return true; | function comparePasswords(password1, password2){ if (isWhitespace(password1.value)) { return warnEmpty(password1, "Password"); } if (isWhitespace(password2.value)) { return warnEmpty(password2, "Confirm Password"); } if (password1.value.length < 5) { return warnInvalid (password1, iPassword... | |
writeLineToLog('expect:\n' + expectP); writeLineToLog('actual:\n' + actualP); | print('expect:\n' + expectP); print('actual:\n' + actualP); | function compareSource(expect, actual, summary){ // compare source var expectP = expect. replace(/([(){},.:\[\]])/mg, ' $1 '). replace(/(\w+)/mg, ' $1 '). replace(/<(\/)? (\w+) (\/)?>/mg, '<$1$2$3>'). replace(/\s+/mg, ' '). replace(/new (\w+)\s*\(\s*\)/mg, 'new $1'); var actu... |
writeLineToLog('expect:\n' + expectP); writeLineToLog('actual:\n' + actualP); | print('expect:\n' + expectP); print('actual:\n' + actualP); | function compareSource(expect, actual, summary){ // compare source var expectP = expect. replace(/([(){},.:\[\]])/mg, ' $1 '). replace(/(\w+)/mg, ' $1 '). replace(/<(\/)? (\w+) (\/)?>/mg, '<$1$2$3>'). replace(/\s+/mg, ' '). replace(/new (\w+)\s*\(\s*\)/mg, 'new $1'); var actu... |
return compareString(taskA.parent.name, taskB.parent.name) * modifier; | return compareString(taskA.calendar.name, taskB.calendar.name) * modifier; | function compareTasks( taskA, taskB ){ var modifier = 1; if (toDoTreeView.sortDirection == "descending") { modifier = -1; } switch(toDoTreeView.selectedColumn) { case "unifinder-todo-tree-col-priority": // 0-9 return compareNumber(taskA.priority, taskB.priority) * modifier; case "unifinde... |
setTimeout("awFinishCopyNodes();", 0); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { gMimeHeaderParser = Components.classes["@mozilla.org/messenger/headerparser;1"].getService(Components.interfaces.nsIMsgHeaderParser); var listbox = document.getElementById('addressingWidget'); var newListBoxNode = listbox.cloneNode(f... | |
if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; | if (msgCompFields) { var listbox = document.getElementById('addressingWidget'); var newListBoxNode = listbox.cloneNode(false); var listBoxColsClone = listbox.firstChild.cloneNode(true); newListBoxNode.appendChild(listBoxColsClone); var templateNode = listbox.getElementsByTagName("listitem")[0]; | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; var msgReplyTo = msgCompFields... |
awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgReplyTo, false), "addr_reply", newTreeChildrenNode, templateNode); | awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgReplyTo, false), "addr_reply", newListBoxNode, templateNode); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; var msgReplyTo = msgCompFields... |
awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgTo, false), "addr_to", newTreeChildrenNode, templateNode); | awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgTo, false), "addr_to", newListBoxNode, templateNode); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; var msgReplyTo = msgCompFields... |
awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCC, false), "addr_cc", newTreeChildrenNode, templateNode); | awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCC, false), "addr_cc", newListBoxNode, templateNode); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; var msgReplyTo = msgCompFields... |
awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgBCC, false), "addr_bcc", newTreeChildrenNode, templateNode); | awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgBCC, false), "addr_bcc", newListBoxNode, templateNode); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; var msgReplyTo = msgCompFields... |
awSetInputAndPopup(msgRandomHeaders, "addr_other", newTreeChildrenNode, templateNode); | awSetInputAndPopup(msgRandomHeaders, "addr_other", newListBoxNode, templateNode); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; var msgReplyTo = msgCompFields... |
awSetInputAndPopup(msgNewsgroups, "addr_newsgroups", newTreeChildrenNode, templateNode); | awSetInputAndPopup(msgNewsgroups, "addr_newsgroups", newListBoxNode, templateNode); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; var msgReplyTo = msgCompFields... |
awSetInputAndPopup(msgFollowupTo, "addr_followup", newTreeChildrenNode, templateNode); | awSetInputAndPopup(msgFollowupTo, "addr_followup", newListBoxNode, templateNode); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; var msgReplyTo = msgCompFields... |
_awSetInputAndPopup("", "addr_to", newTreeChildrenNode, templateNode); var parent = treeChildren.parentNode; parent.replaceChild(newTreeChildrenNode, treeChildren); awFitDummyRows(2); setTimeout("awFinishCopyNodes();", 0); | _awSetInputAndPopup("", "addr_to", newListBoxNode, templateNode); var parent = listbox.parentNode; parent.replaceChild(newListBoxNode, listbox); awFitDummyRows(2); setTimeout("awFinishCopyNodes();", 0); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; var msgReplyTo = msgCompFields... |
addRecipientsToIgnoreList((gCurrentIdentity ? gCurrentIdentity.identityName + ', ' : '') + msgTo + ', ' + msgCC + ', ' + msgBCC); | function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { gMimeHeaderParser = Components.classes["@mozilla.org/messenger/headerparser;1"].getService(Components.interfaces.nsIMsgHeaderParser); var listbox = document.getElementById('addressingWidget'); var newListBoxNode = listbox.cloneNode(f... | |
setTimeout("awFinishCopyNodes();", 0); | function CompFields2Recipients(msgCompFields){ if (msgCompFields) { var row = 1; row = awSetInputAndPopupFromArray(row, msgCompFields.SplitRecipients(msgCompFields.GetTo()), "addr_to"); row = awSetInputAndPopupFromArray(row, msgCompFields.SplitRecipients(msgCompFields.GetCc()), "addr_cc"); row = awSetInputAndPopu... | |
var i = 1; var fieldValue = msgCompFields.GetTo(); if (fieldValue != "" && i <= MAX_RECIPIENTS) { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_to"; i ++; } fieldValue = msgCompFields.GetCc(); if (fieldValue != "" && i <= MAX_RECIPIENTS)... | var row = 1; | function CompFields2Recipients(msgCompFields){ if (msgCompFields) { var i = 1; var fieldValue = msgCompFields.GetTo(); if (fieldValue != "" && i <= MAX_RECIPIENTS) { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_to"; i ++; } f... |
fieldValue = msgCompFields.GetFollowupTo(); if (fieldValue != "" && i <= MAX_RECIPIENTS) { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_followup"; i ++; } for (; i <= MAX_RECIPIENTS; i++) { document.getElementById("msgRecipient#" + i).v... | row = awSetInputAndPopup(row, msgCompFields.GetTo(), "addr_to"); row = awSetInputAndPopup(row, msgCompFields.GetCc(), "addr_cc"); row = awSetInputAndPopup(row, msgCompFields.GetBcc(), "addr_bcc"); row = awSetInputAndPopup(row, msgCompFields.GetReplyTo(), "addr_reply"); row = awSetInputAndPopup(row, msgCompFields.GetOth... | function CompFields2Recipients(msgCompFields){ if (msgCompFields) { var i = 1; var fieldValue = msgCompFields.GetTo(); if (fieldValue != "" && i <= MAX_RECIPIENTS) { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_to"; i ++; } f... |
if (gPromptService.confirm(window, promptTitle, promptMsg)) | var quitButtonLabel = gComposeMsgsBundle.getString("quitComposeWindowQuitButtonLabel"); var waitButtonLabel = gComposeMsgsBundle.getString("quitComposeWindowWaitButtonLabel"); var result = {value:0}; gPromptService.confirmEx(window, promptTitle, promptMsg, (gPromptService.BUTTON_TITLE_IS_STRING*gPromptService.BUTTON_P... | function ComposeCanClose(){ if (!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService); } if (sendOrSaveOperationInProgress) { if (gPromptService) { ... |
if (sendOrSaveOperationInProgress) return false; | function ComposeCanClose(){ // Returns FALSE only if user cancels save action if (contentChanged || msgCompose.bodyModified) { // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); if (promptService) { var result = ... | |
window.focus(); | function ComposeCanClose(){ // Returns FALSE only if user cancels save action if (contentChanged || msgCompose.bodyModified) { if (commonDialogsService) { var result = {value:0}; commonDialogsService.UniversalDialog( window, null, gComposeMsgsBundle.getString("saveDlogTitle"), gComposeMsgsBun... | |
window.editorShell.wrapColumn = gMsgCompose.wrapLength; | gMsgCompose.editor.QueryInterface(nsIPlaintextEditorMail).wrapWidth = gMsgCompose.wrapLength; | function ComposeFieldsReady(msgType){ //If we are in plain text, we need to set the wrap column if (! gMsgCompose.composeHTML) { try { window.editorShell.wrapColumn = gMsgCompose.wrapLength; } catch (e) { dump("### window.editorShell.wrapColumn exception text: " + e + " - failed\n"); } } CompF... |
dump("### window.editorShell.wrapColumn exception text: " + e + " - failed\n"); | dump("### textEditor.wrapWidth exception text: " + e + " - failed\n"); | function ComposeFieldsReady(msgType){ //If we are in plain text, we need to set the wrap column if (! gMsgCompose.composeHTML) { try { window.editorShell.wrapColumn = gMsgCompose.wrapLength; } catch (e) { dump("### window.editorShell.wrapColumn exception text: " + e + " - failed\n"); } } CompF... |
verifyAccounts(); | var wizardcallback = true; var state = verifyAccounts(wizardcallback); | function ComposeLoad(){ dump("\nComposeLoad from XUL\n"); try { SetupCommandUpdateHandlers(); verifyAccounts(); // this will do migration, or create a new account if we need to. if (other_header != "") { var selectNode = document.getElementById('msgRecipientType#1'); selectNode = selectNode.childNodes... |
ComposeStartup(); | if(state) ComposeStartup(); | function ComposeLoad(){ dump("\nComposeLoad from XUL\n"); try { SetupCommandUpdateHandlers(); verifyAccounts(); // this will do migration, or create a new account if we need to. if (other_header != "") { var selectNode = document.getElementById('msgRecipientType#1'); selectNode = selectNode.childNodes... |
MigratePrefsIfNecessary(); | function ComposeLoad(){ dump("\nComposeLoad from XUL\n"); var selectNode = document.getElementById('msgRecipientType#1'); if (other_header != "") { var opt = new Option(other_header + ":", "addr_other"); selectNode.add(opt, null); } // See if we got arguments. if ( window.arguments && window.arguments[0] != nu... | |
var folderTree = GetFolderTree(); var selectedFolderList = folderTree.selectedItems; if(selectedFolderList.length > 0) { var selectedFolder = selectedFolderList[0]; var uri = selectedFolder.getAttribute('id'); dump("selectedFolder uri = " + uri + "\n"); | var identity = null; try { var folderTree = GetFolderTree(); var selectedFolderList = folderTree.selectedItems; if(selectedFolderList.length > 0) { var selectedFolder = selectedFolderList[0]; var uri = selectedFolder.getAttribute('id'); var server = accountManager.FindServerUsingURI(uri); var identities = account... | function ComposeMessage(type, format)//type: 0=new message, 1=reply, 2=reply all,// 3=forward inline, 4=forward as attachment////format: 0=default (use preference), 1=HTML, 2=plain text{ var folderTree = GetFolderTree(); var selectedFolderList = folderTree.selectedItems; if(selectedFolderList.length ... |
msgComposeService.OpenComposeWindow(null, null, 0, format, null, null); | msgComposeService.OpenComposeWindow(null, null, 0, format, null, identity); | function ComposeMessage(type, format)//type: 0=new message, 1=reply, 2=reply all,// 3=forward inline, 4=forward as attachment////format: 0=default (use preference), 1=HTML, 2=plain text{ var folderTree = GetFolderTree(); var selectedFolderList = folderTree.selectedItems; if(selectedFolderList.length ... |
msgComposeService.OpenComposeWindow(null, nodeList[i].getAttribute('id'), type, format, object, null); | msgComposeService.OpenComposeWindow(null, nodeList[i].getAttribute('id'), type, format, object, identity); | function ComposeMessage(type, format)//type: 0=new message, 1=reply, 2=reply all,// 3=forward inline, 4=forward as attachment////format: 0=default (use preference), 1=HTML, 2=plain text{ var folderTree = GetFolderTree(); var selectedFolderList = folderTree.selectedItems; if(selectedFolderList.length ... |
msgComposeService.OpenComposeWindow(null, uri, type, format, object, null); | msgComposeService.OpenComposeWindow(null, uri, type, format, object, identity); | function ComposeMessage(type, format)//type: 0=new message, 1=reply, 2=reply all,// 3=forward inline, 4=forward as attachment////format: 0=default (use preference), 1=HTML, 2=plain text{ var folderTree = GetFolderTree(); var selectedFolderList = folderTree.selectedItems; if(selectedFolderList.length ... |
if (type == msgComposeType.Reply || type == msgComposeType.ReplyAll || type == msgComposeType.ForwardInline) | if (type == msgComposeType.Reply || type == msgComposeType.ReplyAll || type == msgComposeType.ForwardInline || type == msgComposeType.Template || type == msgComposeType.Draft) | function ComposeMessage(type, format) //type is a nsIMsgCompType and format is a nsIMsgCompFormat{ var msgComposeType = Components.interfaces.nsIMsgCompType; var identity = null; var newsgroup = null; try { var folderTree = GetFolderTree(); var selectedFolderList = folderTree.selectedItems; if(selectedFolde... |
ComposeProcessDone: function() { | ComposeProcessDone: function(aResult) { | ComposeProcessDone: function() { dump("\n RECEIVE ComposeProcessDone\n\n"); windowLocked = false; CommandUpdate_MsgCompose(); }, |
if (aResult== Components.results.NS_OK) { contentChanged = false; msgCompose.bodyModified = false; } | ComposeProcessDone: function() { dump("\n RECEIVE ComposeProcessDone\n\n"); windowLocked = false; CommandUpdate_MsgCompose(); }, | |
{ if (args.bodyislink == "true") { if (msgCompose.composeHTML) msgCompFields.SetBody("<BR><A HREF=\"" + args.body + "\">" + unescape(args.body) + "</A><BR>"); else msgCompFields.SetBody("\n<" + args.body + ">\n"); } else msgCompFields.SetBody(args.body); } | { if (args.bodyislink == "true") { if (msgCompose.composeHTML) { var cleanBody; try { cleanBody = unescape(args.body); } catch(e) { cleanBody = args.body;} msgCompFields.SetBody("<BR><A HREF=\"" + args.body + "\">" + cleanBody + "</A><BR>"); } else msgCompFields.SetBody("\n<" + args.body + ">\n"); } else msgCompFields... | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); //dump("Get arguments\n"); var args = GetArgs(); //dump("fill in Identity menulist\n"); var identityList = document.getElementById("msgIdentity"); var identityListPopup = document.getElementById("msgIdentityPopup"); if (identityListPopup) { ... |
if (identitySelect) { identitySelect.selectedIndex = 0; | try { options = identitySelect.options var preselectindex = 0; for (i=0;i<options.length;i++) { if (options[i].value == args.preselectid) { preselectindex = i; break; } } identitySelect.selectedIndex = preselectindex; } catch (ex) { if (identitySelect && identitySelect.options && (identitySelect.options.length >0))... | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); // because of bug #14312, a default option was in the s... |
msgCompFields.SetBody('<a href="' + body + | msgCompFields.SetBody('<br><a href="' + body + | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.arg... |
msgCompFields.SetBody('<' + body + '>\n'); | msgCompFields.SetBody('\n<' + body + '>\n'); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.arg... |
var identity; | var identity = null; | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); //dump("Get arguments\n"); var args = GetArgs(); //dump("fill in Identity menulist\n"); var identityList = document.getElementById("msgIdentity"); var identityListPopup = document.getElementById("msgIdentityPopup"); if (identityListPopup) { ... |
var identities = accountManager.defaultAccount.identities; identity = identities.QueryElementAt(0, Components.interfaces.nsIMsgIdentity); | var identities = accountManager.defaultAccount.identities; if (identities.Count() >= 1) identity = identities.QueryElementAt(0, Components.interfaces.nsIMsgIdentity); else { var identities = GetIdentities(); identity = identities[0]; } | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); //dump("Get arguments\n"); var args = GetArgs(); //dump("fill in Identity menulist\n"); var identityList = document.getElementById("msgIdentity"); var identityListPopup = document.getElementById("msgIdentityPopup"); if (identityListPopup) { ... |
this.mOutliner = document.getElementById("olStyles"); this.mOlBox = this.mOutliner.outlinerBoxObject; | this.mTree = document.getElementById("olStyles"); this.mOlBox = this.mTree.treeBoxObject; | function ComputedStyleViewer(){ this.mObsMan = new ObserverManager(this); this.mURL = window.location; this.mOutliner = document.getElementById("olStyles"); this.mOlBox = this.mOutliner.outlinerBoxObject;} |
if ("name" in ex && "fileName" in ex && "lineNumber" in ex && "message" in ex) | if (ex.fileName && ex.lineNumber && ex.message) { if (!ex.name) ex.name = "Error"; | function con_ieval (e){ try { display (e.inputData, "EVAL-IN"); var rv = String(console.doEval (e.inputData)); display (rv, "EVAL-OUT"); } catch (ex) { var str = ""; if ("name" in ex && "fileName" in ex && "lineNumber" in ex && "message" in ex) ... |
str = ex.name + ": " + ex.fileName + ", line " + ex.lineNumber + ": " + ex.message; | str = getMsg (MSN_EVAL_ERROR, [ex.name, ex.fileName, ex.lineNumber, ex.message]); } | function con_ieval (e){ try { display (e.inputData, "EVAL-IN"); var rv = String(console.doEval (e.inputData)); display (rv, "EVAL-OUT"); } catch (ex) { var str = ""; if ("name" in ex && "fileName" in ex && "lineNumber" in ex && "message" in ex) ... |
str = String(ex); display (str, "ERROR"); | str = getMsg (MSN_EVAL_THREW, String(ex)); display (str, MT_ERROR); | function con_ieval (e){ try { display (e.inputData, "EVAL-IN"); var rv = String(console.doEval (e.inputData)); display (rv, "EVAL-OUT"); } catch (ex) { var str = ""; if ("name" in ex && "fileName" in ex && "lineNumber" in ex && "message" in ex) ... |
window.alert (getMsg (MSN_ERR_STARTUP, formatException(ex))); | if ("bundleList" in console) window.alert (getMsg (MSN_ERR_STARTUP, formatException(ex))); else window.alert (formatException(ex)); console.startupException = ex; | function con_load (e){ var ex; dd ("Application venkman, 'JavaScript Debugger' loaded."); try { init(); } catch (ex) { window.alert (getMsg (MSN_ERR_STARTUP, formatException(ex))); }} |
try { var data = loadURLNow (url); onComplete (data, url, Components.results.NS_OK); } catch (ex) { dd ("forced to load " + url + " async."); loadURLAsync (url, { onComplete: onComplete }); } | loadURLAsync (url, { onComplete: onComplete }); | function con_loadservicetpl (name, sections, callback){ function onComplete (data, url, status) { if (status == Components.results.NS_OK) { var tpl = parseSections (data, sections); for (var p in sections) { if (!(p in tpl)) { ... |
if (typeof console == "object" && "frames" in console) { if (confirm(MSG_QUERY_CLOSE)) { console.__exitAfterContinue__ = true; dispatch ("cont"); } return false; } return true; | dd ("onclose"); if (typeof console != "object" || "startupException" in console) return true; dd ("onclose: dispatching"); return dispatch ("hook-venkman-query-exit"); | function con_onclose (e){ if (typeof console == "object" && "frames" in console) { if (confirm(MSG_QUERY_CLOSE)) { console.__exitAfterContinue__ = true; dispatch ("cont"); } return false; } return true;} |
console.sourceView.outliner.invalidate(); | console.sourceView.tree.invalidate(); | function con_ondc (){ console.popStatus(); console.sourceView.outliner.invalidate();} |
console.status = console._statusStack.pop(); | console._statusStack.pop(); console.status = console._statusStack[console._statusStack.length - 1]; | function con_popstatus (){ console.status = console._statusStack.pop();} |
dispatch ("find-bp", {breakpointRec: row}); else dd ("not a bp record"); | dispatch ("find-bp", {breakpointRec: row}); else if (row instanceof FileRecord || row instanceof WindowRecord) dispatch ("find-url", {url: row.url}); | function con_projsel (e){ if (console.projectView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.stackView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.projectView.selectedIndex; if (rowIndex == -1 || rowIndex > conso... |
console._statusStack.push (console.status); | console._statusStack.push (msg); | function con_pushstatus (msg){ console._statusStack.push (console.status); console.status = msg;} |
if (e.originalTarget.localName == "outlinercol") | if (e.originalTarget.localName == "treecol") | function con_scptclick (e){ if (e.originalTarget.localName == "outlinercol") { /* resort by column */ var rowIndex = new Object(); var colID = new Object(); var childElt = new Object(); var obo = console.scriptsView.outliner; obo.getCellAt(e.clientX, e.clientY, ro... |
var obo = console.scriptsView.outliner; | var obo = console.scriptsView.tree; | function con_scptclick (e){ if (e.originalTarget.localName == "outlinercol") { /* resort by column */ var rowIndex = new Object(); var colID = new Object(); var childElt = new Object(); var obo = console.scriptsView.outliner; obo.getCellAt(e.clientX, e.clientY, ro... |
if (!msg) msg = console._statusStack[console._statusStack.length - 1]; | var topMsg = console._statusStack[console._statusStack.length - 1]; if (msg) { if ("_statusTimeout" in console) { clearTimeout (console._statusTimeout); delete console._statusTimeout; } if (msg != topMsg) { console._statusTimeout = setTimeout (con_setstatus, console.prefs["statusDuration"], null); } } else { msg = top... | function con_setstatus (msg){ if (!msg) msg = console._statusStack[console._statusStack.length - 1]; console.ui["status-text"].setAttribute ("label", msg);} |
if (target.localName == "outlinerchildren") | if (target.localName == "treechildren") | function con_sourceclick (e){ var target = e.originalTarget; if (target.localName == "outlinerchildren") { var row = new Object(); var colID = new Object(); var childElt = new Object(); var outliner = console.sourceView.outliner; outliner.getCellAt(e.clientX, e.cl... |
var outliner = console.sourceView.outliner; outliner.getCellAt(e.clientX, e.clientY, row, colID, childElt); | var tree = console.sourceView.tree; tree.getCellAt(e.clientX, e.clientY, row, colID, childElt); | function con_sourceclick (e){ var target = e.originalTarget; if (target.localName == "outlinerchildren") { var row = new Object(); var colID = new Object(); var childElt = new Object(); var outliner = console.sourceView.outliner; outliner.getCellAt(e.clientX, e.cl... |
if (console.sourceView.outliner.selection.getRangeCount() > 1) { var row = new Object(); var colID = new Object(); var childElt = new Object(); var outliner = console.sourceView.outliner; outliner.getCellAt(e.clientX, e.clientY, row, colID, childElt); if (row.value == -1) return; console.sourceView.selectedIndex = row... | function con_sourcesel (e){ if (console.sourceView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.stackView.selectedIndex = -1; console.projectView.selectedIndex = -1; if (console.sourceView.outliner.selection.getRangeCount() > 1) { var row = new Objec... | |
if (target.localName == "outlinercol") { console._scriptsOutlinerView.toggleColumnMode(); console._scriptsOutlinerView.setScripts(console._scripts); } else if (e.detail == 2 && target.localName == "outlinerbody") | if (target.localName == "outlinerbody") | function con_stackclick (e){ var target = e.originalTarget; if (target.localName == "outlinercol") { console._scriptsOutlinerView.toggleColumnMode(); console._scriptsOutlinerView.setScripts(console._scripts); } else if (e.detail == 2 && target.localName == "outlinerbody") { va... |
var obo = console._scriptsOutliner.outlinerBoxObject; | var obo = console._stackOutliner.outlinerBoxObject; | function con_stackclick (e){ var target = e.originalTarget; if (target.localName == "outlinercol") { console._scriptsOutlinerView.toggleColumnMode(); console._scriptsOutlinerView.setScripts(console._scripts); } else if (e.detail == 2 && target.localName == "outlinerbody") { va... |
var fileName = console._scriptsOutlinerView.scripts[row].fileName; | function con_stackclick (e){ var target = e.originalTarget; if (target.localName == "outlinercol") { console._scriptsOutlinerView.toggleColumnMode(); console._scriptsOutlinerView.setScripts(console._scripts); } else if (e.detail == 2 && target.localName == "outlinerbody") { va... | |
if (console._sources[fileName]) | if (e.detail == 2 && console.frames) | function con_stackclick (e){ var target = e.originalTarget; if (target.localName == "outlinercol") { console._scriptsOutlinerView.toggleColumnMode(); console._scriptsOutlinerView.setScripts(console._scripts); } else if (e.detail == 2 && target.localName == "outlinerbody") { va... |
focusSource(fileName, 0); } else { function cb (data, url) { focusSource(url, 0); } loadSource (fileName, cb); | setCurrentFrameByIndex(row); displayFrame (console.frames[row], row, true); focusSource (console.frames[row].script.fileName, console.frames[row].line); | function con_stackclick (e){ var target = e.originalTarget; if (target.localName == "outlinercol") { console._scriptsOutlinerView.toggleColumnMode(); console._scriptsOutlinerView.setScripts(console._scripts); } else if (e.detail == 2 && target.localName == "outlinerbody") { va... |
detachDebugger(); | function con_unload (e){ dd ("Application venkman, 'JavaScript Debugger' unloaded.");} | |
return true; | function con_unload (e){ dd ("Application venkman, 'JavaScript Debugger' unloading."); destroy(); return true;} | |
console.scriptsView.thaw(); | dispatch ("hook-window-loaded", {event: e}); | function con_winload (e){ console.scriptsView.thaw();} |
setTimeout (con_winopen, 100, win); | setTimeout (con_winopen, 0, win); | function con_winopen (win){ if ("ChromeWindow" in win && win instanceof win.ChromeWindow && (win.location.href == "about:blank" || win.location.href == "")) { //dd ("not loaded yet?"); setTimeout (con_winopen, 100, win); return; } //dd ("window opened: " + win); // + ", " + g... |
} | } if (isWindowFiltered(win)) return; | function con_winopen (win){ if ("ChromeWindow" in win && win instanceof win.ChromeWindow && (win.location.href == "about:blank" || win.location.href == "")) { //dd ("not loaded yet?"); setTimeout (con_winopen, 100, win); return; } //dd ("window opened: " + win); // + ", " + g... |
console.windows.appendChild (new WindowRecord(win, "")); console.windows.hookedWindows.push(win); | console.hookedWindows.push(win); dispatch ("hook-window-opened", {window: win}); | function con_winopen (win){ if ("ChromeWindow" in win && win instanceof win.ChromeWindow && (win.location.href == "about:blank" || win.location.href == "")) { //dd ("not loaded yet?"); setTimeout (con_winopen, 100, win); return; } //dd ("window opened: " + win); // + ", " + g... |
console.scriptsView.freeze(); | function con_winopen (win){ if ("ChromeWindow" in win && win instanceof win.ChromeWindow && (win.location.href == "about:blank" || win.location.href == "")) { //dd ("not loaded yet?"); setTimeout (con_winopen, 100, win); return; } //dd ("window opened: " + win); // + ", " + g... | |
function con_winunload (win) | function con_winunload (e) | function con_winunload (win){ //dd ("window closed: " + win); if (win.location.href != "chrome://venkman/content/venkman.xul") { var winRecord = console.windows.locateChildByWindow(win); if (!ASSERT(winRecord, "onWindowClose: Can't find window record.")) return; console.windows.... |
if (win.location.href != "chrome: { var winRecord = console.windows.locateChildByWindow(win); if (!ASSERT(winRecord, "onWindowClose: Can't find window record.")) return; console.windows.removeChildAtIndex(winRecord.childIndex); var idx = arrayIndexOf(console.windows.hookedWindows, win); if (idx != -1) arrayRemoveAt(con... | dispatch ("hook-window-unloaded", {event: e}); | function con_winunload (win){ //dd ("window closed: " + win); if (win.location.href != "chrome://venkman/content/venkman.xul") { var winRecord = console.windows.locateChildByWindow(win); if (!ASSERT(winRecord, "onWindowClose: Can't find window record.")) return; console.windows.... |
document.getElementById("moveOnSpam").disabled = true; | document.getElementById("moveOnSpam").disabled = false; | function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode0").disabled... |
document.getElementById("moveTargetMode0").disabled = !enabled || (choice == 1); | document.getElementById("moveTargetMode0").disabled = !enabled; | function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode0").disabled... |
document.getElementById("moveTargetMode1").disabled = !enabled || (choice == 0); | document.getElementById("moveTargetMode1").disabled = !enabled; | function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode0").disabled... |
var enabled; | if (!id || id == "manualMark") { enabled = document.getElementById("manualMark").checked; document.getElementById("manualMarkMode").disabled = !enabled; } | function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode").disabled ... |
if (!document.getElementById("manualMarkMode").disabled) document.getElementById("manualMarkMode0").disabled = !enabled; | function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode").disabled ... | |
if (t.localName == "outlinercol") { | if (t.localName == "treecol") { | function ConfigOnClick(event){ // we only care about button 0 (left click) events if (event.button != 0) return; var t = event.originalTarget; if (t.localName == "outlinercol") { HandleColumnClick(t.id); }} |
var mailID="" | var mailID=""; | function configureDialer(){ netscape.security.PrivilegeManager.enablePrivilege("AccountSetup"); var theFile = parent.parent.globals.getAcctSetupFilename(self); var intlFlag = parent.parent.globals.GetNameValuePair(theFile,"Mode Selection","IntlMode"); intlFlag = intlFlag.toLowerCase(); var theFolder = parent.parent.glo... |
confirmCheck : function(dlgTitle, text, checkBoxLabel, checkValue) | confirmCheck : function(dlgTitle, text, checkBoxLabel, checkObj) | confirmCheck : function(dlgTitle, text, checkBoxLabel, checkValue) { var promptServ = GetPromptService(); if (!promptServ) return; promptServ.confirmEx(window, dlgTitle, text, nsIPromptService.STD_OK_CANCEL_BUTTONS, "", "", "", checkBoxLabel, checkValue, outButtonPressed); }, |
"", "", "", checkBoxLabel, checkValue, outButtonPressed); | "", "", "", checkBoxLabel, checkObj, outButtonPressed); | confirmCheck : function(dlgTitle, text, checkBoxLabel, checkValue) { var promptServ = GetPromptService(); if (!promptServ) return; promptServ.confirmEx(window, dlgTitle, text, nsIPromptService.STD_OK_CANCEL_BUTTONS, "", "", "", checkBoxLabel, checkValue, outButtonPressed); }, |
outButtonPressed = promptServ.confirmEx(window, dlgTitle, text, nsIPromptService.STD_OK_CANCEL_BUTTONS, | promptServ.confirmEx(window, dlgTitle, text, nsIPromptService.STD_OK_CANCEL_BUTTONS, | confirmCheck : function(dlgTitle, text, checkBoxLabel, checkObj) { var promptServ = GetPromptService(); if (!promptServ) return; outButtonPressed = promptServ.confirmEx(window, dlgTitle, text, nsIPromptService.STD_OK_CANCEL_BUTTONS, "", "", "", checkBoxLabel, checkObj); }, |
var selected = profileList.selectedItems[0]; var name = selected.getAttribute("rowName"); | var selected = profileList.view.getItemAtIndex(profileList.currentIndex); var name = selected.getAttribute("profile_name"); | function ConfirmDelete(){ var deleteButton = document.getElementById("delbutton"); if( deleteButton.getAttribute("disabled") == "true" ) return; var profileList = document.getElementById( "profiles" ); var selected = profileList.selectedItems[0]; var name = selected.getAttribute("rowName"); var dialogTitle =... |
if (commonDialogService.Confirm(window, title, lString)) profile.migrateProfile( profilename, true ); else return false; | if (commonDialogService.Confirm(window, title, lString)) { profile.deleteProfile( name, false ); var profileKids = document.getElementById( "profilekids" ) profileKids.removeChild( selected ); } return; | function ConfirmDelete(){ deleteButton = document.getElementById("delbutton"); if( deleteButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; var name = selected.getAttribute("rowName"); if( selected.firstChild... |
var profileTree = document.getElementById( "profiles" ); | var profileList = document.getElementById( "profiles" ); | function ConfirmDelete(){ deleteButton = document.getElementById("delbutton"); if( deleteButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; var name = selected.getAttribute("rowName"); var dialogTitle = gPr... |
var selected = profileTree.selectedItems[0]; | var selected = profileList.selectedItems[0]; | function ConfirmDelete(){ deleteButton = document.getElementById("delbutton"); if( deleteButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; var name = selected.getAttribute("rowName"); var dialogTitle = gPr... |
if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) { | if( selected.getAttribute("rowMigrate") == "no" ) { | function ConfirmDelete(){ deleteButton = document.getElementById("delbutton"); if( deleteButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; var name = selected.getAttribute("rowName"); var dialogTitle = gPr... |
var profileKids = document.getElementById( "profilekids" ) profileKids.removeChild( selected ); | profileList.removeChild( selected ); | function ConfirmDelete(){ deleteButton = document.getElementById("delbutton"); if( deleteButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; var name = selected.getAttribute("rowName"); var dialogTitle = gPr... |
gProfileManagerBundle.getFormattedString("deleteProfile", | gProfileManagerBundle.getFormattedString("deleteProfileConfirm", | function ConfirmDelete(){ var deleteButton = document.getElementById("delbutton"); var profileList = document.getElementById( "profiles" ); var selectedItem = profileList.selectedItem; if (!selectedItem) { return false; } var selectedProfile = selectedItem.profile; var deleteFiles = false; if (selectedProfil... |
return; | return 0; | confirmEx : function(dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, checkBoxLabel, checkVal) { var promptServ = GetPromptService(); if (!promptServ) return; return promptServ.confirmEx(window, dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, ... |
rv = ps.confirmEx(parent, title, msg, buttonFlags, buttonText[0], buttonText[1], buttonText[2], checkText, checkVal); | var rv = ps.confirmEx(parent, title, msg, buttonFlags, buttonText[0], buttonText[1], buttonText[2], checkText, checkVal); | function confirmEx(msg, buttons, defaultButton, checkText, checkVal, parent, title){ /* Note that on versions before Mozilla 0.9, using 3 buttons, * the revert or dontsave button, or custom button titles will NOT work. * * The buttons should be listed in the 'accept', 'cancel' and 'ext... |
function confirmSuspiciousURL(phishingType, hrefURL) | function confirmSuspiciousURL(aPhishingType, aSuspiciousHostName) | function confirmSuspiciousURL(phishingType, hrefURL){ var brandShortName = gBrandBundle.getString("brandRealShortName"); var titleMsg = gMessengerBundle.getString("confirmPhishingTitle"); var dialogMsg; switch (phishingType) { case kPhishingWithIPAddress: case kPhishingWithMismatchedHosts: dialogMsg = g... |
switch (phishingType) | switch (aPhishingType) | function confirmSuspiciousURL(phishingType, hrefURL){ var brandShortName = gBrandBundle.getString("brandRealShortName"); var titleMsg = gMessengerBundle.getString("confirmPhishingTitle"); var dialogMsg; switch (phishingType) { case kPhishingWithIPAddress: case kPhishingWithMismatchedHosts: dialogMsg = g... |
dialogMsg = gMessengerBundle.getFormattedString("confirmPhishingUrl" + phishingType, [brandShortName, hrefURL.host], 2); | dialogMsg = gMessengerBundle.getFormattedString("confirmPhishingUrl" + aPhishingType, [brandShortName, aSuspiciousHostName], 2); | function confirmSuspiciousURL(phishingType, hrefURL){ var brandShortName = gBrandBundle.getString("brandRealShortName"); var titleMsg = gMessengerBundle.getString("confirmPhishingTitle"); var dialogMsg; switch (phishingType) { case kPhishingWithIPAddress: case kPhishingWithMismatchedHosts: dialogMsg = g... |
checkbox = document.getElementById( "constrainCheckbox" ); if ( !checkbox) return; if ( !checkbox.checked ) | var constrainChecked = (dialog.constrainCheckbox.checked); if ( !constrainChecked ) | function constrainProportions( srcID, destID ){ srcElement = document.getElementById ( srcID ); if ( !srcElement ) return; forceInteger( srcID ); // now find out if we should be constraining or not checkbox = document.getElementById( "constrainCheckbox... |
if (!actualWidth || !actualHeight || | if (!gActualWidth || !gActualHeight || | function constrainProportions( srcID, destID ){ var srcElement = document.getElementById(srcID); if (!srcElement) return; var destElement = document.getElementById(destID); if (!destElement) return; // always force an integer (whether we are constraining or not) forceInteger(srcID); if (!actualWidth || !ac... |
destElement.value = Math.round( srcElement.value * actualHeight / actualWidth ); | destElement.value = Math.round( srcElement.value * gActualHeight / gActualWidth ); | function constrainProportions( srcID, destID ){ var srcElement = document.getElementById(srcID); if (!srcElement) return; var destElement = document.getElementById(destID); if (!destElement) return; // always force an integer (whether we are constraining or not) forceInteger(srcID); if (!actualWidth || !ac... |
destElement.value = Math.round( srcElement.value * actualWidth / actualHeight ); | destElement.value = Math.round( srcElement.value * gActualWidth / gActualHeight ); | function constrainProportions( srcID, destID ){ var srcElement = document.getElementById(srcID); if (!srcElement) return; var destElement = document.getElementById(destID); if (!destElement) return; // always force an integer (whether we are constraining or not) forceInteger(srcID); if (!actualWidth || !ac... |
function constructRow(treeCellChildren) | function constructRow(children) | function constructRow(treeCellChildren){ var treeitem = document.createElement("treeitem"); var row = document.createElement("treerow"); for (var i = 0; i<treeCellChildren.length; i++) { var treecell = document.createElement("treecell"); // it's ok to have empty cells if (treeCellChildren[i]) { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.