rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var type = console.trapType; | function con_ondt (type){ var frame = setCurrentFrameByIndex(0); if (type != jsdIExecutionHook.TYPE_INTERRUPTED || console._lastStackDepth != console.frames.length) { display (formatFrame(frame)); } displaySource (frame.script.fileName, frame.line, (type == jsdIExecut... | |
enableDebugCommands() | function con_ondt (){ var frame = getCurrentFrame(); focusSource (frame.script.fileName, frame.line); console._stackOutlinerView.setStack(console.frames); console._stackOutlinerView.setCurrentFrame (getCurrentFrameIndex());} | |
{ var scriptRec = console.scripts[row.fileName]; if (!scriptRec) { dd ("breakpoint in unknown source"); return; } var sourceView = console.sourceView; sourceView.setCurrentSourceProvider (scriptRec); sourceView.scrollTo (row.line - 3, -1); if ("childData" in sourceView && sourceView.childData.isLoaded) { sourceView.ou... | dispatch ("find-bp", {breakpointRec: row}); | 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... |
row.makeCurrent(); | if (row instanceof ScriptRecord) dispatch ("find-script", {scriptRec: row}); else if (row instanceof ScriptContainerRecord) dispatch ("find-url", {url: row.fileName}); | function con_scptsel (e){ if (console.scriptsView.selectedIndex == -1) return; console.projectView.selectedIndex = -1; console.stackView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.scriptsView.selectedIndex; if (rowIndex == -1 || rowIndex > console.scrip... |
var w; var newOfs; | function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; e.line = e.target.value; console.onInputCompleteLine (e); e.target.value = ""; break; case 38: /* up */ if (console.lastHistoryRefe... | |
dispatchCommand(e.target.value); | e.line = e.target.value; console.onInputCompleteLine (e); | function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; dispatchCommand(e.target.value); e.target.value = ""; break; case 38: /* up */ if (console._lastHistoryReferenced < ... |
if (console._lastHistoryReferenced < console._inputHistory.length - 1) | if (console.lastHistoryReferenced == -2) { console.lastHistoryReferenced = -1; e.target.value = console.incompleteLine; } else if (console.lastHistoryReferenced < console.inputHistory.length - 1) { | function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; dispatchCommand(e.target.value); e.target.value = ""; break; case 38: /* up */ if (console._lastHistoryReferenced < ... |
console._inputHistory[++console._lastHistoryReferenced]; | console.inputHistory[++console.lastHistoryReferenced]; } | function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; dispatchCommand(e.target.value); e.target.value = ""; break; case 38: /* up */ if (console._lastHistoryReferenced < ... |
if (console._lastHistoryReferenced > 0) | if (console.lastHistoryReferenced > 0) | function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; dispatchCommand(e.target.value); e.target.value = ""; break; case 38: /* up */ if (console._lastHistoryReferenced < ... |
console._inputHistory[--console._lastHistoryReferenced]; | console.inputHistory[--console.lastHistoryReferenced]; else if (console.lastHistoryReferenced == -1) { e.target.value = ""; console.lastHistoryReferenced = -2; } | function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; dispatchCommand(e.target.value); e.target.value = ""; break; case 38: /* up */ if (console._lastHistoryReferenced < ... |
console._lastHistoryReferenced = -1; e.target.value = console._incompleteLine; | console.lastHistoryReferenced = -1; e.target.value = console.incompleteLine; | function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; dispatchCommand(e.target.value); e.target.value = ""; break; case 38: /* up */ if (console._lastHistoryReferenced < ... |
console._incompleteLine = e.target.value; | console.lastHistoryReferenced = -1; console.incompleteLine = e.target.value; | function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; dispatchCommand(e.target.value); e.target.value = ""; break; case 38: /* up */ if (console._lastHistoryReferenced < ... |
if (!console.sourceView.prettyPrint && colID == "breakpoint-col") | if (colID == "breakpoint-col") | 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 line = row + 1; var url = console.sourceView.childData.fileName; if (url) { if (getBreakpoint(url, line)) { clearBreakpoint (url, line); } else { setBreakpoint (url, line); } outliner.invalidateRow(row); } | if ("onMarginClick" in console.sourceView.childData) console.sourceView.childData.onMarginClick (e, row + 1); | 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... |
focusSource(url, 0); | focusSource(fileName, 0); | function con_stackclick (e){ var target = e.originalTarget; if (target.localName == "outlinercol") { console._scriptsOutlinerView.setScripts(console._scripts); } else if (e.detail == 2 && target.localName == "outlinerbody") { var row = new Object(); var colID = new Object(); ... |
{ var index = row.childIndex; if (index != getCurrentFrameIndex()) { setCurrentFrameByIndex(index); displayFrame (console.frames[index], index, false); } var scriptContainer = console.scripts[row.frame.script.fileName]; if (!scriptContainer) { dd ("frame from unknown source"); return; } var scriptRecord = scriptContain... | { dispatch ("find-frame", {frameIndex: row.childIndex}); | function con_stacksel (e){ if (console.stackView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.projectView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackVie... |
var objVal = row.value.objectValue; var creatorURL = objVal.creatorURL; if (!creatorURL) { dd ("object with no creator"); return; } if (!(creatorURL in console.scripts)) { dd ("object from unknown source ``" + creatorURL + "''"); return; } sourceView.setCurrentSourceProvider(console.scripts[creatorURL]); console.high... | dispatch ("find-creator", {jsdValue: row.value}); | function con_stacksel (e){ if (console.stackView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.projectView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackVie... |
var cmds = console._commands.listNames(partialCommand); | var cmds = console.commandManager.listNames(partialCommand, CMD_CONSOLE); | function con_tabcomplete (e){ var selStart = e.target.selectionStart; var selEnd = e.target.selectionEnd; var v = e.target.value; if (selStart != selEnd) { /* text is highlighted, just move caret to end and exit */ e.target.selectionStart = e.target.selectionEnd = ... |
if (!id || id == "purge") { | if (id == "purge") { | 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("purgeLabel").disabled = !enabled || !checked; | document.getElementById("purgeLabel").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 ... |
document.getElementById("purgeLabel").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 ... | |
document.getElementById("moveTargetMode").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("moveOnSpam").disabled = false; | document.getElementById("moveOnSpam").disabled = true; | 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... |
if (!id || id == "useServerFilter") { enabled = document.getElementById("useServerFilter").checked; document.getElementById("useServerFilterList").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 ... | |
var profileDir = parent.parent.globals.document.setupPlugin.GetCurrentProfileDirectory(); | var profileDir = parent.parent.globals.currentProfileDirectory; | 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... |
var ps = Components.classes[PROMPT_CTRID].createInstance(nsIPromptService); | var ps = Components.classes[PROMPT_CTRID].getService(nsIPromptService); | function confirm(msg, parent, title){ var PROMPT_CTRID = "@mozilla.org/embedcomp/prompt-service;1"; var nsIPromptService = Components.interfaces.nsIPromptService; var ps = Components.classes[PROMPT_CTRID].createInstance(nsIPromptService); if (!parent) parent = window; if (!title) title = MS... |
var dialogTitle = gProfileManagerBundle.getString("deletetitle"); var dialogText; | 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 lString = gProfileManagerBundle.getString("migratebeforedelete"); lString = lString.replace(/\s*<html:br\/>/g,"\n"); lString = lString.replace(/%brandShortName%/, gBrandBundle.getString("brandShortName")); var title = gProfileManagerBundle.getString("deletetitle"); if (promptService.confirm(window, title, lString))... | var brandName = gBrandBundle.getString("brandShortName"); dialogText = gProfileManagerBundle.getFormattedString("delete4xprofile", [brandName]); dialogText = dialogText.replace(/\s*<html:br\/>/g,"\n"); if (promptService.confirm(window, dialogTitle, dialogText)) { | 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 win = window.openDialog('chrome: return win; | else { var path = profile.getProfilePath(name); dialogText = gProfileManagerBundle.getFormattedString("deleteprofile", [path]); dialogText = dialogText.replace(/\s*<html:br\/>/g,"\n"); var buttonPressed = {value:0} promptService.confirmEx(window, dialogTitle, dialogText, (promptService.BUTTON_TITLE_IS_STRING * promptSe... | 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 lString = bundle.GetStringFromName("migratebeforedelete"); | var lString = gProfileManagerBundle.getString("migratebeforedelete"); | 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... |
lString = lString.replace(/%brandShortName%/, brandBundle.GetStringFromName("brandShortName")); var title = bundle.GetStringFromName("deletetitle"); | lString = lString.replace(/%brandShortName%/, gBrandBundle.getString("brandShortName")); var title = gProfileManagerBundle.getString("deletetitle"); | 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... |
lString = lString.replace(/%brandShortName%/, brandBundle.GetStringFromName("brandShortName")); | 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... | |
if (promptService.Confirm(window, title, lString)) { | if (promptService.confirm(window, title, lString)) { | 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... |
deleteButton = document.getElementById("delbutton"); | var deleteButton = document.getElementById("delbutton"); | function ConfirmDelete(){ 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 = gPr... |
bundle.GetStringFromName("noHttpsConfirmation.check"), | bundle.GetStringFromName("noHttpsConfirmation.check.text"), | function confirmInsecureLogin( uri ){ if (g_confirmedHttpLogins == null) { g_confirmedHttpLogins = {}; var confirmedHttpLogins = getPref( "calendar.wcap.confirmedHttpLogins", ""); var tuples = confirmedHttpLogins.split(','); for each ( var tuple in tuples ) { var ar ... |
var string = bundle.GetStringFromName("migrateallprofiles"); var title = bundle.GetStringFromName("migrateallprofilestitle"); | var string = gProfileManagerBundle.getString("migrateallprofiles"); var title = gProfileManagerBundle.getString("migrateallprofilestitle"); | function ConfirmMigrateAll(){ var string = bundle.GetStringFromName("migrateallprofiles"); var title = bundle.GetStringFromName("migrateallprofilestitle"); if (commonDialogService.Confirm(window, title, string)) return true; else return false;} |
if (promptService.Confirm(window, title, string)) | if (promptService.confirm(window, title, string)) | function ConfirmMigrateAll(){ var string = gProfileManagerBundle.getString("migrateallprofiles"); var title = gProfileManagerBundle.getString("migrateallprofilestitle"); if (promptService.Confirm(window, title, string)) return true; else return false;} |
return !promptService.confirmEx(window, titleMsg, dialogMsg, buttons, "", "", "", "", {}); | return promptService.confirmEx(window, titleMsg, dialogMsg, buttons, "", "", "", "", {}); | function confirmSuspiciousURL(phishingType, hrefURL, linkNodeURL){ var brandShortName = gBrandBundle.getString("brandRealShortName"); var titleMsg = gMessengerBundle.getString("confirmPhishingTitle"); var dialogMsg; switch (phishingType) { case kPhishingWithIPAddress: dialogMsg = gMessengerBundle.getFormat... |
openNewTabWith(href, true, event.shiftKey); | openNewTabWith(href, event.target.ownerDocument, event.shiftKey); | function contentAreaClick(event) { if (!event.isTrusted || event.getPreventDefault()) { return true; } var isKeyCommand = (event.type == "command"); var ceParams = hrefAndLinkNodeForClickEvent(event); if (ceParams) { var href = ceParams.href; if (isKeyCommand) { openNewTabWith(h... |
!findParentNode(event.originalTarget, "scrollbar") && | function contentAreaClick(event) { if (!event.isTrusted) { return true; } var isKeyPress = (event.type == "keypress"); var href = hrefForClickEvent(event); if (href) { if (isKeyPress) { openNewTabWith(href, true, event.shiftKey); event.preventBubble(); } else { ... | |
return isPhishingURL(linkNode, false); | return !isPhishingURL(linkNode, false); | function contentAreaClick(event) { var linkNode = linkNodeForClickEvent(event); if (linkNode && linkNode.href) { handleLinkClick(event, linkNode.href, null); // block the link click if we determine that this URL // is phishy (i.e. a potential email scam) return isPhishingURL(linkNode, ... |
linkNode = target; break; | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": linkNode = target; break; case "area": if (target.href) ... | |
if (target.href) linkNode = target; break; | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": linkNode = target; break; case "area": if (target.href) ... | |
if (target.href) | if (target.hasAttribute("href")) | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": linkNode = target; break; case "area": if (target.href) ... |
if (linkNode && !linkNode.hasAttribute("href")) linkNode = null; | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": linkNode = target; break; case "area": if (target.href) ... | |
return !isPhishingURL(linkNode, false); | if (!event.button) return !isPhishingURL(linkNode, false); | function contentAreaClick(event) { var linkNode = linkNodeForClickEvent(event); if (linkNode && linkNode.href) { handleLinkClick(event, linkNode.href, null); // block the link click if we determine that this URL // is phishy (i.e. a potential email scam) return !isPhishingURL(linkNode... |
var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } var isKeyPress = (event.type == "keypress"); switch (local_name) { case "a": case "area": case "link"... | |
switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) linkNode = target; break; case "input": if ((event.target.type == "text") && !isKeyPress && event.detail == 2 && event.button == 0 && event.target.value.length == 0) { prefillTextBox(target); } break; default: linkNode = findPare... | var href = hrefForClickEvent(event); | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } var isKeyPress = (event.type == "keypress"); switch (local_name) { case "a": case "area": case "link"... |
if ((event.target.type.toLowerCase() == "text" || event.target.type == "") | if ((event.target.type == "text") && !isKeyPress | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
handleLinkClick(event, linkNode.href, linkNode); return true; | href = linkNode.href; | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
var href; | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... | |
handleLinkClick(event, href, null); return true; | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... | |
if (pref && event.button == 1 && | if (href) { if (isKeyPress) { openNewTabWith(href, true, event.shiftKey); event.preventBubble(); } else { handleLinkClick(event, href, null); } return true; } if (pref && !isKeyPress && event.button == 1 && | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
if (isDocumentFrame(document.commandDispatcher.focusedWindow)) { | var focusedWindow = document.commandDispatcher.focusedWindow; if (isDocumentFrame(focusedWindow)) { | function contentAreaFrameFocus(){ if (isDocumentFrame(document.commandDispatcher.focusedWindow)) { gFocusedURL = focusedWindow.location.href; var saveFrameItem = document.getElementById("savepage"); saveFrameItem.removeAttribute("hidden"); }} |
if (event.shiftKey || event.ctrlKey || event.altKey || event.metaKey || event.button != 0 || !(event.target instanceof HTMLAnchorElement)) | if (event.shiftKey || event.ctrlKey || event.altKey || event.metaKey || event.button != 0) | function contentClick(event) { // is this a left click on a link? if (event.shiftKey || event.ctrlKey || event.altKey || event.metaKey || event.button != 0 || !(event.target instanceof HTMLAnchorElement)) return true; // is this an internal link? var href = event.target.href; if (href.lastIndexOf("chrome:"... |
var href = event.target.href; if (href.lastIndexOf("chrome:", 0) == 0) | if (target.href.lastIndexOf("chrome:", 0) == 0) | function contentClick(event) { // is this a left click on a link? if (event.shiftKey || event.ctrlKey || event.altKey || event.metaKey || event.button != 0 || !(event.target instanceof HTMLAnchorElement)) return true; // is this an internal link? var href = event.target.href; if (href.lastIndexOf("chrome:"... |
helpExternal.webNavigation.loadURI(href, loadFlags, null, null, null); | helpExternal.webNavigation.loadURI(target.href, loadFlags, null, null, null); | function contentClick(event) { // is this a left click on a link? if (event.shiftKey || event.ctrlKey || event.altKey || event.metaKey || event.button != 0 || !(event.target instanceof HTMLAnchorElement)) return true; // is this an internal link? var href = event.target.href; if (href.lastIndexOf("chrome:"... |
for (v = start.value; v <= end.value; v++) { todoItem = tree.taskView.getCalendarTaskAtRow( v ); var newItem = todoItem.clone().QueryInterface( Components.interfaces.calITodo ); | for (var v = start.value; v <= end.value; v++) { toDoItem = tree.taskView.getCalendarTaskAtRow( v ); var newItem = toDoItem.clone().QueryInterface( Components.interfaces.calITodo ); | function contextChangePriority( event, Priority ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var start = new Object(); var end = new Object(); var numRanges = tree.view.selection.getRangeCount(); var toDoItem; if(numRanges == 0) return; startBatchTransaction(); for (var t = 0; t ... |
doTransaction('modify', newItem, newItem.calendar, todoItem, null); | doTransaction('modify', newItem, newItem.calendar, toDoItem, null); | function contextChangePriority( event, Priority ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var start = new Object(); var end = new Object(); var numRanges = tree.view.selection.getRangeCount(); var toDoItem; if(numRanges == 0) return; startBatchTransaction(); for (var t = 0; t ... |
for (v = start.value; v <= end.value; v++) { todoItem = tree.taskView.getCalendarTaskAtRow( v ); var newItem = todoItem.clone().QueryInterface( Components.interfaces.calITodo ); | for (var v = start.value; v <= end.value; v++) { toDoItem = tree.taskView.getCalendarTaskAtRow( v ); var newItem = toDoItem.clone().QueryInterface( Components.interfaces.calITodo ); | function contextChangeProgress( event, Progress ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var start = new Object(); var end = new Object(); var numRanges = tree.view.selection.getRangeCount(); var toDoItem; if(numRanges == 0) return; startBatchTransaction(); for (var t = 0; t ... |
doTransaction('modify', newItem, newItem.calendar, todoItem, null); | doTransaction('modify', newItem, newItem.calendar, toDoItem, null); | function contextChangeProgress( event, Progress ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var start = new Object(); var end = new Object(); var numRanges = tree.view.selection.getRangeCount(); var toDoItem; if(numRanges == 0) return; startBatchTransaction(); for (var t = 0; t ... |
dump("*** WARNING! sometimes this shows results too early. \n"); dump(" something screwy here. this used to work fine.\n"); | function ContinueImport( info) { var isMail = info.importType == 'mail' ? true : false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); if (info.progressWindow != null) { var deck = document.getElement... | |
var uri = XPCU.getService("@mozilla.org/network/simple-uri;1", "nsIURI"); uri.spec = aURL; | var uri = XPCU.getService("@mozilla.org/network/io-service;1", "nsIIOService") .newURI(aURL, null, null); | convertChromeURL: function(aURL) { var uri = XPCU.getService("@mozilla.org/network/simple-uri;1", "nsIURI"); uri.spec = aURL; var reg = XPCU.getService("@mozilla.org/chrome/chrome-registry;1", "nsIChromeRegistry"); return reg.convertChromeURL(uri); }, |
break; case "locationCol": sortKey = nsMsgViewSortType.byLocation; | function ConvertColumnIDToSortType(columnID){ var sortKey; switch (columnID) { case "dateCol": sortKey = nsMsgViewSortType.byDate; break; case "senderOrRecipientCol": if (IsSpecialFolderSelected(MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE)) { sortKey = nsMsgVie... | |
sortKey = nsFileView.SORTTYPE_NAME; | sortKey = nsIFileView.sortName; | function convertColumnIDtoSortType(columnID) { var sortKey; switch (columnID) { case "FilenameColumn": sortKey = nsFileView.SORTTYPE_NAME; break; case "FileSizeColumn": sortKey = nsFileView.SORTTYPE_SIZE; break; case "LastModifiedColumn": sortKey = nsFileView.SORTTYPE_DATE; break; default: ... |
sortKey = nsFileView.SORTTYPE_SIZE; | sortKey = nsIFileView.sortSize; | function convertColumnIDtoSortType(columnID) { var sortKey; switch (columnID) { case "FilenameColumn": sortKey = nsFileView.SORTTYPE_NAME; break; case "FileSizeColumn": sortKey = nsFileView.SORTTYPE_SIZE; break; case "LastModifiedColumn": sortKey = nsFileView.SORTTYPE_DATE; break; default: ... |
sortKey = nsFileView.SORTTYPE_DATE; | sortKey = nsIFileView.sortDate; | function convertColumnIDtoSortType(columnID) { var sortKey; switch (columnID) { case "FilenameColumn": sortKey = nsFileView.SORTTYPE_NAME; break; case "FileSizeColumn": sortKey = nsFileView.SORTTYPE_SIZE; break; case "LastModifiedColumn": sortKey = nsFileView.SORTTYPE_DATE; break; default: ... |
var language = ""; var region; var is_region_set = false; | var region = ""; | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... |
if (tokens[0] === "x" || tokens[0] === "i") | if (language == "x" || language == "i") | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... |
tokens.shift(); if (tokens[0]) | if (tokens.length > 0) | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... |
if (tokens[0]) { region = tokens.join(" "); is_region_set = true; } | region = tokens.join(" "); | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... |
language = gLangBundle.getString(tokens[0]); | language = gLangBundle.getString(language); | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... |
language = tokens[0]; | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... | |
region = gRegionBundle.getString(tokens[0].toLowerCase()); tokens.shift(); if (tokens[0]) { region += " " + tokens.join(" "); } | tokens[0] = gRegionBundle.getString(tokens[0].toLowerCase()); | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... |
region = tokens.join(" "); | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... | |
is_region_set = true; | region = tokens.join(" "); | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... |
if (is_region_set) { | if (region) { | function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word a... |
if (!rel && rev && LinkElementDecorator.findWord("made", rev.toLowerCase())) | if (!rel && rev && /\bmade\b/i.test(rev)) | LinkElementDecorator.convertRevMade =function(rel, rev) { if (!rel && rev && LinkElementDecorator.findWord("made", rev.toLowerCase())) return rev; else return rel;} |
res = color.match( /rgb\((\d*),(\d*),(\d*)\)/ ); r = Number(RegExp.$1).toString(16); | var res = color.match( /rgb\((\d*),(\d*),(\d*)\)/ ); var r = Number(RegExp.$1).toString(16); | function ConvertRGBColorIntoHEXColor(color){ if (color.search( /rgb.*/ ) != -1) { res = color.match( /rgb\((\d*),(\d*),(\d*)\)/ ); r = Number(RegExp.$1).toString(16); if (r.length == 1) r = "0"+r; v = Number(RegExp.$2).toString(16); if (v.length == 1) v = "0"+v; b = Number(RegExp.$3).toString(16); ... |
v = Number(RegExp.$2).toString(16); if (v.length == 1) v = "0"+v; b = Number(RegExp.$3).toString(16); | var g = Number(RegExp.$2).toString(16); if (g.length == 1) g = "0"+v; var b = Number(RegExp.$3).toString(16); | function ConvertRGBColorIntoHEXColor(color){ if (color.search( /rgb.*/ ) != -1) { res = color.match( /rgb\((\d*),(\d*),(\d*)\)/ ); r = Number(RegExp.$1).toString(16); if (r.length == 1) r = "0"+r; v = Number(RegExp.$2).toString(16); if (v.length == 1) v = "0"+v; b = Number(RegExp.$3).toString(16); ... |
return "#"+r+v+b; | return "#"+r+g+b; | function ConvertRGBColorIntoHEXColor(color){ if (color.search( /rgb.*/ ) != -1) { res = color.match( /rgb\((\d*),(\d*),(\d*)\)/ ); r = Number(RegExp.$1).toString(16); if (r.length == 1) r = "0"+r; v = Number(RegExp.$2).toString(16); if (v.length == 1) v = "0"+v; b = Number(RegExp.$3).toString(16); ... |
break; case nsMsgViewSortType.byLocation: columnID = "locationCol"; | function ConvertSortTypeToColumnID(sortKey){ var columnID; // hack to turn this into an integer, if it was a string // it would be a string if it came from localStore.rdf sortKey = sortKey - 0; switch (sortKey) { case nsMsgViewSortType.byDate: columnID = "dateCol"; break; case nsMsgViewSortType.byA... | |
return string.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_\.\-\:]+/g,''); | return string.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_\.\-\:\u0080-\uFFFF]+/g,''); | function ConvertToCDATAString(string){ return string.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_\.\-\:]+/g,'');} |
function Cookie(number,name,value,isDomain,host,rawHost,path,isSecure,expires, | function Cookie(id,name,value,isDomain,host,rawHost,path,isSecure,expires, | function Cookie(number,name,value,isDomain,host,rawHost,path,isSecure,expires, status,policy) { this.number = number; this.name = name; this.value = value; this.isDomain = isDomain; this.host = host; this.rawHost = rawHost; this.path = path; this.isSecure = isSecure; this.expires = GetExpiresStr... |
this.number = number; | this.id = id; | function Cookie(number,name,value,isDomain,host,rawHost,path,isSecure,expires, status,policy) { this.number = number; this.name = name; this.value = value; this.isDomain = isDomain; this.host = host; this.rawHost = rawHost; this.path = path; this.isSecure = isSecure; this.expires = GetExpiresStr... |
this.number = ( number ) ? number : null; this.name = ( name ) ? name : null; this.value = ( value ) ? value : null; this.domaintype = ( domaintype ) ? domaintype : null; this.domain = ( domain ) ? domain : null; this.path = ( path ) ? path : null; this.secure = ( secure ) ? s... | this.number = (arguments.length) ? number : null; this.name = (arguments.length) ? name : null; this.value = (arguments.length) ? value : null; this.domaintype = (arguments.length) ? domaintype : null; this.domain = (arguments.length) ? domain : null; this.path = ... | function Cookie(number,name,value,domaintype,domain,path,secure,expire){ this.number = ( number ) ? number : null; this.name = ( name ) ? name : null; this.value = ( value ) ? value : null; this.domaintype = ( domaintype ) ? domaintype : null; this.domain = ( domain ) ? domain : null; ... |
params.SetInt(nsICookieAcceptDialog.REMEMBER_DECISION, document.getElementById('persistDomainAcceptance').checked); | function cookieAccept(){ // say that the cookie was accepted params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 1); window.close();} | |
if (idx >= cookies.length) { dump("Outliner and viewer state are out of sync! " + "Help us figure out the problem in bug 119812"); return; } | function CookieSelected() { var selections = GetOutlinerSelections(cookiesOutliner); if (selections.length) { document.getElementById("removeCookie").removeAttribute("disabled"); } else { ClearCookieProperties(); return true; } var idx = selections[0]; var props = [ {id: "ifl_name", value: cookies... | |
if(!source || !dest){ dump('not enough args . . . \n\n'); return; | if(!source || !dest) { dump('not enough args . . . \n\n'); return false; | copy : function (source, dest) { if(!source || !dest){ dump('not enough args . . . \n\n'); return; } if(!this.exists(source)){ dump("Sorry, source file "+source+" doesn't exist\n\n"); return; } var fileInst = new FilePath(source); var dir = new FilePath(dest); var copyName = fileInst.lea... |
if(!this.exists(source)){ dump("Sorry, source file "+source+" doesn't exist\n\n"); return; | if(!this.exists(source)) { dump("Sorry, source file "+source+" doesn't exist\n\n"); return false; | copy : function (source, dest) { if(!source || !dest){ dump('not enough args . . . \n\n'); return; } if(!this.exists(source)){ dump("Sorry, source file "+source+" doesn't exist\n\n"); return; } var fileInst = new FilePath(source); var dir = new FilePath(dest); var copyName = fileInst.lea... |
if(fileInst.isDirectory()){ dump("Sorry, you can't copy a directory yet\n\n"); return | if(fileInst.isDirectory()) { dump("Sorry, you can't copy a directory yet\n\n"); return false; | copy : function (source, dest) { if(!source || !dest){ dump('not enough args . . . \n\n'); return; } if(!this.exists(source)){ dump("Sorry, source file "+source+" doesn't exist\n\n"); return; } var fileInst = new FilePath(source); var dir = new FilePath(dest); var copyName = fileInst.lea... |
if(!this.exists(dest) || !dir.isDirectory()){ copyName = dir.leafName; dump(dir.path.replace(copyName,'')+'\n\n'); var dir = new FilePath(dir.path.replace(copyName,'')); if(!this.exists(dir.path)){ dump("Sorry, dest directory "+dir.path+" doesn't exist\n\n"); return; | if(!this.exists(dest) || !dir.isDirectory()) { copyName = dir.leafName; dump(dir.path.replace(copyName,'')+'\n\n'); dir = new FilePath(dir.path.replace(copyName,'')); if(!this.exists(dir.path)) { dump("Sorry, dest directory "+dir.path+" doesn't exist\n\n"); return false; | copy : function (source, dest) { if(!source || !dest){ dump('not enough args . . . \n\n'); return; } if(!this.exists(source)){ dump("Sorry, source file "+source+" doesn't exist\n\n"); return; } var fileInst = new FilePath(source); var dir = new FilePath(dest); var copyName = fileInst.lea... |
if(!dir.isDirectory()){ dump("Sorry, destination dir "+dir.path+" is not a valid dir path\n\n"); return; | if(!dir.isDirectory()) { dump("Sorry, destination dir "+dir.path+" is not a valid dir path\n\n"); return false; | copy : function (source, dest) { if(!source || !dest){ dump('not enough args . . . \n\n'); return; } if(!this.exists(source)){ dump("Sorry, source file "+source+" doesn't exist\n\n"); return; } var fileInst = new FilePath(source); var dir = new FilePath(dest); var copyName = fileInst.lea... |
if(this.exists(this.append(dir.path, copyName))){ dump('Sorry destination file '+this.append(dir.path, copyName)+' already exists . . .\n\n'); return; | if(this.exists(this.append(dir.path, copyName))) { dump('Sorry destination file '+this.append(dir.path, copyName)+' already exists . . .\n\n'); return false; | copy : function (source, dest) { if(!source || !dest){ dump('not enough args . . . \n\n'); return; } if(!this.exists(source)){ dump("Sorry, source file "+source+" doesn't exist\n\n"); return; } var fileInst = new FilePath(source); var dir = new FilePath(dest); var copyName = fileInst.lea... |
return true; | copy : function (source, dest) { if(!source || !dest){ dump('not enough args . . . \n\n'); return; } if(!this.exists(source)){ dump("Sorry, source file "+source+" doesn't exist\n\n"); return; } var fileInst = new FilePath(source); var dir = new FilePath(dest); var copyName = fileInst.lea... | |
var url = BookmarksUtils.getProperty(aSelection.item[i], NC_NS+"URL" ); var name = BookmarksUtils.getProperty(aSelection.item[i], NC_NS+"Name"); | var url = BookmarksUtils.getProperty(aSelection.item[i], gNC_NS+"URL" ); var name = BookmarksUtils.getProperty(aSelection.item[i], gNC_NS+"Name"); | copyBookmark: function (aSelection) { const kSuppArrayContractID = "@mozilla.org/supports-array;1"; const kSuppArrayIID = Components.interfaces.nsISupportsArray; var itemArray = Components.classes[kSuppArrayContractID].createInstance(kSuppArrayIID); const kSuppWStringContractID = "@mozilla.org/supports-s... |
xferable.setTransferData("moz/bookmarkclipboarditem", bmstring, sBookmarkItem.length*2) | xferable.setTransferData("moz/bookmarkclipboarditem", bmstring, sBookmarkItem.length*2); | copyBookmark: function (aSelection) { const kSuppArrayContractID = "@mozilla.org/supports-array;1"; const kSuppArrayIID = Components.interfaces.nsISupportsArray; var itemArray = Components.classes[kSuppArrayContractID].createInstance(kSuppArrayIID); const kSuppWStringContractID = "@mozilla.org/supports-s... |
xferable.setTransferData("text/html", htmlstring, sTextHTML.length*2) | xferable.setTransferData("text/html", htmlstring, sTextHTML.length*2); | copyBookmark: function (aSelection) { const kSuppArrayContractID = "@mozilla.org/supports-array;1"; const kSuppArrayIID = Components.interfaces.nsISupportsArray; var itemArray = Components.classes[kSuppArrayContractID].createInstance(kSuppArrayIID); const kSuppWStringContractID = "@mozilla.org/supports-s... |
xferable.setTransferData("text/unicode", unicodestring, sTextUnicode.length*2) | xferable.setTransferData("text/unicode", unicodestring, sTextUnicode.length*2); | copyBookmark: function (aSelection) { const kSuppArrayContractID = "@mozilla.org/supports-array;1"; const kSuppArrayIID = Components.interfaces.nsISupportsArray; var itemArray = Components.classes[kSuppArrayContractID].createInstance(kSuppArrayIID); const kSuppWStringContractID = "@mozilla.org/supports-s... |
var url = BookmarksUtils.getProperty(aSelection.item[i], gNC_NS+"URL" ); | copyBookmark: function (aSelection) { const kSuppArrayContractID = "@mozilla.org/supports-array;1"; const kSuppArrayIID = Components.interfaces.nsISupportsArray; var itemArray = Components.classes[kSuppArrayContractID].createInstance(kSuppArrayIID); const kSuppWStringContractID = "@mozilla.org/supports-s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.