rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
function con_ondt ()
function con_ondt (type)
function con_ondt (){ var frame = getCurrentFrame(); var url = frame.script.fileName; var sourceRec = console.scripts[url]; enableDebugCommands()}
var frame = getCurrentFrame(); var url = frame.script.fileName; var sourceRec = console.scripts[url];
var frame = setCurrentFrameByIndex(0); if (type != jsdIExecutionHook.TYPE_INTERRUPTED || console._lastStackDepth != console.frames.length) { display (formatFrame(frame)); } displaySource (frame.script.fileName, frame.line, (type == jsdIExecutionHook.TYPE_INTERRUPTED) ? 0 : 2); console._lastStackDepth = console.frame...
function con_ondt (){ var frame = getCurrentFrame(); var url = frame.script.fileName; var sourceRec = console.scripts[url]; enableDebugCommands()}
focusSource (frame.script.fileName, frame.line);
var url = frame.script.fileName; if (!console._sources[url]) { function loaded () { focusSource (url, frame.line); } loadSource (url, loaded); } else focusSource (url, frame.line);
function con_ondt (){ var frame = getCurrentFrame(); focusSource (frame.script.fileName, frame.line); console._stackOutlinerView.setStack(console.frames); console._stackOutlinerView.setCurrentFrame (getCurrentFrameIndex()); enableDebugCommands()}
if (rowIndex == -1 || rowIndex > console.projectView.visualFootprint)
if (rowIndex == -1 || rowIndex > console.projectView.rowCount)
function con_projsel (e){ var rowIndex = console.projectView.selectedIndex; if (rowIndex == -1 || rowIndex > console.projectView.visualFootprint) return; var row = console.projectView.childData.locateChildByVisualRow(rowIndex); if (!row) { ASSERT (0, "bogus row index " + rowIndex...
dd ("rowindex is " + rowIndex); if (rowIndex == -1 || rowIndex > console.stackView.childData.length)
if (rowIndex == -1 || rowIndex > console.scriptsView.rowCount)
function con_scptsel (e){ var rowIndex = console.scriptsView.selectedIndex; dd ("rowindex is " + rowIndex); if (rowIndex == -1 || rowIndex > console.stackView.childData.length) return; var row = console.scriptsView.childData.locateChildByVisualRow(rowIndex); ASSERT (row, "bogus row"); ...
case 9: e.preventDefault(); console.onTabCompleteRequest(e); break;
function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; ev = new Object(); ev.keyEvent = e; ev.line = e.target.value; console.onInputCompleteLine (ev); e.target.value = ""; ...
if (target.localName == "outlinerbody")
if (target.localName == "outlinerchildren")
function con_sourceclick (e){ var target = e.originalTarget; if (target.localName == "outlinerbody") { var row = new Object(); var colID = new Object(); var childElt = new Object(); var outliner = console.sourceView.outliner; outliner.getCellAt(e.clientX, e.client...
if (rowIndex == -1 || rowIndex > console.stackView.visualFootprint)
if (rowIndex == -1 || rowIndex > console.stackView.rowCount)
function con_stacksel (e){ var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackView.visualFootprint) return; var row = console.stackView.childData.locateChildByVisualRow(rowIndex); if (!row) { ASSERT (0, "bogus row index " + rowIndex); ...
source = console.scripts[objVal.creatorURL]; if (!source)
if (!(objVal.creatorURL in console.scripts))
function con_stacksel (e){ var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackView.visualFootprint) return; var row = console.stackView.childData.locateChildByVisualRow(rowIndex); if (!row) { ASSERT (0, "bogus row index " + rowIndex); ...
sourceView.displaySource(source);
sourceView.displaySource(console.scripts[objVal.creatorURL]);
function con_stacksel (e){ var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackView.visualFootprint) return; var row = console.stackView.childData.locateChildByVisualRow(rowIndex); if (!row) { ASSERT (0, "bogus row index " + rowIndex); ...
document.getElementById("moveTargetMode1").disabled = !enabled || (choice == 0);
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 ( plugin.NeedReboot() == true ) { globals.forceReboot( "1step.htm" ); return; } if ( plugin.DialerConnect() == false ) { plugin.DialerHangup(); window.location.replace( "error2.htm" ); return; }
function configureDialer( configFolder, acctSetupIni, regFile ){// globals.debug( "Configuring dialer" ); var intlFlag = globals.GetNameValuePair( acctSetupIni, "Mode Selection", "IntlMode" ); intlFlag = intlFlag.toLowerCase(); // * determine name of scripting file var scriptEnabledFlag = "FALSE"; var scriptFile = ...
mysqlin = mysqlin.replace("@MYSQL_TCP_PORT@", GetValue(configureIn, "MYSQL_TCP_PORT_DEFAULT"));
if (server_port == '') { server_port = GetValue(configureIn, "MYSQL_TCP_PORT_DEFAULT"); } mysqlin = mysqlin.replace("@MYSQL_TCP_PORT@", server_port);
function ConfigureMySqlVersion(){ // read in the Unix configure.in file var configureInTS = fso.OpenTextFile("..\\configure.in", ForReading); var configureIn = configureInTS.ReadAll(); configureInTS.Close(); // read in the mysql_version.h.in file var mysqlTS = fso.OpenTextFile("..\\include\\mysql_...
mysqlin = mysqlin.replace("@MYSQL_SERVER_SUFFIX@", ''); mysqlin = mysqlin.replace("@COMPILATION_COMMENT@", 'Source distribution');
mysqlin = mysqlin.replace("@MYSQL_SERVER_SUFFIX@", server_suffix); mysqlin = mysqlin.replace("@COMPILATION_COMMENT@", server_comment);
function ConfigureMySqlVersion(){ // read in the Unix configure.in file var configureInTS = fso.OpenTextFile("..\\configure.in", ForReading); var configureIn = configureInTS.ReadAll(); configureInTS.Close(); // read in the mysql_version.h.in file var mysqlTS = fso.OpenTextFile("..\\include\\mysql_...
promptServ.confirmEx(window, dlgTitle, text, nsIPromptService.STD_OK_CANCEL_BUTTONS, "", "", "", checkBoxLabel, checkObj, outButtonPressed);
outButtonPressed = promptServ.confirmEx(window, dlgTitle, text, nsIPromptService.STD_OK_CANCEL_BUTTONS, "", "", "", checkBoxLabel, checkObj);
confirmCheck : function(dlgTitle, text, checkBoxLabel, checkObj) { var promptServ = GetPromptService(); if (!promptServ) return; promptServ.confirmEx(window, dlgTitle, text, nsIPromptService.STD_OK_CANCEL_BUTTONS, "", "", "", checkBoxLabel, checkObj, outButtonPressed); },
(promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_1) + (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_2),
(promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) + (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_2),
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...
null, null, {value:0}, buttonPressed); if (buttonPressed.value != 2) DeleteProfile(buttonPressed.value == 1);
null, {value:0}, buttonPressed); if (buttonPressed.value != 1) DeleteProfile(buttonPressed.value == 2);
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 (commonDialogService.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...
var buttonPressed = {value:0} promptService.confirmEx(window, dialogTitle, dialogText,
var buttonPressed = promptService.confirmEx(window, dialogTitle, dialogText,
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...
null, {value:0}, buttonPressed); if (buttonPressed.value != 1) DeleteProfile(buttonPressed.value == 2);
null, {value:0}); if (buttonPressed != 1) DeleteProfile(buttonPressed == 2);
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...
confirmEx : function(dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, checkBoxLabel, checkVal, outBtnPressed)
confirmEx : function(dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, checkBoxLabel, checkVal)
confirmEx : function(dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, checkBoxLabel, checkVal, outBtnPressed) { var promptServ = GetPromptService(); if (!promptServ) return; promptServ.confirmEx(window, dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, ...
promptServ.confirmEx(window, dlgTitle, text, btnFlags,
return promptServ.confirmEx(window, dlgTitle, text, btnFlags,
confirmEx : function(dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, checkBoxLabel, checkVal, outBtnPressed) { var promptServ = GetPromptService(); if (!promptServ) return; promptServ.confirmEx(window, dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, ...
checkBoxLabel, checkVal, outBtnPressed);
checkBoxLabel, checkVal);
confirmEx : function(dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, checkBoxLabel, checkVal, outBtnPressed) { var promptServ = GetPromptService(); if (!promptServ) return; promptServ.confirmEx(window, dlgTitle, text, btnFlags, btn0Title, btn1Title, btn2Title, ...
if (commonDialogService.Confirm(window, title, string))
if (promptService.Confirm(window, title, string))
function ConfirmMigrateAll(){ var string = gProfileManagerBundle.getString("migrateallprofiles"); var title = gProfileManagerBundle.getString("migrateallprofilestitle"); if (commonDialogService.Confirm(window, title, string)) return true; else return false;}
var brandShortName = gBrandBundle.getString("brandRealShortName");
var brandShortName = gBrandBundle.getString("brandShortName");
function confirmSuspiciousURL(aPhishingType, aSuspiciousHostName){ var brandShortName = gBrandBundle.getString("brandRealShortName"); var titleMsg = gMessengerBundle.getString("confirmPhishingTitle"); var dialogMsg; switch (aPhishingType) { case kPhishingWithIPAddress: case kPhishingWithMismatchedHosts: ...
function confirmSuspiciousURL(phishingType, hrefURL, linkNodeURL)
function confirmSuspiciousURL(phishingType, hrefURL)
function confirmSuspiciousURL(phishingType, hrefURL, linkNodeURL){ var brandShortName = gBrandBundle.getString("brandRealShortName"); var titleMsg = gMessengerBundle.getString("confirmPhishingTitle"); var dialogMsg; switch (phishingType) { case kPhishingWithIPAddress: dialogMsg = gMessengerBundle.getFormat...
break; case kPhishingWithMismatchedHosts: dialogMsg = gMessengerBundle.getFormattedString("confirmPhishingUrl" + phishingType, [brandShortName, hrefURL.host, linkNodeURL.host], 3);
function confirmSuspiciousURL(phishingType, hrefURL, linkNodeURL){ var brandShortName = gBrandBundle.getString("brandRealShortName"); var titleMsg = gMessengerBundle.getString("confirmPhishingTitle"); var dialogMsg; switch (phishingType) { case kPhishingWithIPAddress: dialogMsg = gMessengerBundle.getFormat...
var commonDialogService = nsJSComponentManager.getService("@mozilla.org/appshell/commonDialogs;1", "nsICommonDialogs"); return commonDialogService.Confirm(window, titleMsg, dialogMsg);
var promptService = nsJSComponentManager.getService("@mozilla.org/embedcomp/prompt-service;1", "nsIPromptService"); return promptService.Confirm(window, titleMsg, dialogMsg);
function ConfirmUnsubscribe(folder){ if (!gMessengerBundle) gMessengerBundle = document.getElementById("bundle_messenger"); var titleMsg = gMessengerBundle.getString("confirmUnsubscribeTitle"); var dialogMsg = gMessengerBundle.getFormattedString("confirmUnsubscribeText", ...
var result = {value:0};
function ConfirmWithTitle(title, message, okButtonText, cancelButtonText){ var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); if (promptService) { var result = {value:0}; var okFl...
promptService.confirmEx(window, title, message,
return promptService.confirmEx(window, title, message,
function ConfirmWithTitle(title, message, okButtonText, cancelButtonText){ var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); if (promptService) { var result = {value:0}; var okFl...
okButtonText, cancelButtonText, null, null, {value:0}, result); return (result.value == 0);
okButtonText, cancelButtonText, null, null, {value:0}) == 0;
function ConfirmWithTitle(title, message, okButtonText, cancelButtonText){ var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); if (promptService) { var result = {value:0}; var okFl...
var child = treeCellChildren[i]; dump("Appended a " + child.localName + "\n");
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[...
treeCellChildren[i].setAttribute("flex", "1"); treecell.appendChild(treeCellChildren[i]);
if (treeCellChildren[i]) { treeCellChildren[i].setAttribute("flex", "1"); treecell.appendChild(treeCellChildren[i]); }
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"); treecell.setAttribute("allowevents", "true"); treeCellChil...
return row;
treeitem.appendChild(row); return treeitem;
function constructRow(treeCellChildren){ var row = document.createElement("treerow"); for (var i = 0; i<treeCellChildren.length; i++) { var treecell = document.createElement("treecell"); treecell.appendChild(treeCellChildren[i]); row.appendChild(treecell); } return row;}
return false;
return true;
function contentAreaClick(event) { var target = event.originalTarget; var linkNode; switch (target.localName.toLowerCase()) { case "a": linkNode = event.target; break; case "area": if (event.target.href) linkNode = event.target; break; default: li...
var href = hrefForClickEvent(event);
var ceParams = {event: event, href: "", linkNode: null}; hrefAndLinkNodeForClickEvent(ceParams); var href = ceParams.href;
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 { ...
if ("gMessengerBundle" in this && !event.button) return !isPhishingURL(ceParams.linkNode, false);
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 { ...
!event.getPreventDefault() &&
function contentAreaClick(event) { var isKeyPress = (event.type == "keypress"); var href = hrefForClickEvent(event); if (href) { if (isKeyPress) { openNewTabWith(href, true, event.shiftKey); event.preventBubble(); } else { handleLinkClick(event, href, null); } ...
prefillTextField(target);
prefillTextBox(target);
function contentAreaClick(event) { var target = event.target; var linkNode; switch (target.localName.toLowerCase()) { case "a": linkNode = target; break; case "area": if (target.href) linkNode = target; break; case "input": if ((event.target.type....
var ceParams = {event: event, href: "", linkNode: null}; hrefAndLinkNodeForClickEvent(ceParams); var href = ceParams.href; if (href) {
var ceParams = hrefAndLinkNodeForClickEvent(event); if (ceParams) { var href = ceParams.href;
function contentAreaClick(event) { if (!event.isTrusted) { return true; } var isKeyPress = (event.type == "keypress"); var ceParams = {event: event, href: "", linkNode: null}; hrefAndLinkNodeForClickEvent(ceParams); var href = ceParams.href; if (href) { if (isKeyPress) { openNe...
handleLinkClick(event, href, null);
handleLinkClick(event, href, ceParams.linkNode);
function contentAreaClick(event) { if (!event.isTrusted) { return true; } var isKeyPress = (event.type == "keypress"); var ceParams = {event: event, href: "", linkNode: null}; hrefAndLinkNodeForClickEvent(ceParams); var href = ceParams.href; if (href) { if (isKeyPress) { openNe...
return !isPhishingURL(ceParams.linkNode, false);
return !isPhishingURL(ceParams.linkNode, false, href);
function contentAreaClick(event) { if (!event.isTrusted) { return true; } var isKeyPress = (event.type == "keypress"); var ceParams = {event: event, href: "", linkNode: null}; hrefAndLinkNodeForClickEvent(ceParams); var href = ceParams.href; if (href) { if (isKeyPress) { openNe...
if (fieldNormalClicks && !event.ctrlKey && !event.shiftKey &&
if (fieldNormalClicks && event.button == 0 && !event.ctrlKey && !event.shiftKey &&
function contentAreaClick(event, fieldNormalClicks) { 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 target = linkNode.getAttribute("target");
target = linkNode.getAttribute("target");
function contentAreaClick(event, fieldNormalClicks) { 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);
handleLinkClick(event, linkNode.href, linkNode);
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);
handleLinkClick(event, href, 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": case "area": case "link": if (target.hasAttribute("href")) ...
if (isDocumentFrame(focusedWindow)) { gFocusedURL = focusedWindow.location.href;
if (isContentFrame(focusedWindow)) { gFocusedURL = Components.lookupMethod(focusedWindow, 'location').call(focusedWindow).href;
function contentAreaFrameFocus(){ var focusedWindow = document.commandDispatcher.focusedWindow; if (isDocumentFrame(focusedWindow)) { gFocusedURL = focusedWindow.location.href; gFocusedDocument = focusedWindow.document; }}
function contextChangePriority( Priority, event )
function contextChangePriority( event, Priority )
function contextChangePriority( Priority, event ){ if (tree.treeBoxObject.selection.count > 0) { var treeitem = tree.treeBoxObject.view.getItemAtIndex( tree.currentIndex ); if(treeitem) { var todoId = treeitem.getAttribute("toDoID"); var ToDoItem = gICalLib.fetchToDo( todoId ); ...
var ToDoItem = gICalLib.fetchToDo( todoId );
var ToDoItem = gICalLib.fetchTodo( todoId );
function contextChangePriority( Priority, event ){ if (tree.treeBoxObject.selection.count > 0) { var treeitem = tree.treeBoxObject.view.getItemAtIndex( tree.currentIndex ); if(treeitem) { var todoId = treeitem.getAttribute("toDoID"); var ToDoItem = gICalLib.fetchToDo( todoId ); ...
var isMail = false;
var isMail = info.importType == 'mail' ? true : false; var clear = true;
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true;
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
info.progressWindow.close();
var deck = document.getElementById("stateDeck"); deck.setAttribute("index", "3");
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
if (isMail == true) ShowMailComplete( false); else ShowAddressComplete( false);
ShowImportResults(false, isMail ? 'Mail' : 'Address');
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
info.progressWindow.SetProgress( pcnt); if (isMail == true) {
SetProgress( pcnt); if (isMail) {
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
if (mailName != null) {
if (mailName) {
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
if (mailName != null) info.progressWindow.SetStatusText( mailName.data);
if (mailName) SetStatusText( mailName.data);
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
if (info.progressWindow != null) { info.progressWindow.close();
if (info.progressWindow) { var deck = document.getElementById("stateDeck"); deck.setAttribute("index", "3");
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
if (isMail == true) ShowMailComplete( true); else ShowAddressComplete( true);
ShowImportResults(true, isMail ? 'Mail' : 'Address');
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
else { dump( "*** ERROR: info.importInterface is null\n"); } if (clear == true) {
if (clear) {
function ContinueImport( info) { var isMail = false; /* dump( "*** ContinueImport\n"); */ if (info.importType == 'mail') isMail = true; else isMail = false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); ...
case "attachmentCol": sortKey = nsMsgViewSortType.byAttachments; break;
function ConvertColumnIDToSortType(columnID){ var sortKey; switch (columnID) { case "dateCol": sortKey = nsMsgViewSortType.byDate; break; case "senderCol": sortKey = nsMsgViewSortType.byAuthor; break; case "recipientCol": sortKey = nsMsgViewSortType.byRecipient; break; case "su...
var result = Components.classes["component:
var result = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);
function ConvertDOMListToResourceArray(nodeList){ var result = Components.classes["component://netscape/supports-array"].createInstance(Components.interfaces.nsISupportsArray); for (var i=0; i<nodeList.length; i++) { result.AppendElement(nodeList[i].resource); } return result;}
language = gLangBundle.getString(language);
language = gLangBundle.getString(language.toLowerCase());
function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var region = ""; var tokens = abbr.split("-"); var language = tokens.shift(); if (language == "x" || language == "i") { // x and i prefixes mean unofficial ones. So we proper-case the next // word and leave the rest...
result = tokens[0].substr(0, 1).toUpperCase() + tokens[0].substr(1);
language = tokens[0].substr(0, 1).toUpperCase() + tokens[0].substr(1);
function convertLanguageCode(abbr){ if (!abbr) return ""; var result; 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 and leave the rest. tokens.shift(); if (tokens[0]) ...
result += " (" + tokens.join(" ") + ")";
region = tokens.join(" "); is_region_set = true;
function convertLanguageCode(abbr){ if (!abbr) return ""; var result; 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 and leave the rest. tokens.shift(); if (tokens[0]) ...
result = gLangBundle.getString(tokens[0]);
language = gLangBundle.getString(tokens[0]);
function convertLanguageCode(abbr){ if (!abbr) return ""; var result; 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 and leave the rest. tokens.shift(); if (tokens[0]) ...
result = tokens[0];
language = tokens[0];
function convertLanguageCode(abbr){ if (!abbr) return ""; var result; 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 and leave the rest. tokens.shift(); if (tokens[0]) ...
tokens[0] = gRegionBundle.getString(tokens[0].toLowerCase());
region = gRegionBundle.getString(tokens[0].toLowerCase()); tokens.shift(); if (tokens[0]) { region += " " + tokens.join(" "); }
function convertLanguageCode(abbr){ if (!abbr) return ""; var result; 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 and leave the rest. tokens.shift(); if (tokens[0]) ...
result += " (" + tokens.join(" ") + ")";
is_region_set = true;
function convertLanguageCode(abbr){ if (!abbr) return ""; var result; 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 and leave the rest. tokens.shift(); if (tokens[0]) ...
if (is_region_set) { result = gMetadataBundle.getFormattedString("languageRegionFormat", [language, region]); } else { result = language; }
function convertLanguageCode(abbr){ if (!abbr) return ""; var result; 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 and leave the rest. tokens.shift(); if (tokens[0]) ...
resourceArray = Components.classes["component:
resourceArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);
function ConvertMessagesToResourceArray(messages, resourceArray){ if(!resourceArray) resourceArray = Components.classes["component://netscape/supports-array"].createInstance(Components.interfaces.nsISupportsArray); for (var i=0; i<messages.length; i++) { var messageResource = messages[i].QueryInterface(Compone...
case nsMsgViewSortType.byAttachments: columnID = "attachmentCol"; break;
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...
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 = ...
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...
function Cookie(number,name,value,domaintype,domain,path,secure,expire){ this.number = (arguments.length) ? number : null; this.name = (arguments.length) ? name : null; this.value = (arguments.length) ? value : null; this.domaintype = (arguments.length) ? domaintype : null; th...
var nodes = this._activeView.getCopyableSelection();
var nodes = this._view.getCopyableSelection();
copy: function() { var nodes = this._activeView.getCopyableSelection(); var xferable = Cc["@mozilla.org/widget/transferable;1"]. createInstance(Ci.nsITransferable); var foundFolder = false, foundLink = false; var pcString = psString = placeString = mozURLString = htmlString = unicodeStr...
var self = this;
copy: function() { var nodes = this._activeView.getCopyableSelection(); var xferable = Cc["@mozilla.org/widget/transferable;1"]. createInstance(Ci.nsITransferable); var foundFolder = false, foundLink = false; var pcString = psString = placeString = mozURLString = htmlString = unicodeStr...
return self.wrapNode(node, type) + suffix;
return PlacesUtils.wrapNode(node, type) + suffix;
copy: function() { var nodes = this._activeView.getCopyableSelection(); var xferable = Cc["@mozilla.org/widget/transferable;1"]. createInstance(Ci.nsITransferable); var foundFolder = false, foundLink = false; var pcString = psString = placeString = mozURLString = htmlString = unicodeStr...
if (this.nodeIsFolder(node) || this.nodeIsQuery(node)) {
if (PlacesUtils.nodeIsFolder(node) || PlacesUtils.nodeIsQuery(node)) {
copy: function() { var nodes = this._activeView.getCopyableSelection(); var xferable = Cc["@mozilla.org/widget/transferable;1"]. createInstance(Ci.nsITransferable); var foundFolder = false, foundLink = false; var pcString = psString = placeString = mozURLString = htmlString = unicodeStr...
else if (this.nodeIsSeparator(node)) {
else if (PlacesUtils.nodeIsSeparator(node)) {
copy: function() { var nodes = this._activeView.getCopyableSelection(); var xferable = Cc["@mozilla.org/widget/transferable;1"]. createInstance(Ci.nsITransferable); var foundFolder = false, foundLink = false; var pcString = psString = placeString = mozURLString = htmlString = unicodeStr...
xferable.setTransferData(type, self._wrapString(data), data.length * 2);
xferable.setTransferData(type, PlacesUtils._wrapString(data), data.length * 2);
copy: function() { var nodes = this._activeView.getCopyableSelection(); var xferable = Cc["@mozilla.org/widget/transferable;1"]. createInstance(Ci.nsITransferable); var foundFolder = false, foundLink = false; var pcString = psString = placeString = mozURLString = htmlString = unicodeStr...
if (mozURLString) addData(TYPE_X_MOZ_URL, mozURLString);
copy: function() { var nodes = this._activeView.getCopyableSelection(); var xferable = Cc["@mozilla.org/widget/transferable;1"]. createInstance(Ci.nsITransferable); var foundFolder = false, foundLink = false; var pcString = psString = placeString = mozURLString = htmlString = unicodeStr...
if ( qmark > 7 ) { addresses = url.substring( 7, qmark ); } else { addresses = url.substr( 7 ); }
if ( qmark > mailtolength ) addresses = url.substring( mailtolength, qmark ); else addresses = url.substr( mailtolength );
copyEmail : function () { // Copy the comma-separated list of email addresses only. // There are other ways of embedding email addresses in a mailto: // link, but such complex parsing is beyond us. var url = this.linkURL(); var qmark = url.indexOf( "?" ); var addresses; ...
var url = this.linkURL(); var qmark = url.indexOf( "?" ); var addresses; if ( qmark > 7 ) { addresses = url.substring( 7, qmark ); } else { addresses = url.substr( 7 ); } try { var characterSet = this.target.ownerDocument.characterSet; const textToSubURI = Components.classes["@mozilla.org/intl/texttosuburi;1"] .getS...
copyEmail : function () { // Copy the comma-separated list of email addresses only. // There are other ways of embedding email addresses in a mailto: // link, but such complex parsing is beyond us. var url = this.linkURL(); var qmark = url.indexOf( "?" ); var addresses; ...
clipboard.copyString(addresses);
clipboard.copyString(this.getEmail());
copyEmail : function () { // Copy the comma-separated list of email addresses only. // There are other ways of embedding email addresses in a mailto: // link, but such complex parsing is beyond us. var url = this.linkURL(); var qmark = url.indexOf( "?" ); var addresses; ...
var characterSet = Components.lookupMethod(this.target.ownerDocument, "characterSet") .call(this.target.ownerDocument);
var characterSet = this.target.ownerDocument.characterSet;
copyEmail : function () { // Copy the comma-separated list of email addresses only. // There are other ways of embedding email addresses in a mailto: // link, but such complex parsing is beyond us. var url = this.linkURL(); var qmark = url.indexOf( "?" ); var addresses; ...
if (emailAddress) { var iid = Components.interfaces[ "nsIClipboard" ]; var clipboard = Components.classes[ "@mozilla.org/widget/clipboard;1" ].getService( iid );
function CopyEmailAddress(emailAddressNode){ if (emailAddressNode) { var emailAddress = emailAddressNode.getAttribute("emailAddress"); if (emailAddress) { // This code stolen from nsContextMenu.js. // Get clipboard. var iid = Components.interfaces[ "nsIClipboard" ]; var clipboard = Compon...
iid = Components.interfaces[ "nsITransferable" ]; var transferable = Components.classes[ "@mozilla.org/widget/transferable;1" ].createInstance( iid ); if ( clipboard && transferable ) { transferable.addDataFlavor( "text/unicode" ); iid = Components.interfaces[ "nsISupportsWString" ]; var data = Components.classes[ "@...
var contractid = "@mozilla.org/widget/clipboardhelper;1"; var iid = Components.interfaces.nsIClipboardHelper; var clipboard = Components.classes[contractid].getService(iid); clipboard.copyString(emailAddress);
function CopyEmailAddress(emailAddressNode){ if (emailAddressNode) { var emailAddress = emailAddressNode.getAttribute("emailAddress"); if (emailAddress) { // This code stolen from nsContextMenu.js. // Get clipboard. var iid = Components.interfaces[ "nsIClipboard" ]; var clipboard = Compon...
}
function CopyFolderUrl(){ try { var folderResource = GetSelectedFolderResource(); if (folderResource) CopyString(msgFolder.folderURL); } catch (ex) { dump("ex="+ex+"\n"); }}
var folderArray = Components.classes["component:
var folderArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);
function CopyMessages(compositeDataSource, srcFolder, destFolder, messages, isMove){ if(compositeDataSource) { var destFolderResource = destFolder.QueryInterface(Components.interfaces.nsIRDFResource); var folderArray = Components.classes["component://netscape/supports-array"].createInstance(Components.interfaces.nsIS...
var argumentArray = Components.classes["component:
var argumentArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);
function CopyMessages(compositeDataSource, srcFolder, destFolder, messages, isMove){ if(compositeDataSource) { var destFolderResource = destFolder.QueryInterface(Components.interfaces.nsIRDFResource); var folderArray = Components.classes["component://netscape/supports-array"].createInstance(Components.interfaces.nsIS...
this.mClipboardHelper.writeStringToClipboard(text, kGlobalClipboard);
this.mClipboardHelper.copyString(text);
copySearchItemAll: function() { var text = this.getAllSearchItemText(); this.mClipboardHelper.writeStringToClipboard(text, kGlobalClipboard); },
ClipboardUtils.writeString(text);
this.mClipboardHelper.writeStringToClipboard(text, kGlobalClipboard);
copySearchItemAll: function() { var text = this.getAllSearchItemText(); ClipboardUtils.writeString(text); },
ClipboardUtils.writeString(text);
this.mClipboardHelper.writeStringToClipboard(text, kGlobalClipboard);
copySearchItemLine: function() { var mod = this.mSearchService.currentModule; var idx = this.mSearchService.getSelectedIndex(0); var text = mod.getItemText(idx); ClipboardUtils.writeString(text); },
var clipboard = Components .classes["component: .getService ( Components.interfaces.nsIClipboard );
var clipboard = this.getService( "component: "nsIClipboard" );
copyToClipboard : function ( text ) { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. ...
var transferable = Components .classes["component: .createInstance( Components.interfaces.nsITransferable );
var transferable = this.createInstance( "component: "nsITransferable" );
copyToClipboard : function ( text ) { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. ...
var data = createInstance( "component: "nsISupportsWString" );
var data = this.createInstance( "component: "nsISupportsWString" );
copyToClipboard : function ( text ) { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. ...
var clipboard = this.getService( "component:
var clipboard = this.getService( "@mozilla.org/widget/clipboard;1",
copyToClipboard : function ( text ) { // Get clipboard. var clipboard = this.getService( "component://netscape/widget/clipboard", "nsIClipboard" ); // Create tranferable that will transfer the text. var transferable = this.createInstance( "componen...
var transferable = this.createInstance( "component:
var transferable = this.createInstance( "@mozilla.org/widget/transferable;1",
copyToClipboard : function ( text ) { // Get clipboard. var clipboard = this.getService( "component://netscape/widget/clipboard", "nsIClipboard" ); // Create tranferable that will transfer the text. var transferable = this.createInstance( "componen...
var data = this.createInstance( "component:
var data = this.createInstance( "@mozilla.org/supports-wstring;1",
copyToClipboard : function ( text ) { // Get clipboard. var clipboard = this.getService( "component://netscape/widget/clipboard", "nsIClipboard" ); // Create tranferable that will transfer the text. var transferable = this.createInstance( "componen...
var transferableForSelection = this.createInstance( "component:
var transferableForSelection = this.createInstance( "@mozilla.org/widget/transferable;1",
copyToClipboard : function ( text ) { // Get clipboard. var clipboard = this.getService( "component://netscape/widget/clipboard", "nsIClipboard" ); // Create tranferable that will transfer the text. var transferable = this.createInstance( "componen...
var selectionData = this.createInstance( "component:
var selectionData = this.createInstance( "@mozilla.org/supports-wstring;1",
copyToClipboard : function ( text ) { // Get clipboard. var clipboard = this.getService( "component://netscape/widget/clipboard", "nsIClipboard" ); // Create tranferable that will transfer the text. var transferable = this.createInstance( "componen...
var calendarEventArray = new Array();
var calendarEventArray = new Array( 0 );
function copyToClipboard( calendarEventArray ){ if( !calendarEventArray) { var calendarEventArray = new Array(); calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; } if(calendarEventArray.length == 0) alert("No events selected"); var calendarEvent; var sTextiCalendar = ev...