rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (!DNTHeader) | var oldDNTHeader = mimeHdr.extractHeader("Return-Receipt-To", false); if (!DNTHeader && !oldDNTHeader) | function HandleMDNResponse(aUrl){ if (!aUrl) return; var msgFolder = aUrl.folder; var msgURI = GetLoadedMessage(); if (!msgFolder || !msgURI) return; if (IsNewsMessage(msgURI)) return; var msgHdr = messenger.messageServiceFromURI(msgURI).messageURIToMsgHdr(msgURI); var mimeHdr = aUrl.mimeHeaders; // I... |
var DNTHeader = mimeHdr.extractHeader("Disposition-Notification-To", false); | function HandleMDNResponse(aUrl){ if (!aUrl) return; var msgFolder = aUrl.folder; var msgURI = GetLoadedMessage(); if (!msgFolder || !msgURI) return; if (IsNewsMessage(msgURI)) return; // if the message is marked as junk, do NOT attempt to process a return receipt // in order to better protect the user if... | |
var msgHdr = messenger.messageServiceFromURI(msgURI).messageURIToMsgHdr(msgURI); | var msgHdr = messenger.msgHdrFromURI(msgURI); | function HandleMDNResponse(aUrl){ if (!aUrl) return; var msgFolder = aUrl.folder; var msgURI = GetLoadedMessage(); if (!msgFolder || !msgURI) return; if (IsNewsMessage(msgURI)) return; // if the message is marked as junk, do NOT attempt to process a return receipt // in order to better protect the user if... |
var DNTHeader = mimeHdr.extractHeader("Disposition-Notification-To", false); if (!DNTHeader) | var oldDNTHeader = mimeHdr.extractHeader("Return-Receipt-To", false); if (!DNTHeader && !oldDNTHeader) | function HandleMDNResponse(aUrl){ if (!aUrl) return; var msgFolder = aUrl.folder; var msgURI = GetLoadedMessage(); if (!msgFolder || !msgURI) return; if (IsNewsMessage(msgURI)) return; // if the message is marked as junk, do NOT attempt to process a return receipt // in order to better protect the user if... |
if (!gURLBar.value) return; | function handleURLBarCommand(aTriggeringEvent) { var postData = { }; canonizeUrl(aTriggeringEvent, postData); try { addToUrlbarHistory(gURLBar.value); } catch (ex) { // Things may go wrong when adding url to session history, // but don't let that interfere with the loading of the url. } BrowserLoadURL(aT... | |
canonizeUrl(aTriggeringEvent); | function handleURLBarCommand(aTriggeringEvent){ try { addToUrlbarHistory(); } catch (ex) { // Things may go wrong when adding url to session history, // but don't let that interfere with the loading of the url. } BrowserLoadURL(aTriggeringEvent); } | |
gBrowser.userTypedValue = null; | function handleURLBarRevert(){ var url = getWebNavigation().currentURI.spec; var throbberElement = document.getElementById("navigator-throbber"); var isScrolling = gURLBar.userAction == "scrolling"; // don't revert to last valid url unless page is NOT loading // and user is NOT key-scrolling through autocomplete... | |
textNode.value = unescape(target); | textNode.value = decodeURI(target); | function haveSearchResults(){ var ds = document.getElementById("resultList").database; if (!ds) return false; var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService); var source = rdf.GetResource("NC:LastSearchRoot", true); var childProperty = rdf.GetResource("http://home.netscape.com/NC-r... |
target = target.replace(/+/g, " "); | target = target.replace(/\+/g, " "); | function haveSearchResults(){ var ds = document.getElementById("resultList").database; if (!ds) return false; var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService); var source = rdf.GetResource("NC:LastSearchRoot", true); var childProperty = rdf.GetResource("http://home.netscape.com/NC-r... |
var disabledItems = ['new_command', 'new_local_calendar_command', | var disabledItems = ['new_command', 'new_calendar_command', | function hiddenWindowStartup(){ // focus the hidden window window.focus(); // Disable menus which are not appropriate var disabledItems = ['new_command', 'new_local_calendar_command', 'modify_command', 'close_calendar_command', 'send_event_command', 'print_command', 'cu... |
'new_server_command', 'publish_events_command', 'modify_todo_command', 'edit_local_calendar_command', 'edit_server_command', 'delete_server_command', 'find_new_calendar_command', | 'publish_events_command', 'modify_todo_command', 'edit_calendar_command', 'delete_calendar_command', 'find_new_calendar_command', | function hiddenWindowStartup(){ // focus the hidden window window.focus(); // Disable menus which are not appropriate var disabledItems = ['new_command', 'new_local_calendar_command', 'modify_command', 'close_calendar_command', 'send_event_command', 'print_command', 'cu... |
window.focus(); | var disabledItems = ['newNewMsgCmd', 'menu_newFolder', 'newAccountMenuItem', 'menu_close', 'menu_saveAs', 'menu_saveAsFile', 'menu_newVirtualFolder', 'menu_find', 'menu_findCmd', 'menu_findAgainCmd', 'menu_sendunsentmsgs', 'menu_subscribe', 'menu_renameFolder', 'menu_select', 'menu_selectAll', 'menu_selectThread', 'men... | function hiddenWindowStartup(){ // focus the hidden window window.focus(); // Disable menus which are not appropriate var disabledItems = ['newNewMsgCmd', 'menu_newFolder', 'newAccountMenuItem', 'menu_close', 'menu_sendunsentmsgs', 'menu_subscribe', 'menu_renameFolder', 'menu_selectAll', ... |
var disabledItems = ['newNewMsgCmd', 'menu_newFolder', 'newAccountMenuItem', 'menu_close', 'menu_sendunsentmsgs', 'menu_subscribe', 'menu_renameFolder', 'menu_selectAll', 'menu_showMessengerToolbar', 'menu_showSearchToolbar', 'menu_showTaskbar', 'menu_customizeToolbar', 'messagePaneClassic', 'messagePaneWide', 'message... | document.getElementById("sep-window-list").setAttribute("hidden", "true"); | function hiddenWindowStartup(){ // focus the hidden window window.focus(); // Disable menus which are not appropriate var disabledItems = ['newNewMsgCmd', 'menu_newFolder', 'newAccountMenuItem', 'menu_close', 'menu_sendunsentmsgs', 'menu_subscribe', 'menu_renameFolder', 'menu_selectAll', ... |
document.getElementById('messengerBox').removeAttribute('flex'); | function HideAccountCentral(){ try { window.frames["accountCentralPane"].location = "about:blank"; document.getElementById("accountCentralBox").collapsed = true; GetThreadTree().collapsed = false; gSearchBox.collapsed = false; var threadPaneSplitter = document.getElement... | |
if (!item) return false; var enabled = (item.getAttribute('disabled') !="true"); item.setAttribute("hidden", enabled ? "" : "true"); item.setAttribute("contexthidden", enabled ? "" : "true"); return enabled; | item.hidden = !IsItemOrCommandEnabled(item); | function HideDisabledItem( item ){ if (!item) return false; var enabled = (item.getAttribute('disabled') !="true"); item.setAttribute("hidden", enabled ? "" : "true"); item.setAttribute("contexthidden", enabled ? "" : "true"); return enabled;} |
msgPaneData.ViewAllHeadersToolbar.setAttribute("hidden", "true"); | msgPaneData.ViewAllHeadersToolbar.setAttribute("collapsed", "true"); | function HideMessageHeaderPane(){ msgPaneData.ViewAllHeadersToolbar.setAttribute("hidden", "true"); msgPaneData.ViewAllHeadersBox.setAttribute("collapsed", "true"); var node = document.getElementById("headerPart1"); if (node) node.setAttribute("hidden", "true"); node = document.getElementById("headerPart2"); i... |
node.setAttribute("hidden", "true"); | node.setAttribute("collapsed", "true"); | function HideMessageHeaderPane(){ msgPaneData.ViewAllHeadersToolbar.setAttribute("hidden", "true"); msgPaneData.ViewAllHeadersBox.setAttribute("collapsed", "true"); var node = document.getElementById("headerPart1"); if (node) node.setAttribute("hidden", "true"); node = document.getElementById("headerPart2"); i... |
msgPaneData.UserAgentToolbar.setAttribute("hidden", "true"); | msgPaneData.UserAgentToolbar.setAttribute("collapsed", "true"); | function HideMessageHeaderPane(){ msgPaneData.ViewAllHeadersToolbar.setAttribute("hidden", "true"); msgPaneData.ViewAllHeadersBox.setAttribute("collapsed", "true"); var node = document.getElementById("headerPart1"); if (node) node.setAttribute("hidden", "true"); node = document.getElementById("headerPart2"); i... |
msgPaneData.ViewAllHeadersToolbar.setAttribute("collapsed", "true"); msgPaneData.ViewAllHeadersBox.setAttribute("collapsed", "true"); var node = document.getElementById("headerPart1"); | var node = document.getElementById("collapsedHeaderView"); | function HideMessageHeaderPane(){ msgPaneData.ViewAllHeadersToolbar.setAttribute("collapsed", "true"); msgPaneData.ViewAllHeadersBox.setAttribute("collapsed", "true"); var node = document.getElementById("headerPart1"); if (node) node.setAttribute("collapsed", "true"); node = document.getElementById("headerPart2... |
node = document.getElementById("headerPart2"); | node = document.getElementById("expandedHeaderView"); | function HideMessageHeaderPane(){ msgPaneData.ViewAllHeadersToolbar.setAttribute("collapsed", "true"); msgPaneData.ViewAllHeadersBox.setAttribute("collapsed", "true"); var node = document.getElementById("headerPart1"); if (node) node.setAttribute("collapsed", "true"); node = document.getElementById("headerPart2... |
node = document.getElementById("headerPart3"); if (msgPaneData.UserAgentToolbar) msgPaneData.UserAgentToolbar.setAttribute("collapsed", "true"); | function HideMessageHeaderPane(){ msgPaneData.ViewAllHeadersToolbar.setAttribute("collapsed", "true"); msgPaneData.ViewAllHeadersBox.setAttribute("collapsed", "true"); var node = document.getElementById("headerPart1"); if (node) node.setAttribute("collapsed", "true"); node = document.getElementById("headerPart2... | |
var node = document.getElementById("collapsedHeaderView"); if (node) node.collapsed = true; | document.getElementById('msgHeaderView').collapsed = true; | function HideMessageHeaderPane(){ var node = document.getElementById("collapsedHeaderView"); if (node) node.collapsed = true; node = document.getElementById("expandedHeaderView"); if (node) node.collapsed = true; // we also have to disable the File/Attachments menuitem node = document.getElementById("fileAt... |
node = document.getElementById("expandedHeaderView"); if (node) node.collapsed = true; node = document.getElementById("fileAttachmentMenu"); if (node) node.setAttribute("disabled", "true"); node = document.getElementById("attachmentView"); if (node) node.collapsed = true; | document.getElementById("fileAttachmentMenu").setAttribute("disabled", "true"); document.getElementById("attachmentView").collapsed = true; | function HideMessageHeaderPane(){ var node = document.getElementById("collapsedHeaderView"); if (node) node.collapsed = true; node = document.getElementById("expandedHeaderView"); if (node) node.collapsed = true; // we also have to disable the File/Attachments menuitem node = document.getElementById("fileAt... |
var imapFolder = gMsgFolder.QueryInterface(Components.interfaces.nsIMsgImapMailFolder); if (imapFolder) { var privilegesButton = document.getElementById("imap.FolderPrivileges"); if (privilegesButton) | try { var imapFolder = gMsgFolder.QueryInterface(Components.interfaces.nsIMsgImapMailFolder); if (imapFolder) | function hideShowControls(serverType){ var controls = document.getElementsByAttribute("hidable", "true"); var len = controls.length; for (var i=0; i<len; i++) { var control = controls[i]; var hideFor = control.getAttribute("hidefor"); if (!hideFor) throw "this should not happen, things that are hidable... |
if (!imapFolder.hasAdminUrl) privilegesButton.setAttribute("hidden", "true"); | var privilegesButton = document.getElementById("imap.FolderPrivileges"); if (privilegesButton) { if (!imapFolder.hasAdminUrl) privilegesButton.setAttribute("hidden", "true"); } | function hideShowControls(serverType){ var controls = document.getElementsByAttribute("hidable", "true"); var len = controls.length; for (var i=0; i<len; i++) { var control = controls[i]; var hideFor = control.getAttribute("hidefor"); if (!hideFor) throw "this should not happen, things that are hidable... |
catch (ex) {} | function hideShowControls(serverType){ var controls = document.getElementsByAttribute("hidable", "true"); var len = controls.length; for (var i=0; i<len; i++) { var control = controls[i]; var hideFor = control.getAttribute("hidefor"); if (!hideFor) throw "this should not happen, things that are hidable... | |
hideFor == serverType) { | hideForBool) { | function hideShowControls(serverType){ var controls = document.getElementsByAttribute("wsm_persist", "true"); var len = controls.length; for (var i=0; i<len; i++) { var control = controls[i]; var controlName = control.id; if (!controlName) continue; var controlNameSplit = controlNam... |
if (smtpServer && smtpServer.hostname && smtpServer.hostname != "") { | if (smtpServer && smtpServer.hostname && smtpServer.redirectorType == null && smtpServer.hostname != "") { var smtpTextBox = document.getElementById("smtphostname"); if (smtpTextBox && smtpTextBox.value == "") smtpTextBox.value = smtpServer.hostname; | function hideShowSmtpSettings(smtpServer) { var noSmtpBox = document.getElementById("noSmtp"); var haveSmtpBox = document.getElementById("haveSmtp"); var boxToHide; var boxToShow; if (smtpServer && smtpServer.hostname && smtpServer.hostname != "") { // we have a hostname, so show the static text boxTo... |
function highlight(range, node) { var startContainer = range.startContainer; var startOffset = range.startOffset; var endOffset = range.endOffset; var docfrag = range.extractContents(); var before = startContainer.splitText(startOffset); var parent = before.parentNode; node.appendChild(docfrag); parent.insertBefore(nod... | highlight: function (range, node) { var startContainer = range.startContainer; var startOffset = range.startOffset; var endOffset = range.endOffset; var docfrag = range.extractContents(); var before = startContainer.splitText(startOffset); var parent = before.parentNode; node.appendChild(docfrag); parent.insertBefore(n... | function highlight(range, node){ var startContainer = range.startContainer; var startOffset = range.startOffset; var endOffset = range.endOffset; var docfrag = range.extractContents(); var before = startContainer.splitText(startOffset); var parent = before.parentNode; node.appendChild(docfrag); parent.insertBef... |
if( currentProfileItem ) | if( currentProfileItem ) { | function highlightCurrentProfile(){ try { var currentProfile = profile.currentProfile; if( !currentProfile ) return; var currentProfileItem = document.getElementById( ( "profileName_" + currentProfile ) ); var profileList = document.getElementById( "profiles" ); if( currentProfileItem ) profil... |
profileList.ensureElementIsVisible( currentProfileItem ); } | function highlightCurrentProfile(){ try { var currentProfile = profile.currentProfile; if( !currentProfile ) return; var currentProfileItem = document.getElementById( ( "profileName_" + currentProfile ) ); var profileList = document.getElementById( "profiles" ); if( currentProfileItem ) profil... | |
function highlightDoc(highBackColor, highTextColor, word, win) { if (!win) win = window._content; | highlightDoc: function (highBackColor, highTextColor, word, win) { if (!win) win = window._content; | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } | for (var i = 0; win.frames && i < win.frames.length; i++) { this.highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
var doc = win.document; if (!document) return; if (!("body" in doc)) return; var body = doc.body; var count = body.childNodes.length; searchRange = doc.createRange(); startPt = doc.createRange(); endPt = doc.createRange(); searchRange.setStart(body, 0); searchRange.setEnd(body, count); startPt.setStart(body, 0); s... | var doc = win.document; if (!document) | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
var retRange = null; var finder = Components.classes["@mozilla.org/embedcomp/rangefind;1"].createInstance() .QueryInterface(Components.interfaces.nsIFind); | if (!("body" in doc)) return; | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
while ((retRange = finder.Find(gLastHighlightString, searchRange,startPt, endPt))) { var startContainer = retRange.startContainer; var elem = null; try { elem = startContainer.parentNode; } catch (e) { } | var body = doc.body; | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
if (elem && elem.getAttribute("id") == "__firefox-findbar-search-id") { var child = null; var docfrag = doc.createDocumentFragment(); var next = elem.nextSibling; var parent = elem.parentNode; | var count = body.childNodes.length; this.mSearchRange = doc.createRange(); this.mStartPt = doc.createRange(); this.mEndPt = doc.createRange(); | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
while ((child = elem.firstChild)) { docfrag.appendChild(child); | this.mSearchRange.setStart(body, 0); this.mSearchRange.setEnd(body, count); this.mStartPt.setStart(body, 0); this.mStartPt.setEnd(body, 0); this.mEndPt.setStart(body, count); this.mEndPt.setEnd(body, count); if (!highBackColor) { if (!this.mLastHighlightString) return; var retRange = null; var finder = Component... | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
startPt = doc.createRange(); startPt.setStartAfter(elem); | this.mStartPt.collapse(true); } return; } | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
parent.removeChild(elem); parent.insertBefore(docfrag, next); parent.normalize(); } else { startPt = doc.createRange(); startPt.setStart(retRange.endContainer, retRange.endOffset); } | var baseNode = doc.createElement("span"); baseNode.setAttribute("style", "background-color: " + highBackColor + "; " + "color: " + highTextColor + "; " + "display: inline; font-size: inherit;" + " padding: 0;"); baseNode.setAttribute("id", "__firefox-findbar-search-id"); | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
startPt.collapse(true); } return; } var baseNode = doc.createElement("span"); baseNode.setAttribute("style", "background-color: " + highBackColor + "; color: " + highTextColor + ";" + "display: inline; font-size: inherit; padding: 0;"); baseNode.setAttribute("id", "__firefox-findbar-search-id"); highlightText(word, b... | this.highlightText(word, baseNode); }, | function highlightDoc(highBackColor, highTextColor, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(highBackColor, highTextColor, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; ... |
PageLoader.LoadPage(PageLoader.currentDescriptor, pageLoaderIface.DISPLAY_NORMAL); | PageLoader.loadPage(PageLoader.currentDescriptor, pageLoaderIface.DISPLAY_NORMAL); | function highlightSyntax(){ var highlightSyntaxMenu = document.getElementById("menu_highlightSyntax"); var highlightSyntax = (highlightSyntaxMenu.getAttribute("checked") == "true"); gPrefs.setBoolPref("view_source.syntax_highlight", highlightSyntax); var PageLoader = getBrowser().webNavigation.QueryInterface(pageLo... |
function highlightText(word, baseNode) { var retRange = null; var finder = Components.classes["@mozilla.org/embedcomp/rangefind;1"].createInstance() .QueryInterface(Components.interfaces.nsIFind); | highlightText: function (word, baseNode) { var retRange = null; var finder = Components.classes["@mozilla.org/embedcomp/rangefind;1"] .createInstance() .QueryInterface(Components.interfaces.nsIFind); | function highlightText(word, baseNode){ var retRange = null; var finder = Components.classes["@mozilla.org/embedcomp/rangefind;1"].createInstance() .QueryInterface(Components.interfaces.nsIFind); finder.caseSensitive = document.getElementById("find-case-sensitive").checked; while((retRange =... |
while((retRange = finder.Find(word, searchRange, startPt, endPt))) { var nodeSurround = baseNode.cloneNode(true); var node = highlight(retRange, nodeSurround); startPt = node.ownerDocument.createRange(); startPt.setStart(node, node.childNodes.length); startPt.setEnd(node, node.childNodes.length); } gLastHighlightStri... | while((retRange = finder.Find(word, this.mSearchRange, this.mStartPt, this.mEndPt))) { var nodeSurround = baseNode.cloneNode(true); var node = this.highlight(retRange, nodeSurround); this.mStartPt = node.ownerDocument.createRange(); this.mStartPt.setStart(node, node.childNodes.length); this.mStartPt.setEnd(node, node.... | function highlightText(word, baseNode){ var retRange = null; var finder = Components.classes["@mozilla.org/embedcomp/rangefind;1"].createInstance() .QueryInterface(Components.interfaces.nsIFind); finder.caseSensitive = document.getElementById("find-case-sensitive").checked; while((retRange =... |
this.updateStatus(textFound ? Components.interfaces.nsITypeAheadFind.FIND_FOUND : Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND, false); | highlightText: function (word, baseNode) { var retRange = null; var finder = Components.classes["@mozilla.org/embedcomp/rangefind;1"] .createInstance() .QueryInterface(Components.interfaces.nsIFind); finder.caseSensitive = document.getElementById("fin... | |
gHistoryTree.view.selection.select(0); | if (gHistoryTree.view.rowCount > 0) gHistoryTree.view.selection.select(0); else if (gHistoryStatus) updateHistoryCommands(); | function HistoryCommonInit(){ gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
SortInNewDirection(find_sort_direction(find_sort_column())); | function HistoryCommonInit(){ gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... | |
gSearchBox.focus(); | function HistoryCommonInit(){ gHistoryTree = document.getElementById("historyTree"); gSearchBox = document.getElementById("search-box"); var treeController = new nsTreeController(gHistoryTree); gHistoryGrouping = document.getElementById("viewButton").getAttribute("selectedsort"); if (gHistoryGroupin... | |
function HistoryInit() { gHistoryTree = document.getElementById("historyTree"); | function HistoryInit() { gHistoryOutliner = document.getElementById("historyOutliner"); | function HistoryInit() { gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
var treeController = new nsTreeController(gHistoryTree); | var outlinerController = new nsOutlinerController(gHistoryOutliner, document.getElementById('historyOutlinerBody')); | function HistoryInit() { gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
gHistoryTree.controllers.appendController(historyController); gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory); | gHistoryOutliner.controllers.appendController(historyController); | function HistoryInit() { gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
var uri = window.arguments[0]; setRoot(uri); if (uri.substring(0,5) == "find:") { var windowNode = document.getElementById("history-window"); windowNode.setAttribute("windowtype", "history:searchresults"); } | var uri = window.arguments[0]; setRoot(uri); if (uri.substring(0,5) == "find:") { var windowNode = document.getElementById("history-window"); windowNode.setAttribute("windowtype", "history:searchresults"); } } gPrefService = Components.classes["@mozilla.org/preferences;1"] .getService(Components.interfaces.nsIPref);... | function HistoryInit() { gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
var children = document.getElementById('treechildren-bookmarks'); if (children.firstChild) gHistoryTree.selectItem(children.firstChild); gHistoryTree.focus(); RefreshSort(); | gHistoryOutliner.focus(); gHistoryOutliner.outlinerBoxObject.view.selection.select(0); | function HistoryInit() { gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
gHistoryStatus.label = url; | if (gHistoryStatus) gHistoryStatus.label = url; | function historyOnSelect(event){ // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var match; var selection = gHistoryTree.selectedItems; if (selection && selection.length > 0) { var url = selection[0].id; // matches scheme://(hostname)... ... |
gHistoryStatus.label = ""; | if (gHistoryStatus) gHistoryStatus.label = ""; | function historyOnSelect(event){ // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var match; var selection = gHistoryTree.selectedItems; if (selection && selection.length > 0) { var url = selection[0].id; // matches scheme://(hostname)... ... |
function historyOnSelect(event) | function historyOnSelect() | function historyOnSelect(event){ // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var match; var selection = gHistoryTree.selectedItems; if (selection && selection.length > 0) { var url = selection[0].id; // matches scheme://(hostname)... ... |
var selection = gHistoryTree.selectedItems; if (selection && selection.length > 0) { var url = selection[0].id; | var currentIndex = gHistoryOutliner.currentIndex; var rowIsContainer = isContainer(gHistoryOutliner, currentIndex); var url = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "URL"); if (url && !rowIsContainer) { | function historyOnSelect(event){ // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var match; var selection = gHistoryTree.selectedItems; if (selection && selection.length > 0) { var url = selection[0].id; // matches scheme://(hostname)... ... |
if ((!mask.nickRE || user.nick.match(mask.nickRE)) && (!mask.userRE || user.name.match(mask.userRE)) && | if ((!mask.nickRE || user.unicodeName.match(mask.nickRE)) && (!mask.userRE || user.name.match(mask.userRE)) && | function hostmaskMatches(user, mask) { // Need to match .nick, .user, and .host. if (!("nickRE" in mask)) { // We cache all the regexp objects, but use null if the term is // just "*", so we can skip having the object *and* the .match // later on. ... |
var index; | function hostNameIsIPAddress(aHostName, aUnobscuredHostName){ // TODO: Add Support for IPv6 // scammers frequently obscure the IP address by encoding each component as octal, hex // or in some cases a mix match of each. The IP address could also be represented as a DWORD. // break the IP address down into individ... | |
for (var index = 0; index < ipComponents.length; index++) | for (index = 0; index < ipComponents.length; ++index) | function hostNameIsIPAddress(aHostName, aUnobscuredHostName){ // TODO: Add Support for IPv6 // scammers frequently obscure the IP address by encoding each component as octal, hex // or in some cases a mix match of each. The IP address could also be represented as a DWORD. // break the IP address down into individ... |
return linkNode ? {href: href, linkNode: linkNode} : null; | return href ? {href: href, linkNode: linkNode} : null; | function hrefAndLinkNodeForClickEvent(event) { var target = event.target; var href = ""; var linkNode = null; var isKeyPress = (event.type == "keypress"); if ( target instanceof HTMLAnchorElement || target instanceof HTMLAreaElement || target instanceof HTMLLinkElement ) { if (t... |
linkNode = findParentNode(event.originalTarget, "a"); | while (linkNode && !(linkNode instanceof HTMLAnchorElement)) linkNode = linkNode.parentNode; | function hrefForClickEvent(event) { var target = event.target; var linkNode; var isKeyPress = (event.type == "keypress"); if ( target instanceof HTMLAnchorElement || target instanceof HTMLAreaElement || target instanceof HTMLLinkElement ) { if (target.hasAttribute("href")) ... |
this.length=iA.arguments.length; for (var i=0;i<this.length;i++){ | for (var i=0;i<arguments.length;i++){ | function iA(){ this.length=iA.arguments.length; for (var i=0;i<this.length;i++){ this[i]=iA.arguments[i]; }} |
var rec = item.recurrenceInfo; if (rec != null) { var exceptions = rec.getExceptionIds({}); for each ( var exid in exceptions ) { var ex = rec.getExceptionFor(exid, false); if (ex != null) { calComp.addSubcomponent(ex.icalComponent); } } } | function ics_exportToStream(aStream, aCount, aItems) { icssrv = Components.classes["@mozilla.org/calendar/ics-service;1"] .getService(Components.interfaces.calIICSService); var calComp = icssrv.createIcalComponent("VCALENDAR"); calComp.version = "2.0"; calComp.prodid = "-//Mozilla.org/... | |
var calComp = icssrv.parseICS(aData); | var calComp = icssrv.parseICS(str); | function ics_importFromStream(aStream, aCount) { var items = new Array(); icssrv = Components.classes["@mozilla.org/calendar/ics-service;1"] .getService(Components.interfaces.calIICSService); var calComp = icssrv.parseICS(aData); var subComp = calComp.getFirstSubcomponent("ANY"); wh... |
var event = createEvent(); | var event = Components.classes["@mozilla.org/calendar/event;1"] .createInstance(Components.interfaces.calIEvent); | function ics_importFromStream(aStream, aCount) { var items = new Array(); icssrv = Components.classes["@mozilla.org/calendar/ics-service;1"] .getService(Components.interfaces.calIICSService); var calComp = icssrv.parseICS(aData); var subComp = calComp.getFirstSubcomponent("ANY"); wh... |
var todo = createToDo(); | var todo = Components.classes["@mozilla.org/calendar/todo;1"] .createInstance(Components.interfaces.calITodo); | function ics_importFromStream(aStream, aCount) { var items = new Array(); icssrv = Components.classes["@mozilla.org/calendar/ics-service;1"] .getService(Components.interfaces.calIICSService); var calComp = icssrv.parseICS(aData); var subComp = calComp.getFirstSubcomponent("ANY"); wh... |
if (gCurrentAccountData && gCurrentAccountData.wizardSkipPanels) { | var skipPanels = ""; try { skipPanels = gCurrentAccountData.wizardSkipPanels.toString().toLowerCase(); } catch(ex) {} if (skipPanels == "true") { | function identityPageValidate(){ var name = document.getElementById("fullName").value; if (!name) { var alertText = gPrefsBundle.getString("enterName"); window.alert(alertText); return false; } if (!validateEmail()) return false; var pageData = parent.GetPageData(); setPageData(pageData, "identity", "ful... |
if (isMailAccount && isMailAccount.value) { setNextPage("identitypage","serverpage"); setNextPage("serverpage","loginpage"); setNextPage("loginpage","accnamepage"); setNextPage("accnamepage","done"); } else { setNextPage("identitypage","newsserver"); setNextPage("newsserver","accnamepage"); setNextPage("accnamepage","d... | if (isMailAccount && isMailAccount.value) wizardPanels = new Array("serverpage", "loginpage", "accnamepage"); else wizardPanels = new Array("newsserver", "accnamepage"); skipArray = skipPanels.split(","); var skipHash = new Array(); for (i = 0; i < skipArray.length; i++) skipHash[skipArray[i]] = skipArray[i]; i = ... | function identityPageValidate(){ var name = document.getElementById("fullName").value; if (!name) { var alertText = gPrefsBundle.getString("enterName"); window.alert(alertText); return false; } if (!validateEmail()) return false; var pageData = parent.GetPageData(); setPageData(pageData, "identity", "ful... |
wizardPanels.unshift("identitypage"); wizardPanels.push("done"); for (i = 0; i < (wizardPanels.length-1); i++) setNextPage(wizardPanels[i], wizardPanels[i+1]); | function identityPageValidate(){ var name = document.getElementById("fullName").value; if (!name) { var alertText = gPrefsBundle.getString("enterName"); window.alert(alertText); return false; } if (!validateEmail()) return false; var pageData = parent.GetPageData(); setPageData(pageData, "identity", "ful... | |
setNextPage("accounttype","identitypage"); var skipPanels = ""; try { skipPanels = gCurrentAccountData.wizardSkipPanels.toString().toLowerCase(); } catch(ex) {} if (skipPanels == "true") { setNextPage("identitypage","done"); } else { var wizardPanels, i; var isMailAccount = pageData.accounttype.mailaccount; if ... | function identityPageValidate(){ var name = document.getElementById("fullName").value; if (!name) { var alertText = gPrefsBundle.getString("enterName"); window.alert(alertText); return false; } if (!validateEmail()) return false; var pageData = parent.GetPageData(); setPageData(pageData, "identity", "ful... | |
if (MisspelledWord != "") { | if (MisspelledWord) { | function IgnoreAll(){ if (MisspelledWord != "") { spellChecker.IgnoreWordAllOccurrences(MisspelledWord); } NextWord();} |
editorShell.IgnoreWordAllOccurrences(misspelledWord); | spellChecker.IgnoreWordAllOccurrences(misspelledWord); | function IgnoreAll(){ dump("SpellCheck: IgnoreAll\n"); if (misspelledWord != "") { editorShell.IgnoreWordAllOccurrences(misspelledWord); } NextWord();} |
var isCancelled = !BookmarksUtils.any(transaction.isValid) | var isCancelled = !BookmarksUtils.any(transaction.isValid); | importBookmarks: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = Book... |
gBMtxmgr.doTransaction(transaction); | BMSVC.transactionManager.doTransaction(transaction); | importBookmarks: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = Book... |
var countBefore = parseInt(BookmarksUtils.getProperty(rTarget, RDF_NS+"nextVal")); var args = [{ property: NC_NS+"URL", literal: fileName}]; this.doBookmarksCommand(rTarget, NC_NS_CMD+"import", args); var countAfter = parseInt(BookmarksUtils.getProperty(rTarget, RDF_NS+"nextVal")); | var countBefore = parseInt(BookmarksUtils.getProperty(rTarget, gRDF_NS+"nextVal")); var args = [{ property: gNC_NS+"URL", literal: fileName}]; this.doBookmarksCommand(rTarget, gNC_NS_CMD+"import", args); var countAfter = parseInt(BookmarksUtils.getProperty(rTarget, gRDF_NS+"nextVal")); | importBookmarksFromFile: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitl... |
var transaction = new BookmarkImportTransaction("import"); | if (countAfter - countBefore > 1) gBkmkTxnSvc.startBatch(); | importBookmarksFromFile: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitl... |
transaction.item .push(rChild); transaction.parent .push(rTarget); transaction.index .push(index); | gBkmkTxnSvc.createAndCommitTxn(gBkmkTxnSvc.IMPORT, "IMPORT", rChild, index, rTarget, 0, null); | importBookmarksFromFile: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitl... |
BMSVC.transactionManager.doTransaction(transaction); | if (countAfter - countBefore > 1) gBkmkTxnSvc.endBatch(); | importBookmarksFromFile: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitl... |
var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetModuleName( top.importType, index); top.selectedModuleName = name; | var module = importService.GetModule(importType, index); var name = importService.GetModuleName(importType, index); selectedModuleName = name; | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p... |
switch( top.importType ) | switch(importType) | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p... |
} | function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (m... | |
var opmlDom = parser.parseFromString(text, 'text/xml'); | var opmlDom = parser.parseFromString(text, 'application/xml'); | importOPML: function() { var rv = pickOpen(this.mBundle.getString("subscribe-OPMLImportTitle"), '$xml $opml $all'); if(rv.reason == PICK_CANCEL) return; var file = new LocalFile(rv.file, MODE_RDONLY); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(I... |
this._updateUseCurrentButton(); window.addEventListener("focus", this._updateUseCurrentButton, false); | init: function () { this._pane = document.getElementById("paneMain"); }, | |
this.translateMenu = document.getElementById("menuitem-translate"); | init : function() { // XXXjag is this still needed? It's currently just "" this.defaultStatus = gNavigatorBundle.getString("defaultStatus"); this.urlBar = document.getElementById("urlbar"); this.throbberElement = document.getElementById("navigator-throbber"); this.statusMeter = document.g... | |
myIpAddress.eval = dnsResolve.eval = proxyAlert.eval = null; myIpAddress.call = dnsResolve.call = proxyAlert.call = null; myIpAddress.apply = dnsResolve.apply = proxyAlert.apply = null; | init: function(pacURI, pacText) { // remove PAC configuration if requested if (pacURI == "" || pacText == "") { this._findProxyForURL = null; this._sandBox = null; return; } // allocate a fresh Sandbox to clear global scope for new PAC script this.... | |
this.startPageCheck(); | init: function () { this.mPane = document.getElementById("paneGeneral"); #ifdef XP_WIN document.getElementById('mail.checkDefaultMail').valueFromPreferences = this.onReadDefaultMailPref(); document.getElementById('mail.checkDefaultNews').valueFromPreferences = this.onReadDefaultNewsPref(); document.getEl... | |
this.updateModeItems(); | this.updateModeItems(); #ifdef MOZ_SAFE_BROWSING this.updateSBItems(); #endif | init: function () { this._inited = true; var advancedPrefs = document.getElementById("advancedPrefs"); var preference = document.getElementById("browser.preferences.advanced.selectedTabIndex"); if (preference.value === null) return; advancedPrefs.selectedIndex = preference.value; this.upda... |
this.closeBranches( window.arguments[1] ); | this.closeBranches( window.arguments[1], window.arguments[2] ); | init: function () { if( window.queuedTag ) { this.onpageload( window.queuedTag ); } if( window.arguments[1] ) this.closeBranches( window.arguments[1] ); }, |
var useButton = document.getElementById("browserUseCurrent"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var win = wm.getMostRecentWindow("navigator:browser"); if (win) { var tabbrowser = win.document.getElementById("content"); if (tabbr... | this._updateUseCurrentButton(); if (document.documentElement.instantApply) window.addEventListener("focus", this._updateUseCurrentButton, false); | init: function () { this._pane = document.getElementById("paneGeneral"); var useButton = document.getElementById("browserUseCurrent"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var win = wm.ge... |
this._sandBox = new Sandbox(); | this._sandBox = Components.util.evalInSandbox(pacUtils, pacURI); | init: function(pacURI, pacText) { // remove PAC configuration if requested if (pacURI == "" || pacText == "") { this._findProxyForURL = null; this._sandBox = null; } // allocate a fresh Sandbox to clear global scope for new PAC script this._sandBox = new Sand... |
var mypac = pacUtils + pacText; | init: function(pacURI, pacText) { // remove PAC configuration if requested if (pacURI == "" || pacText == "") { this._findProxyForURL = null; this._sandBox = null; } // allocate a fresh Sandbox to clear global scope for new PAC script this._sandBox = new Sand... | |
evalInSandbox(mypac, this._sandBox, pacURI); | Components.util.evalInSandbox(pacText, pacURI, this._sandBox); | init: function(pacURI, pacText) { // remove PAC configuration if requested if (pacURI == "" || pacText == "") { this._findProxyForURL = null; this._sandBox = null; } // allocate a fresh Sandbox to clear global scope for new PAC script this._sandBox = new Sand... |
if (windowDocShell) windowDocshell.parentURIContentListener = this; | if (windowDocShell) { windowDocshell .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIURIContentListener) .parentContentListener = this; } | init: function(toplevelWindow, contentWindow) { const nsIWebBrowserChrome = Components.interfaces.nsIWebBrowserChrome; this.toplevelWindow = toplevelWindow; this.contentWindow = contentWindow; // hook up the whole parent chain thing var windowDocShell = this.convertWindowToDocS... |
okButton.label = bundle.getFormattedString("installButtonDisabledLabel", [this._installCountdown]); | okButton.label = bundle.getFormattedString("installButtonDisabledLabel", [_installCountdown.toFixed(1)]); | XPInstallConfirm.init = function (){ var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, 1); // The default return value is "Cancel" var itemList = doc... |
this._installCountdownInterval = setInterval("XPInstallConfirm.okButtonCountdown()", 1000); | function okButtonCountdown() { _installCountdown -= 0.1; if (_installCountdown <= 0) { okButton.label = bundle.getString("installButtonLabel"); okButton.disabled = false; clearInterval(_installCountdownInterval); _installCountdownInterval = -1; } else okButton.label = bundle.getFormattedString("installButtonDisabledLa... | XPInstallConfirm.init = function (){ var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, 1); // The default return value is "Cancel" var itemList = doc... |
var introString = bundle.getString("itemWarningIntroSingle"); | var introString = bundle.getString("itemWarnIntroSingle"); | XPInstallConfirm.init = function (){ var _installCountdown; var _installCountdownInterval; var _focused; var _timeout; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); t... |
introString = bundle.getFormattedString("itemWarningIntroMultiple", [numItemsToInstall / 4]); | introString = bundle.getFormattedString("itemWarnIntroMultiple", [numItemsToInstall / 4]); | XPInstallConfirm.init = function (){ var _installCountdown; var _installCountdownInterval; var _focused; var _timeout; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); t... |
} | init: function(toplevelWindow, contentWindow) { this.toplevelWindow = toplevelWindow; this.contentWindow = contentWindow; // hook up the whole parent chain thing var windowDocShell = this.convertWindowToDocShell(toplevelWindow); if (windowDocShell) windowDocshell.par... | |
if (this.mLDAPPrefsService) { this.mLDAPPrefsService.migratePrefsIfNeeded(); } | init: function () { if (kLDAPPrefContractID in Components.classes) this.mLDAPPrefsService = Components.classes[kLDAPPrefContractID].getService(Components.interfaces.nsILDAPPrefsService); this.createDirectoriesList(); // build the local address book menu list. We do this by hand instead of using the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.