rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
headingsArray[NamedAnchorCount++] = heading; | headingsArray[NamedAnchorCount++] = heading; } | function FillLinkMenulist(linkMenulist, headingsArray){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#" + NamedAnchorNodeList.item(i).name); } ... |
} if (!linkMenulist.firstChild.hasChildNodes()) { var item = linkMenulist.appendItem(GetString("NoNamedAnchorsOrHeadings")); item.setAttribute("disabled", "true"); } | if (!linkMenulist.firstChild.hasChildNodes()) { var item = linkMenulist.appendItem(GetString("NoNamedAnchorsOrHeadings")); item.setAttribute("disabled", "true"); } } catch (e) {} | function FillLinkMenulist(linkMenulist, headingsArray){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#" + NamedAnchorNodeList.item(i).name); } ... |
linkMenulist.appendItem("#" + NamedAnchorNodeList.item(i).name); | createMenuItem(menupopup, "#" + NamedAnchorNodeList.item(i).name); | function FillLinkMenulist(linkMenulist, headingsArray){ var editor = GetCurrentEditor(); try { var NamedAnchorNodeList = editor.document.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#... |
linkMenulist.appendItem(text); | createMenuItem(menupopup, text); | function FillLinkMenulist(linkMenulist, headingsArray){ var editor = GetCurrentEditor(); try { var NamedAnchorNodeList = editor.document.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#... |
if (!linkMenulist.firstChild.hasChildNodes()) | if (!menupopup.hasChildNodes()) | function FillLinkMenulist(linkMenulist, headingsArray){ var editor = GetCurrentEditor(); try { var NamedAnchorNodeList = editor.document.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#... |
var item = linkMenulist.appendItem(GetString("NoNamedAnchorsOrHeadings")); | var item = createMenuItem(menupopup, GetString("NoNamedAnchorsOrHeadings")); | function FillLinkMenulist(linkMenulist, headingsArray){ var editor = GetCurrentEditor(); try { var NamedAnchorNodeList = editor.document.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) linkMenulist.appendItem("#... |
SetupMoveToFolderAgainMenuItem("messagePaneContext-moveToFolderAgain", numSelected, (numSelected == 0 || hideMailItems)); | function fillMessagePaneContextMenu(){ var message = GetLoadedMessage(); var numSelected = (message) ? 1 : 0; var isNewsgroup = false; if (numSelected == 1) isNewsgroup = IsNewsMessage(message); // don't show mail items for links/images, just show related items. var hideMailItems = gContextMenu.onImage || gCon... | |
var blockedPopupsSeparator; | var foundUsablePopupURI = false; | fillPopupList: function (aEvent) { var bundle_browser = document.getElementById("bundle_browser"); // XXXben - rather than using |currentURI| here, which breaks down on multi-framed sites // we should really walk the pageReport and create a list of "allow for <host>" // menuitems for th... |
if (pageReport && pageReport.length > 0) { blockedPopupsSeparator = document.getElementById("blockedPopupsSeparator"); blockedPopupsSeparator.removeAttribute("hidden"); | if (pageReport) { | fillPopupList: function (aEvent) { var bundle_browser = document.getElementById("bundle_browser"); // XXXben - rather than using |currentURI| here, which breaks down on multi-framed sites // we should really walk the pageReport and create a list of "allow for <host>" // menuitems for th... |
else { blockedPopupsSeparator = document.getElementById("blockedPopupsSeparator"); blockedPopupsSeparator.setAttribute("hidden", "true"); } | var blockedPopupsSeparator = document.getElementById("blockedPopupsSeparator"); if (foundUsablePopupURI) blockedPopupsSeparator.removeAttribute("hidden"); else blockedPopupsSeparator.setAttribute("hidden", true); | fillPopupList: function (aEvent) { var bundle_browser = document.getElementById("bundle_browser"); // XXXben - rather than using |currentURI| here, which breaks down on multi-framed sites // we should really walk the pageReport and create a list of "allow for <host>" // menuitems for th... |
displayMsg('pp'+_index, 2, data); | displayMsg('pp'+idx, 2, data); | function fillrow(data, idx){ //document.write(data); if (data.substring(0,5) == 'Error'){ displayMsg('pp'+_index, 2, data); return; } if (data.substring(0,9) == '<!DOCTYPE'){ var doc = document.open("text/html","replace"); doc.write(data); doc.close(); return; }} |
try { prefValue = gPrefInt.GetBoolPref(gCurrentDirectoryString+ ".auth.enabled"); } catch(ex) { prefValue = false; } if (prefValue) { document.getElementById("login").checked = true; } | function fillSettings(){ try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = null; } try { var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1... | |
Components.interfaces.nsISupportsWString).data; | Components.interfaces.nsISupportsString).data; | function fillSettings(){ gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1"]; ldapUrl = ldapUrl.createInstance(). QueryInterface(Components.interfaces.nsILDAPURL); try { var... |
nsISupportsWString).data; | nsISupportsString).data; | function fillSettings(){ gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1"]; ldapUrl = ldapUrl.createInstance(). QueryInterface(Components.interfaces.nsILDAPURL); try { var... |
gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = null; } try { var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1"]; ldapUrl = ldapUrl.createInstance(). QueryInterface(Co... | var prefValue = gPrefInt.getComplexValue(gCurrentDirectoryString + ".description", Components.interfaces.nsISupportsWString).data; } catch(ex) { | function fillSettings(){ try { gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = null; } try { var ldapUrl = Components.classes["@mozilla.org/net... |
if (ldapUrl && prefValue) { document.getElementById("description").value = prefValue; try{ prefValue = gPrefInt.getComplexValue(gCurrentDirectoryString +".uri", Components.interfaces.nsISupportsWString).data; } catch(ex){ prefValue=""; } if (prefValue) { ldapUrl.spec = prefValue; document.getElementById("hostname").val... | document.getElementById("description").value = prefValue; ldapUrl.spec = gPrefInt.getComplexValue(gCurrentDirectoryString +".uri", Components.interfaces. nsISupportsWString).data; document.getElementById("hostname").value = ldapUrl.host; document.getElementById("port").value = ldapUrl.port; document.getElementById("b... | function fillSettings(){ try { gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = null; } try { var ldapUrl = Components.classes["@mozilla.org/net... |
if (ldapUrl.options & ldapUrl.OPT_SECURE) { document.getElementById("secure").setAttribute("checked", "true"); } try { prefValue = gPrefInt.getIntPref(gCurrentDirectoryString + ".maxHits"); } catch(ex) { prefValue = kDefaultMaxHits; } document.getElementById("results").value = prefValue; try { prefValue = gPrefInt.ge... | function fillSettings(){ try { gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = null; } try { var ldapUrl = Components.classes["@mozilla.org/net... | |
document.getElementById("basedn").value = gLdapService.UTF8toUCS2(ldapUrl.dn); document.getElementById("search").value = gLdapService.UTF8toUCS2(ldapUrl.filter); | document.getElementById("basedn").value = ldapUrl.dn; document.getElementById("search").value = ldapUrl.filter; | function fillSettings(){ gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1"]; ldapUrl = ldapUrl.createInstance(). QueryInterface(Components.interfaces.nsILDAPURL); try { var... |
dump("Removing list option node\n"); | dump("Removing list option node, value = "+list.lastChild.value+"\n"); | function FillSuggestedList(firstWord){ list = dialog.suggestedList; // Clear the current contents of the list while (list.hasChildNodes()) { dump("Removing list option node\n"); list.removeChild(list.lastChild); } // We may have the initial word if (firstWord && firstWord != "") { dump("First Word = "+fi... |
while (list.hasChildNodes()) { dump("Removing list option node, value = "+list.lastChild.value+"\n"); list.removeChild(list.lastChild); } | ClearList(list); | function FillSuggestedList(firstWord){ list = dialog.suggestedList; // Clear the current contents of the list while (list.hasChildNodes()) { dump("Removing list option node, value = "+list.lastChild.value+"\n"); list.removeChild(list.lastChild); } // We may have the initial word if (firstWord && firstWord !... |
AppendSuggestedList(firstWord); | AppendStringToList(list, firstWord); | function FillSuggestedList(firstWord){ list = dialog.suggestedList; // Clear the current contents of the list while (list.hasChildNodes()) { dump("Removing list option node, value = "+list.lastChild.value+"\n"); list.removeChild(list.lastChild); } // We may have the initial word if (firstWord && firstWord !... |
AppendSuggestedList(word); | AppendStringToList(list, word); | function FillSuggestedList(firstWord){ list = dialog.suggestedList; // Clear the current contents of the list while (list.hasChildNodes()) { dump("Removing list option node, value = "+list.lastChild.value+"\n"); list.removeChild(list.lastChild); } // We may have the initial word if (firstWord && firstWord !... |
} else { var item = AppendStringToTreelist(list, ""); if (item) item.setAttribute("disabled", "true"); | function FillSuggestedList(misspelledWord){ var list = dialog.SuggestedList; // Clear the current contents of the list allowSelectWord = false; ClearTreelist(list); if (misspelledWord.length > 0) { // Get suggested words until an empty string is returned var count = 0; var firstWord = 0; do { wor... | |
SetupMoveToFolderAgainMenuItem("threadPaneContext-moveToFolderAgain", numSelected, false); | function fillThreadPaneContextMenu(){ var numSelected = GetNumSelectedMessages(); var isNewsgroup = false; var selectedMessage = null; // Clear the global var used to keep track if a 'Delete Message' or 'Move // To' command has been triggered via the thread pane context menu. gThreadPaneDeleteOrMoveOccurred = fal... | |
var i = 0; var column = columns[i]; | function fillViewMenu(popup){ var fill_after = document.getElementById('fill_after_this_node'); var fill_before = document.getElementById('fill_before_this_node'); var columns = document.getElementsByTagName('outlinercol'); var strBundle = document.getElementById('sortBundle'); var sortString; if (strBundle) s... | |
while (column) { | for (var i = 0; i < columns.length; ++i) { var column = columns[i]; | function fillViewMenu(popup){ var fill_after = document.getElementById('fill_after_this_node'); var fill_before = document.getElementById('fill_before_this_node'); var columns = document.getElementsByTagName('outlinercol'); var strBundle = document.getElementById('sortBundle'); var sortString; if (strBundle) s... |
column = columns[++i]; | function fillViewMenu(popup){ var fill_after = document.getElementById('fill_after_this_node'); var fill_before = document.getElementById('fill_before_this_node'); var columns = document.getElementsByTagName('outlinercol'); var strBundle = document.getElementById('sortBundle'); var sortString; if (strBundle) s... | |
var columns = document.getElementsByTagName('treecol'); | function fillViewMenu(popup){ var fill_after = document.getElementById('fill_after_this_node'); var fill_before = document.getElementById('fill_before_this_node'); var columns = document.getElementsByTagName('treecol'); var strBundle = document.getElementById('sortBundle'); var sortString; if (strBundle) sortS... | |
var popupChild = popup.firstChild.nextSibling.nextSibling; | function fillViewMenu(popup){ var fill_after = document.getElementById('fill_after_this_node'); var fill_before = document.getElementById('fill_before_this_node'); var columns = document.getElementsByTagName('treecol'); var strBundle = document.getElementById('sortBundle'); var sortString; if (strBundle) sortS... | |
for (var i = 0; i < columns.length; ++i) { var column = columns[i]; if (firstTime) { | if (firstTime) { var columns = document.getElementsByTagName('treecol'); for (var i = 0; i < columns.length; ++i) { var column = columns[i]; | function fillViewMenu(popup){ var fill_after = document.getElementById('fill_after_this_node'); var fill_before = document.getElementById('fill_before_this_node'); var columns = document.getElementsByTagName('treecol'); var strBundle = document.getElementById('sortBundle'); var sortString; if (strBundle) sortS... |
var filter = document.getElementById("filter").value; | var filter = document.getElementById("filter").value.toLowerCase(); | function filterActions() { var filter = document.getElementById("filter").value; if (filter == "") { gDownloadActionsWindow.clearFilter(); return; } var view = gDownloadActionsWindow._view; view._filterSet = gDownloadActionsWindow._filterActions(filter); if (!v... |
gFilter.clearActionList(); | function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPref = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); gPrefBranch = gPref.getDefaultBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabe... | |
gFilter.clearActionList(); | function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if ("arguments... | |
Bundle = srGetStrBundle("chrome: | gFilterBundle = document.getElementById("bundle_filter"); | function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); Bundle = srGetStrBundle("chrome://messenger/locale/filter.properties"); if ("arguments" in window && window.arguments[0]) { var args = window.arguments[0]; if ("filter" in args) { gFilter = wind... |
gPref = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); gPrefBranch = gPref.getDefaultBranch(null); | gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); | function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPref = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); gPrefBranch = gPref.getDefaultBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabe... |
getJunkmailComponent(); | function filterFolderForJunk(){ MsgJunkMailInfo(true); var view = GetDBView(); // need to expand all threads, so we analyze everything view.doCommand(nsMsgViewCommandType.expandAll); var treeView = view.QueryInterface(Components.interfaces.nsITreeView); var count = treeView.rowCount; if (!count) return; var ... | |
gUpdatingBatch = true; | gUpdatingBatch = "cookieChanged"; | function FinalizeCookieDeletions() { gUpdatingBatch = true; for (var c=0; c<deletedCookies.length; c++) { cookiemanager.remove(deletedCookies[c].host, deletedCookies[c].name, deletedCookies[c].path, document.getElementById("checkbox").checked)... |
gUpdatingBatch = false; | gUpdatingBatch = ""; | function FinalizeCookieDeletions() { gUpdatingBatch = true; for (var c=0; c<deletedCookies.length; c++) { cookiemanager.remove(deletedCookies[c].host, deletedCookies[c].name, deletedCookies[c].path, document.getElementById("checkbox").checked)... |
gUpdatingBatch = true; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); for (var p=0; p<deletedPermissions.length; p++) { if (deletedPermissions[p].type == popupType) { | if (!deletedPermissions.length) return; gUpdatingBatch = "perm-changed"; if (deletedPermissions[0].type == popupType) { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); for (var p=0; p<deletedPermissions.length; p++) | function FinalizePermissionDeletions() { gUpdatingBatch = true; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); for (var p=0; p<deletedPermissions.length; p++) { if (deletedPermissions[p].type == popupType) { // we lo... |
var uri = ioService.newURI("http: popupmanager.remove(uri); } else | popupmanager.remove(ioService.newURI("http: } else { for (var p=0; p<deletedPermissions.length; p++) | function FinalizePermissionDeletions() { gUpdatingBatch = true; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); for (var p=0; p<deletedPermissions.length; p++) { if (deletedPermissions[p].type == popupType) { // we lo... |
gUpdatingBatch = false; | gUpdatingBatch = ""; | function FinalizePermissionDeletions() { gUpdatingBatch = true; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); for (var p=0; p<deletedPermissions.length; p++) { if (deletedPermissions[p].type == popupType) { // we lo... |
if (document.getElementById("saveQuery").checked == true) { var bundle = document.getElementById("bookmarksBundle"); var findTitle = bundle.stringBundle.formatStringFromName( "ShortFindTitle", [gSearchField.value], 1); var bmks = Components.classes[BMARKS_CONTRACTID].getService(nsIBookmarksService); bmks.AddBookmark(se... | function find(){ // Build up a find URI from the search fields and open a new window // rooted on the URI. var match = document.getElementById("matchList"); var method = document.getElementById("methodList"); var searchURI = "find:datasource=rdf:bookmarks" searchURI += "&match=" + match.selectedItem.value; sear... | |
for (var i = 0; i < columns.length; ++i) { if (columns[i].getAttribute('sortDirection')) return columns[i]; | var i = 0; var column; while ((column = columns.item(i++)) != null) { if (column.getAttribute('sortDirection')) return column; | function find_sort_column(){ var columns = document.getElementsByTagName('treecol'); for (var i = 0; i < columns.length; ++i) { if (columns[i].getAttribute('sortDirection')) return columns[i]; } return columns[0];} |
return columns[0]; | return columns.item(0); | function find_sort_column(){ var columns = document.getElementsByTagName('treecol'); for (var i = 0; i < columns.length; ++i) { if (columns[i].getAttribute('sortDirection')) return columns[i]; } return columns[0];} |
if (findInst.searchString.length == 0) | if (findInst.searchString.length == 0) { | function findAgainInPage(browser, rootSearchWindow, startSearchWindow){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = findInst.Que... |
return findInPage(browser, rootSearchWindow, startSearchWindow); | findInPage(browser, rootSearchWindow, startSearchWindow); return; } | function findAgainInPage(browser, rootSearchWindow, startSearchWindow){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = findInst.Que... |
if (window.findDialog) | if ("findDialog" in window && window.findDialog) | function findAgainInPage(browser, rootSearchWindow, startSearchWindow){ if (window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = findInst.QueryInterface(Components.int... |
if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findService = Components.classes["@mozilla.org/find/find_service;1"] .getService(Components.interfaces.nsIFindService); | var findService = Components.classes["@mozilla.org/find/find_service;1"] .getService(Components.interfaces.nsIFindService); | function findAgainInPage(findInstData, reverse){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { // get the find service, which stores global find state, and init the // nsIWebBrowser find with it. We don't assume that there was a previous // Find that set this up. v... |
findInst.findBackwards = findService.findBackwards; } | findInst.findBackwards = findService.findBackwards; | function findAgainInPage(findInstData, reverse){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { // get the find service, which stores global find state, and init the // nsIWebBrowser find with it. We don't assume that there was a previous // Find that set this up. v... |
if (this.mEvents.length > 0) { var err = new Error(); var debug = Components.classes["@mozilla.org/xpcom/debug;1"].getService(Components.interfaces.nsIDebug); debug.warning("mEvents.length should always be 0 when we enter findAlarms", err.fileName, err.lineNumber); } | findAlarms: function() { if (this.mEvents.length > 0) { // This may happen if an alarm is snoozed over the time range mark var err = new Error(); var debug = Components.classes["@mozilla.org/xpcom/debug;1"].getService(Components.interfaces.nsIDebug); debug.warning(... | |
if (item.alarmTime) { this.alarmService.addAlarm(item, false); | if (item.alarmOffset) { this.alarmService.addAlarm(item); | findAlarms: function() { if (this.mEvents.length > 0) { // This may happen if an alarm is snoozed over the time range mark var err = new Error(); var debug = Components.classes["@mozilla.org/xpcom/debug;1"].getService(Components.interfaces.nsIDebug); debug.warning(... |
this.mRangeStart = jsDateToDateTime((new Date())).getInTimezone("UTC"); | var now = jsDateToDateTime((new Date())).getInTimezone("UTC"); | findAlarms: function() { if (this.mEvents.length > 0) { // This may happen if an alarm is snoozed over the time range mark var err = new Error(); var debug = Components.classes["@mozilla.org/xpcom/debug;1"].getService(Components.interfaces.nsIDebug); debug.warning(... |
var until = this.mRangeStart.clone(); until.hour += kHoursBetweenUpdates; | var start; if (!this.mRangeEnd) { start = now.clone(); start.month -= 1; start.normalize(); } else { start = this.mRangeEnd.clone(); } var until = now.clone(); until.month += 1; | findAlarms: function() { if (this.mEvents.length > 0) { // This may happen if an alarm is snoozed over the time range mark var err = new Error(); var debug = Components.classes["@mozilla.org/xpcom/debug;1"].getService(Components.interfaces.nsIDebug); debug.warning(... |
this.mRangeEnd = until.getInTimezone("UTC"); | var end = now.clone(); end.hour += kHoursBetweenUpdates; end.normalize(); this.mRangeEnd = end.getInTimezone("UTC"); | findAlarms: function() { if (this.mEvents.length > 0) { // This may happen if an alarm is snoozed over the time range mark var err = new Error(); var debug = Components.classes["@mozilla.org/xpcom/debug;1"].getService(Components.interfaces.nsIDebug); debug.warning(... |
calendar.getItems(calendar.ITEM_FILTER_TYPE_EVENT, 0, this.mRangeStart, this.mRangeEnd, getListener); | calendar.getItems(calendar.ITEM_FILTER_TYPE_ALL | calendar.ITEM_FILTER_CLASS_OCCURRENCES, 0, start, until, getListener); | findAlarms: function() { if (this.mEvents.length > 0) { // This may happen if an alarm is snoozed over the time range mark var err = new Error(); var debug = Components.classes["@mozilla.org/xpcom/debug;1"].getService(Components.interfaces.nsIDebug); debug.warning(... |
if (item.alarmOffset || (item.parentItem && item.parentItem.alarmOffset)) { | if (this.alarmService.hasAlarm(item)) { | findAlarms: function() { var getListener = { alarmService: this, onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { }, onGetResult: function(aCalendar, aStatus, aItemType, aDetail, aCount, aItems) { for (var i = 0; i < ... |
var enumerator = windowManagerInterface.GetEnumerator( "composer:html" ); | var enumerator = windowManagerInterface.getEnumerator( "composer:html" ); | function FindAndSelectEditorWindowWithURL(urlToMatch){ // returns true if found; false if an error or not found var windowManager = Components.classes["component://netscape/rdf/datasource?name=window-mediator"].getService(); if ( !windowManager ) return false; var windowManagerInterface = windowManager.Query... |
var window = windowManagerInterface.ConvertISupportsToDOMWindow( enumerator.GetNext() ); | var window = windowManagerInterface.convertISupportsToDOMWindow( enumerator.GetNext() ); | function FindAndSelectEditorWindowWithURL(urlToMatch){ // returns true if found; false if an error or not found var windowManager = Components.classes["component://netscape/rdf/datasource?name=window-mediator"].getService(); if ( !windowManager ) return false; var windowManagerInterface = windowManager.Query... |
return null; | function FindEditorWithInsertCharDialog(){ // Find window with an InsertCharsWindow and switch association to this one var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWin... | |
this.acceptNode = function(node) | switch (node.nodeName.toLowerCase()) | function findFirstControl(node){ function FormControlFilter() { this.acceptNode = function(node) { switch (node.nodeName.toLowerCase()) { case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; b... |
switch (node.nodeName.toLowerCase()) { case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; break; default: return NodeFilter.FILTER_SKIP; break; } return NodeFilter.FILTER_SKIP; } | case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; default: return NodeFilter.FILTER_SKIP; } | function findFirstControl(node){ function FormControlFilter() { this.acceptNode = function(node) { switch (node.nodeName.toLowerCase()) { case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; b... |
dump("folder = " + folder.URI + "\n"); | function FindNextFolder(originalFolderURI){ if (!originalFolderURI) return null; var originalFolderResource = RDF.GetResource(originalFolderURI); var folder = originalFolderResource.QueryInterface(Components.interfaces.nsIFolder); if (!folder) return null; dump("folder = " + folder.URI + "\n"); try { ... | |
dump("current folder = " + currentSubFolder.URI + "\n"); if (currentSubFolder.getNumUnread(false ) > 0) { dump("if the child has unread, use it.\n"); return currentSubFolder.URI; | if(!IsSpecialFolder(currentSubFolder, MSG_FOLDER_FLAG_TRASH)) { if (currentSubFolder.getNumUnread(false ) > 0) { return currentSubFolder.URI; } else if (currentSubFolder.getNumUnread(true ) > 0) { return FindNextFolder(currentSubFolder.URI); } | function FindNextFolder(originalFolderURI){ if (!originalFolderURI) return null; var originalFolderResource = RDF.GetResource(originalFolderURI); var folder = originalFolderResource.QueryInterface(Components.interfaces.nsIFolder); if (!folder) return null; dump("folder = " + folder.URI + "\n"); try { ... |
else if (currentSubFolder.getNumUnread(true ) > 0) { dump("if the child doesn't have any unread, but it's children do, recurse\n"); return FindNextFolder(currentSubFolder.URI); } | function FindNextFolder(originalFolderURI){ if (!originalFolderURI) return null; var originalFolderResource = RDF.GetResource(originalFolderURI); var folder = originalFolderResource.QueryInterface(Components.interfaces.nsIFolder); if (!folder) return null; dump("folder = " + folder.URI + "\n"); try { ... | |
dump("parent = " + folder.parent.URI + "\n"); | function FindNextFolder(originalFolderURI){ if (!originalFolderURI) return null; var originalFolderResource = RDF.GetResource(originalFolderURI); var folder = originalFolderResource.QueryInterface(Components.interfaces.nsIFolder); if (!folder) return null; dump("folder = " + folder.URI + "\n"); try { ... | |
} else { dump("no parent\n"); | function FindNextFolder(originalFolderURI){ if (!originalFolderURI) return null; var originalFolderResource = RDF.GetResource(originalFolderURI); var folder = originalFolderResource.QueryInterface(Components.interfaces.nsIFolder); if (!folder) return null; dump("folder = " + folder.URI + "\n"); try { ... | |
switch (aElement.localName) | if (!aElement) return null; switch (aElement.localName) | findParentContainer: function (aElement) { switch (aElement.localName) { case "button": case "menubutton": var box = aElement.parentNode; return RDFUtils.getResource(box.getAttribute("ref")); case "menu": case "menuitem": var menu = a... |
void(item.title + " @ " + start + " not in range " + "(" + this.today.start + " - " + this.soon.end + ")\n"); | function findPeriodForItem(item){ var start = item.startDate || item.dueDate; if (!start) return null; if (start.compare(this.today.end) == -1) return this.today; if (start.compare(this.tomorrow.end) == -1) return this.tomorrow; if (start.compare(this.soon.end) == -1) ... | |
if (!document.getElementById("downloadMsgs").hidden) { if (document.getElementById("downloadMsgs").checked) { window.opener.gNewAccountToLoad = gCurrentAccount; } else if (gCurrentAccount == am.defaultAccount) { window.opener.gLoadStartFolder = false; } } | function FinishAccount() { try { var pageData = GetPageData(); var accountData= gCurrentAccountData; if (!accountData) { accountData = new Object; // Time to set the smtpRequiresUsername attribute if (!serverIsNntp(pageData)) accountData.smtpRequiresUsername = true; } Pa... | |
dump("*** copyObjectToInterface:\n"); for (var i in account.incomingServer) { if (typeof(account.incomingServer[i]) != "function") dump("account.incomingServer." + i + " = " + account.incomingServer[i] + "\n"); } | function finishAccount(account, accountData) { if (accountData.incomingServer) { dump("*** copyObjectToInterface:\n"); for (var i in account.incomingServer) { if (typeof(account.incomingServer[i]) != "function") dump("account.incomingServer." + i + " = " + ... | |
if (accountData.identity) { | if (accountData.identity && destIdentity) { | function finishAccount(account, accountData) { if (accountData.incomingServer) { copyObjectToInterface(account.incomingServer, accountData.incomingServer); account.incomingServer.valid=true; } if (accountData.identity) { // fixup the email address if we hav... |
dump("emailArray = " + emailArray + " (length = " + emailArray.length + "\n"); dump("domain = " + accountData.domain + "\n"); | function finishAccount(account, accountData) { if (accountData.incomingServer) { copyObjectToInterface(account.incomingServer, accountData.incomingServer); account.incomingServer.valid=true; } if (accountData.identity) { // fixup the email address if we hav... | |
var destIdentity = account.identities.QueryElementAt(0, nsIMsgIdentity); | function finishAccount(account, accountData) { if (accountData.incomingServer) { copyObjectToInterface(account.incomingServer, accountData.incomingServer); account.incomingServer.valid=true; } if (accountData.identity) { // fixup the email address if we hav... | |
if (accountData.smtp) { var server = smtpService.defaultServer; | var smtpServer = smtpService.defaultServer; | function finishAccount(account, accountData) { if (accountData.incomingServer) { copyObjectToInterface(account.incomingServer, accountData.incomingServer); account.incomingServer.valid=true; } if (accountData.identity) { // fixup the email address if we hav... |
if (accountData.smtpCreateNewServer) server = smtpService.createSmtpServer(); | if (accountData.smtpCreateNewServer) smtpServer = smtpService.createSmtpServer(); copyObjectToInterface(smtpServer, accountData.smtp); | function finishAccount(account, accountData) { if (accountData.incomingServer) { copyObjectToInterface(account.incomingServer, accountData.incomingServer); account.incomingServer.valid=true; } if (accountData.identity) { // fixup the email address if we hav... |
copyObjectToInterface(server, accountData.smtp); } | if (accountData.smtpUsePreferredServer && destIdentity) destIdentity.smtpServer = smtpServer; | function finishAccount(account, accountData) { if (accountData.incomingServer) { copyObjectToInterface(account.incomingServer, accountData.incomingServer); account.incomingServer.valid=true; } if (accountData.identity) { // fixup the email address if we hav... |
setupCopiesAndFoldersServer(gCurrentAccount, getCurrentServerIsDeferred(pageData)); | setupCopiesAndFoldersServer(gCurrentAccount, getCurrentServerIsDeferred(pageData), accountData); | function FinishAccount() { try { var pageData = GetPageData(); var accountData= gCurrentAccountData; if (!accountData) { accountData = new Object; // Time to set the smtpRequiresUsername attribute if (!serverIsNntp(pageData)) accountData.smtpRequiresUsername = true; } //... |
if (accountData.addGlobalHtmlDomains) { var isDomainListAdded = gPrefs.GetBoolPref("mailnews.global_html_domains.added"); if (!isDomainListAdded) { var globalHtmlDomainList = gPrefs.CopyCharPref("mailnews.global_html_domains"); var currentHtmlDomainList = gPrefs.CopyCharPref("mailnews.html_domains"); var currentPlain... | function finishAccount(account, accountData) { if (accountData.incomingServer) { var destServer = account.incomingServer; var srcServer = accountData.incomingServer; copyObjectToInterface(destServer, srcServer); // see if there are any protocol-specific attributes // if so, we use ... | |
if (this.FinishAccountHook != undefined) { FinishAccountHook(accountData.domain); } | function finishAccount(account, accountData) { if (accountData.incomingServer) { var destServer = account.incomingServer; var srcServer = accountData.incomingServer; copyObjectToInterface(destServer, srcServer); // see if there are any protocol-specific attributes // if so, we use ... | |
prefs.savePrefFile(null); | prefs.SavePrefFile(); | function FinishAccount() { var pageData = GetPageData(); dump(parent.wizardManager.WSM); var accountData= gCurrentAccountData; if (!accountData) accountData = new Object; PageDataToAccountData(pageData, accountData); FixupAccountDataForIsp(accountData); // we might be simply fini... |
if (accountData.smtp.hostname && accountData.smtp.hostname != "") smtpService.defaultServer.hostname = accountData.smtp.hostname; | var server = smtpService.defaultServer; if (accountData.smtpCreateNewServer) server = smtpService.createSmtpServer(); copyObjectToInterface(server, accountData.smtp); | function finishAccount(account, accountData) { if (accountData.incomingServer) { copyObjectToInterface(account.incomingServer, accountData.incomingServer); account.incomingServer.valid=true; } if (accountData.identity) { var destIdentity = accoun... |
dump("srcServer.ServerType-" + srcServer.type + " = " + | _dd("srcServer.ServerType-" + srcServer.type + " = " + | function finishAccount(account, accountData) { if (accountData.incomingServer) { var destServer = account.incomingServer; var srcServer = accountData.incomingServer; copyObjectToInterface(destServer, srcServer); // see if there are any protocol-specific attributes // if so, we use ... |
dump("Copying over " + srcServer.type + "-specific data\n"); | _dd("Copying over " + srcServer.type + "-specific data\n"); | function finishAccount(account, accountData) { if (accountData.incomingServer) { var destServer = account.incomingServer; var srcServer = accountData.incomingServer; copyObjectToInterface(destServer, srcServer); // see if there are any protocol-specific attributes // if so, we use ... |
dump("Copying smtpServer (" + smtpServer + ") to accountData\n"); | _dd("Copying smtpServer (" + smtpServer + ") to accountData\n"); | function finishAccount(account, accountData) { if (accountData.incomingServer) { var destServer = account.incomingServer; var srcServer = accountData.incomingServer; copyObjectToInterface(destServer, srcServer); // see if there are any protocol-specific attributes // if so, we use ... |
sigFile.appendUnicode(sigFileName); | sigFile.append(sigFileName); | function finishAccount(account, accountData) { if (accountData.incomingServer) { var destServer = account.incomingServer; var srcServer = accountData.incomingServer; copyObjectToInterface(destServer, srcServer); // see if there are any protocol-specific attributes // if so, we use ... |
var calendar = createCalendar(); | function finishCalendarToDoUnifinder(){ calendar.removeObserver(unifinderToDoDataSourceObserver);} | |
var ccalendar=getCalendar(); | var ccalendar = getDisplayComposite(); | function finishCalendarUnifinder( ){ //gICalLib.removeObserver( unifinderEventDataSourceObserver ); var ccalendar=getCalendar(); ccalendar.removeObserver(unifinderObserver);} |
var htmlSource = gSourceContentWindow.value; | var htmlSource = gSourceTextEditor.outputToString(kTextMimeType, 0); | function FinishHTMLSource(){ //Here we need to check whether the HTML source contains <head> and <body> tags //Or RebuildDocumentFromSource() will fail. if (IsInHTMLSourceMode()) { var htmlSource = gSourceContentWindow.value; if (htmlSource.length > 0) { var beginHead = htmlSource.indexOf("<head"); ... |
gInPrintPreviewMode = true; | function FinishPrintPreview(){ gInPrintPreviewMode = true; var browser = getBrowser(); try { var ifreq = content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); if (webBrowserPrint) { gPrintSettings = ... | |
gInPrintPreviewMode = true; | function FinishPrintPreview(){ gInPrintPreviewMode = true; var browser = getBrowser(); try { var ifreq = content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); if (webBrowserPrint) { gPrintSettings = ... | |
input.setAttribute("id", input.getAttribute("fakeid")); | var fakeid = input.getAttribute("fakeid"); if (fakeid && fakeid != "") { input.setAttribute("id", fakeid); haveDynamicInputs = true; } | function fixLabels(box) { if (!box) return; var child = box.firstChild; while (child) { if (child.tagName.toLowerCase() == "div") { var input = child.childNodes[0]; var label = child.childNodes[1]; if (input.tagName.toLowerCase() == "input" && label.tagNam... |
if (haveDynamicInputs) { var subButtons = document.getElementById("mailSubButtons"); subButtons.style.visibility="visible"; } | function fixLabels(box) { if (!box) return; var child = box.firstChild; while (child) { if (child.tagName.toLowerCase() == "div") { var input = child.childNodes[0]; var label = child.childNodes[1]; if (input.tagName.toLowerCase() == "input" && label.tagNam... | |
dump("Fixing labels on " + box + "\n"); | _dd("Fixing labels on " + box + "\n"); | function fixLabels(box) { dump("Fixing labels on " + box + "\n"); if (!box) return; var child = box.firstChild; dump("starting looking with " + child + "\n"); var haveDynamicInputs = false; while (child) { dump("found child: " + child + "\n"); if (child.localName.toLowerCase() == "radio"... |
dump("starting looking with " + child + "\n"); | _dd("starting looking with " + child + "\n"); | function fixLabels(box) { dump("Fixing labels on " + box + "\n"); if (!box) return; var child = box.firstChild; dump("starting looking with " + child + "\n"); var haveDynamicInputs = false; while (child) { dump("found child: " + child + "\n"); if (child.localName.toLowerCase() == "radio"... |
dump("found child: " + child + "\n"); | _dd("found child: " + child + "\n"); | function fixLabels(box) { dump("Fixing labels on " + box + "\n"); if (!box) return; var child = box.firstChild; dump("starting looking with " + child + "\n"); var haveDynamicInputs = false; while (child) { dump("found child: " + child + "\n"); if (child.localName.toLowerCase() == "radio"... |
dump("Found dynamic inputs!\n"); | _dd("Found dynamic inputs!\n"); | function fixLabels(box) { dump("Fixing labels on " + box + "\n"); if (!box) return; var child = box.firstChild; dump("starting looking with " + child + "\n"); var haveDynamicInputs = false; while (child) { dump("found child: " + child + "\n"); if (child.localName.toLowerCase() == "radio"... |
dump("** Have dynamic inputs: showing " + subButtons + "\n"); | _dd("** Have dynamic inputs: showing " + subButtons + "\n"); | function fixLabels(box) { dump("Fixing labels on " + box + "\n"); if (!box) return; var child = box.firstChild; dump("starting looking with " + child + "\n"); var haveDynamicInputs = false; while (child) { dump("found child: " + child + "\n"); if (child.localName.toLowerCase() == "radio"... |
dump("** Also showing the other ISP button\n"); | _dd("** Also showing the other ISP button\n"); | function fixLabels(box) { dump("Fixing labels on " + box + "\n"); if (!box) return; var child = box.firstChild; dump("starting looking with " + child + "\n"); var haveDynamicInputs = false; while (child) { dump("found child: " + child + "\n"); if (child.localName.toLowerCase() == "radio"... |
if (accountData.smtp.hostname == accountData.incomingServer.hostName) accountData.smtp.username = accountData.incomingServer.username; else | function FixupAccountDataForIsp(accountData){ // no fixup for news // setting the username does bad things // see bugs #42105 and #154213 if (accountData.incomingServer.type == "nntp") return; var email = accountData.identity.email; var username; if (email) { username = getUsernameFromEma... | |
if (aElement.nodeType == 1) { | if (aElement.nodeType == 1 && aElement != aElement.ownerDocument.documentElement) { | flashElement: function(aElement) { // make sure we only try to flash element nodes if (aElement.nodeType == 1) { var flasher = this.flasher; if (flasher.flashing) flasher.stop(); try { flasher.element = aElement; flasher.start(); } catch (ex) { } ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.