rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
node = document.getElementById("fileAttachmentMenu"); if (node) node.setAttribute("disabled", "true"); | function HideMessageHeaderPane(){ var node = document.getElementById("collapsedHeaderView"); if (node) node.collapsed = true; node = document.getElementById("expandedHeaderView"); if (node) node.collapsed = true;} | |
node = document.getElementById("fileAttachmentMenu"); if (node) node.setAttribute("disabled", "true"); | function HideMessageHeaderPane(){ var node = document.getElementById("collapsedHeaderView"); if (node) node.collapsed = true; node = document.getElementById("expandedHeaderView"); if (node) node.collapsed = true; node = document.getElementById("attachmentView"); if (node) node.collapsed = true;} | |
node.setAttribute("collapsed", "true"); | node.collapsed = true; | function HideMessageHeaderPane(){ var node = document.getElementById("collapsedHeaderView"); if (node) node.setAttribute("collapsed", "true"); node = document.getElementById("expandedHeaderView"); if (node) node.setAttribute("collapsed", "true");} |
# sometimes insertions occur between the "open in tabs" menuitem and # menuseparator. the eventual children of the menupopup have should # have already been closed at this stage, so it''s ok to grab the first # "open in tabs" menuitem and menuseparator. var nodeList; nodeList = aTarget.getElementsByAttribute("c... | if (aTarget.hasChildNodes() && aTarget.lastChild.getAttribute("class") == "openintabs-menuitem") { aTarget.removeChild(aTarget.lastChild); aTarget.removeChild(aTarget.lastChild); } | hideOpenInTabsMenuItem: function (aTarget) {# sometimes insertions occur between the "open in tabs" menuitem and# menuseparator. the eventual children of the menupopup have should# have already been closed at this stage, so it''s ok to grab the first# "open in tabs" menuitem and menuseparator. var nodeLis... |
if (!aTarget.hasChildNodes()) return; if (aTarget.lastChild.id == "openintabs-menuitem") { aTarget.removeChild(aTarget.lastChild); aTarget.removeChild(aTarget.lastChild); } | # sometimes insertions occur between the "open in tabs" menuitem and # menuseparator. the eventual children of the menupopup have should # have already been closed at this stage, so it''s ok to grab the first # "open in tabs" menuitem and menuseparator. var nodeList; nodeList = aTarget.getElementsByAttribute("c... | hideOpenInTabsMenuItem: function (aTarget) { if (!aTarget.hasChildNodes()) return; if (aTarget.lastChild.id == "openintabs-menuitem") { aTarget.removeChild(aTarget.lastChild); aTarget.removeChild(aTarget.lastChild); } }, |
if (gMsgFolder) { if (gMsgFolder.flags & MSG_FOLDER_FLAG_INBOX) { document.getElementById("folderCheckForNewMessages").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... | |
var controls = document.getElementsByAttribute("wsm_persist", "true"); | var controls = document.getElementsByAttribute("hidable", "true"); | 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... |
var controlName = control.id; if (!controlName) continue; var controlNameSplit = controlName.split("."); if (controlNameSplit.length < 2) continue; var controlType = controlNameSplit[0]; | 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 ((!hideFor || hideFor == "") && (controlType == "server" || controlType == "identity")) continue; | if (!hideFor || hideFor == "") { dump("this should not happen, things that are hidable should have hidefor set\n"); continue; } | 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 (!box) continue; | if (!box) { dump("this should not happen, things that are hidable should be in a box\n"); continue; } | 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 ((controlType != "server" && controlType != "identity" && controlType != serverType) || hideForBool) { | if (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... |
var serverPrefContainer = document.getElementById("serverPrefContainer"); if (serverPrefContainer) serverPrefContainer.removeAttribute("hidden"); | 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... | |
document.getElementById("key_toggleMessagePane").removeAttribute("disabled"); | function HidingAccountCentral(){ try { window.frames["accountCentralPane"].location.href = "about:blank"; } catch (ex) { dump("Error hiding AccountCentral page -> " + ex + "\n"); } gAccountCentralLoaded = false;} | |
try { window.frames["accountCentralPane"].location.href = "about:blank"; } catch (ex) { dump("Error hiding AccountCentral page -> " + ex + "\n"); } document.getElementById("key_toggleMessagePane").removeAttribute("disabled"); | function HidingAccountCentral(){ try { window.frames["accountCentralPane"].location.href = "about:blank"; } catch (ex) { dump("Error hiding AccountCentral page -> " + ex + "\n"); } document.getElementById("key_toggleMessagePane").removeAttribute("disabled"); gAccountCentralLoaded = false;} | |
ClearThreadPane(); | ClearThreadPane(); GetUnreadCountElement().hidden = true; GetTotalCountElement().hidden = true; GetMessagePane().collapsed = true; document.getElementById("threadpane-splitter").collapsed = true; document.getElementById("key_toggleMessagePane").setAttribute("disabled", "true"); | function HidingThreadPane(){ ClearThreadPane();} |
var currentProfileItem = document.getElementById( ( "profileName_" + currentProfile ) ); | function highlightCurrentProfile(){ try { var currentProfile = profile.currentProfile; if( !currentProfile ) return; var currentProfileItem = document.getElementById( ( "profileName_" + currentProfile ) ); var profileList = document.getElementById( "profiles" ); if( currentProfileItem ) { prof... | |
profileList.selectItem( currentProfileItem ); profileList.ensureElementIsVisible( currentProfileItem ); | var currentProfileIndex = profileList.view.getIndexOfItem(currentProfileItem); profileList.view.selection.select( currentProfileIndex ); profileList.treeBoxObject.ensureRowIsVisible( currentProfileIndex ); | function highlightCurrentProfile(){ try { var currentProfile = profile.currentProfile; if( !currentProfile ) return; var currentProfileItem = document.getElementById( ( "profileName_" + currentProfile ) ); var profileList = document.getElementById( "profiles" ); if( currentProfileItem ) { prof... |
baseNode.setAttribute("style", "background-color: " + highBackColor + "; color: " + highTextColor + ";"); | baseNode.setAttribute("style", "background-color: " + highBackColor + "; color: " + highTextColor + ";" + "display: inline; font-size: inherit; padding: 0;"); | 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 PageLoader = getBrowser().webNavigation.QueryInterface(pageLoaderIface); | var PageLoader = gBrowser.webNavigation.QueryInterface(pageLoaderIface); | function highlightSyntax(){ var highlightSyntaxCmd = document.getElementById("cmd_highlightSyntax"); var highlightSyntax = highlightSyntaxCmd.getAttribute("checked") != "true"; highlightSyntaxCmd.setAttribute("checked", highlightSyntax); gPrefs.setBoolPref("view_source.syntax_highlight", highlightSyntax); var Page... |
finder.caseSensitive = document.getElementById("find-case-sensitive").checked; | finder.caseSensitive = this.shouldBeCaseSensitive(word); | 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... |
var count = gHistoryOutliner.outlinerBoxObject.view.selection.count; | var count = gHistoryTree.treeBoxObject.view.selection.count; | function historyAddBookmarks(){ var count = gHistoryOutliner.outlinerBoxObject.view.selection.count; var url; var title; if (count == 1) { var currentIndex = gHistoryOutliner.currentIndex; url = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "URL"); title = gHistoryOutliner.outlinerBoxOb... |
var currentIndex = gHistoryOutliner.currentIndex; url = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "URL"); title = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "Name"); | var currentIndex = gHistoryTree.currentIndex; url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL"); title = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "Name"); | function historyAddBookmarks(){ var count = gHistoryOutliner.outlinerBoxObject.view.selection.count; var url; var title; if (count == 1) { var currentIndex = gHistoryOutliner.currentIndex; url = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "URL"); title = gHistoryOutliner.outlinerBoxOb... |
var rangeCount = gHistoryOutliner.outlinerBoxObject.view.selection.getRangeCount(); | var rangeCount = gHistoryTree.treeBoxObject.view.selection.getRangeCount(); | function historyAddBookmarks(){ var count = gHistoryOutliner.outlinerBoxObject.view.selection.count; var url; var title; if (count == 1) { var currentIndex = gHistoryOutliner.currentIndex; url = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "URL"); title = gHistoryOutliner.outlinerBoxOb... |
gHistoryOutliner.outlinerBoxObject.view.selection.getRangeAt(i, min, max); | gHistoryTree.treeBoxObject.view.selection.getRangeAt(i, min, max); | function historyAddBookmarks(){ var count = gHistoryOutliner.outlinerBoxObject.view.selection.count; var url; var title; if (count == 1) { var currentIndex = gHistoryOutliner.currentIndex; url = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "URL"); title = gHistoryOutliner.outlinerBoxOb... |
url = gHistoryOutliner.outlinerBoxObject.view.getCellText(k, "URL"); title = gHistoryOutliner.outlinerBoxObject.view.getCellText(k, "Name"); | url = gHistoryTree.treeBoxObject.view.getCellText(k, "URL"); title = gHistoryTree.treeBoxObject.view.getCellText(k, "Name"); | function historyAddBookmarks(){ var count = gHistoryOutliner.outlinerBoxObject.view.selection.count; var url; var title; if (count == 1) { var currentIndex = gHistoryOutliner.currentIndex; url = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "URL"); title = gHistoryOutliner.outlinerBoxOb... |
BookmarksUtils.addBookmark(url, title, undefined, true); | BookmarksUtils.addBookmark(url, title, null, true); | function historyAddBookmarks(){ var count = gHistoryTree.treeBoxObject.view.selection.count; var url; var title; if (count == 1) { var currentIndex = gHistoryTree.currentIndex; url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL"); title = gHistoryTree.treeBoxObject.view.getCellText(curren... |
BookmarksUtils.addBookmark(url, title, undefined, false); | BookmarksUtils.addBookmark(url, title, null, false); | function historyAddBookmarks(){ var count = gHistoryTree.treeBoxObject.view.selection.count; var url; var title; if (count == 1) { var currentIndex = gHistoryTree.currentIndex; url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL"); title = gHistoryTree.treeBoxObject.view.getCellText(curren... |
SortInNewDirection(find_sort_direction(find_sort_column())); | function HistoryCommonInit(){ gHistoryTree = document.getElementById("historyTree"); gSearchBox = document.getElementById("search-box"); var treeController = new nsTreeController(gHistoryTree); gHistoryGrouping = document.getElementById("viewButton").getAttribute("selectedsort"); if (gHistoryGroupin... | |
gHistoryTree.focus(); gHistoryTree.treeBoxObject.view.selection.select(0); | 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... |
var pbi = pb.QueryInterface(Components.interfaces.nsIPrefBranchInternal); | var pbi = pb.QueryInterface(Components.interfaces.nsIPrefBranch2); | function HistoryCommonInit(){ gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
gHistoryOutliner = document.getElementById("historyOutliner"); | gHistoryTree = document.getElementById("historyTree"); | function HistoryInit(){ gHistoryOutliner = document.getElementById("historyOutliner"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
var outlinerController = new nsOutlinerController(gHistoryOutliner); | var treeController = new nsTreeController(gHistoryTree); | function HistoryInit(){ gHistoryOutliner = document.getElementById("historyOutliner"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
gHistoryOutliner.controllers.appendController(historyController); | gHistoryTree.controllers.appendController(historyController); | function HistoryInit(){ gHistoryOutliner = document.getElementById("historyOutliner"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
gHistoryOutliner.setAttribute("ref", uri); | gHistoryTree.setAttribute("ref", uri); | function HistoryInit(){ gHistoryOutliner = document.getElementById("historyOutliner"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
gHistoryOutliner.focus(); gHistoryOutliner.outlinerBoxObject.view.selection.select(0); | gHistoryTree.focus(); gHistoryTree.treeBoxObject.view.selection.select(0); | function HistoryInit(){ gHistoryOutliner = document.getElementById("historyOutliner"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); gHistoryStatus = ... |
var tree = document.getElementById("historyTree"); var historyController = new nsTreeController(tree); | function HistoryInit() { var tree = document.getElementById("historyTree"); var historyController = new nsTreeController(tree); var children = document.getElementById('treechildren-bookmarks'); if (children.firstChild) tree.selectItem(children.firstChild); tree.focus(); // do a sort RefreshS... | |
tree.selectItem(children.firstChild); tree.focus(); | gHistoryTree.selectItem(children.firstChild); gHistoryTree.focus(); | function HistoryInit() { var tree = document.getElementById("historyTree"); var historyController = new nsTreeController(tree); var children = document.getElementById('treechildren-bookmarks'); if (children.firstChild) tree.selectItem(children.firstChild); tree.focus(); // do a sort RefreshS... |
dump("Updating sort..\n"); | function HistoryInit() { var tree = document.getElementById("historyTree"); var historyController = new nsTreeController(tree); var children = document.getElementById('treechildren-bookmarks'); if (children.firstChild) tree.selectItem(children.firstChild); tree.focus(); // do a sort RefreshS... | |
var currentIndex = gHistoryOutliner.currentIndex; | var currentIndex = gHistoryTree.currentIndex; | function historyOnClick(aEvent){ // This is kind of a hack but matches the currently implemented behaviour. // If a status bar is not present, assume we're in sidebar mode, and thus single clicks on containers // will open the container. Single clicks on non-containers are handled below in historyOnSelect. if (!gH... |
gHistoryOutliner.outlinerBoxObject.getCellAt(aEvent.clientX, aEvent.clientY, row, col, elt); if (row.value >= 0 && isContainer(gHistoryOutliner, row.value)) gHistoryOutliner.outlinerBoxObject.view.toggleOpenState(row.value); | gHistoryTree.treeBoxObject.getCellAt(aEvent.clientX, aEvent.clientY, row, col, elt); if (row.value >= 0 && isContainer(gHistoryTree, row.value)) gHistoryTree.treeBoxObject.view.toggleOpenState(row.value); | function historyOnClick(aEvent){ // This is kind of a hack but matches the currently implemented behaviour. // If a status bar is not present, assume we're in sidebar mode, and thus single clicks on containers // will open the container. Single clicks on non-containers are handled below in historyOnSelect. if (!gH... |
var currentIndex = gHistoryOutliner.currentIndex; var rowIsContainer = gHistoryGrouping == "day" ? isContainer(gHistoryOutliner, currentIndex) : false; var url = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "URL"); | var currentIndex = gHistoryTree.currentIndex; var rowIsContainer = gHistoryGrouping == "day" ? isContainer(gHistoryTree, currentIndex) : false; var url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL"); | function historyOnSelect(){ if (!gHistoryStatus) { OpenURL(false); return; } // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var match; var currentIndex = gHistoryOutliner.currentIndex; var rowIsContainer = gHistoryGrouping == "day" ? isCon... |
if (gHistoryStatus) gHistoryStatus.label = url; } else { if (gHistoryStatus) gHistoryStatus.label = ""; | function historyOnSelect(){ // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var match; var currentIndex = gHistoryTree.currentIndex; var rowIsContainer = (gHistoryGrouping == "day" || gHistoryGrouping == "dayandsite") ? isContainer(gHistoryTree, currentInd... | |
var pbi = pb.QueryInterface(Components.interfaces.nsIPrefBranchInternal); | var pbi = pb.QueryInterface(Components.interfaces.nsIPrefBranch2); | function HistoryPanelUnload(){ var pb = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); var pbi = pb.QueryInterface(Components.interfaces.nsIPrefBranchInternal); pbi.removeObserver("browser.history.grouping", groupObserver, false);} |
e.scriptInstance.url.search(console.fbreaks[fbp].url) != -1) | e.scriptInstance.url.indexOf(console.fbreaks[fbp].url) != -1) | function hookScriptSealed (e){ if (!("componentPath" in console)) { var ary = e.scriptInstance.url.match (/(.*)venkman-service\.js$/); if (ary) { if (!console.prefs["enableChromeFilter"]) { dispatch ("debug-instance-on", { scriptIn... |
if ((!mask.nickRE || user.unicodeName.match(mask.nickRE)) && | var lowerNick = this.parent.toLowerCase(user.unicodeName); if ((!mask.nickRE || lowerNick.match(mask.nickRE)) && | 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 str = "<html>\n" + "<head>\n" + "<title>HTMLTitle</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; aStream.write(str, str.length); | var dateFormatter = Components.classes["@mozilla.org/calendar/datetime-formatter;1"] .getService(Components.interfaces.calIDateTimeFormatter); var html = <html> <head> <title>HTMLTitle</title> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> <style type='text/css'/> </head> <body> <!-- Note on the ... | function html_exportToStream(aStream, aCount, aItems) { var str = "<html>\n" + "<head>\n" + "<title>HTMLTitle</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; aStream.write(... |
var start = item.startDate.jsDate; var end = item.endDate.jsDate; var when = item.startDate + " -- " + item.endDate; dump(when+"\n"); var desc = item.description; if (desc == null) desc = ""; if (desc.length > 0) { if (desc.indexOf("\n ") >= 0 || desc.indexOf("\n\t") >= 0 || desc.indexOf(" ") == 0 || desc.indexOf("\t"... | var ev = <div class='vevent'/>; ev.appendChild( <div> <div class='key summarykey'>Title</div> <div class='value summary'>{item.title}</div> </div> ); var startstr = new Object(); var endstr = new Object(); dateFormatter.formatInterval(item.startDate, item.endDate, startstr, endstr); var seperator = ""; if (endst... | function html_exportToStream(aStream, aCount, aItems) { var str = "<html>\n" + "<head>\n" + "<title>HTMLTitle</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; aStream.write(... |
str = "<div><p>"; str += "<B>Title: </B>\t" + item.title + "<BR>\n"; str += "<B>When: </B>\t" + when.replace("--", "–") + "<BR>\n"; str += "<B>Where: </B>\t" + item.location + "<BR>\n"; str += "</p>\n"; str += desc; str += "</div>\n"; aStream.write(str, str.length); | ev.appendChild( <div> <div class='key'>When</div> <div class='value'> <abbr class='dtstart' title={item.startDate.icalString}>{startstr.value}</abbr> {seperator} <abbr class='dtend' title={item.endDate.icalString}>{endstr.value}</abbr> </div> </div> ); if (item.getProperty('LOCATION')) { ev.appendChild( <div> <div c... | function html_exportToStream(aStream, aCount, aItems) { var str = "<html>\n" + "<head>\n" + "<title>HTMLTitle</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; aStream.write(... |
str = "\n</body>\n</html>\n"; aStream.write(str, str.length); | var convStream = Components.classes["@mozilla.org/intl/converter-output-stream;1"] .getService(Components.interfaces.nsIConverterOutputStream); convStream.init(aStream, 'UTF-8', 0, 0x0000); var str = html.toXMLString() convStream.writeString(str); | function html_exportToStream(aStream, aCount, aItems) { var str = "<html>\n" + "<head>\n" + "<title>HTMLTitle</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; aStream.write(... |
this._engine = aEngine.QueryInterface(Ci.nsISearchEngine); | this._engine = aEngine; | function iconLoadListener(aChannel, aEngine) { this._countRead = 0; this._channel = aChannel; this._bytes = [], this._engine = aEngine.QueryInterface(Ci.nsISearchEngine);} |
var convStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .getService(Components.interfaces.nsIConverterInputStream); convStream.init(aStream, 'UTF-8', 0, 0x0000); | var unicodeConverter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"] .createInstance(Components.interfaces.nsIScriptableUnicodeConverter); unicodeConverter.charset = "UTF-8"; var str = unicodeConverter.ConvertFromUnicode(octetArray); | function ics_importFromStream(aStream, aCount) { var items = new Array(); // Interpret the byte-array as an utf8 string, and convert into a // javascript string. var convStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .getService(Components.interfaces.... |
var tmpStr = {}; var str = ""; while (convStream.readString(-1, tmpStr)) { str += tmpStr.value; } | function ics_importFromStream(aStream, aCount) { var items = new Array(); // Interpret the byte-array as an utf8 string, and convert into a // javascript string. var convStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .getService(Components.interfaces.... | |
hasExdate = subComp.getFirstProperty("EXDATE"); if (isFromOldSunbird && hasExdate) { todo = fixOldSunbirdExceptions(todo); } | function ics_importFromStream(aStream, aCount) { var items = new Array(); // Read in the string. Note that it isn't a real string at this point, because // likely, the file is utf8. The multibyte chars show up as multiple 'chars' // in this string. So call it an array of octets for now. var octet... | |
var isMailAccount = pageData.accounttype.mailaccount; if (isMailAccount && isMailAccount.value) { if (gCurrentAccountData && gCurrentAccountData.wizardSkipPanels) { setNextPage("identitypage","done"); } else { | if (gCurrentAccountData && gCurrentAccountData.wizardSkipPanels) { setNextPage("identitypage","done"); } else { var isMailAccount = pageData.accounttype.mailaccount; if (isMailAccount && isMailAccount.value) { | 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... |
} else { setNextPage("identitypage","newsserver"); setNextPage("newsserver","accnamepage"); setNextPage("accnamepage","done"); | 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... | |
else return; | function IfFourSidesSameStyle(propertyBase, propertySuffix, value, checkboxID, previewID, elt){ // value is the value of the '*-top' property var checkbox = document.getElementById(checkboxID); if (!checkbox || !checkbox.checked) return; if (!value) { if (elt) { value = elt.value; } else return; } v... | |
return jsdIExecutionHook.HOOK_RETURN_CONTINUE; | return jsdIExecutionHook.RETURN_CONTINUE; | function ih_exehook (cx, state, type, rv){ dd ("onInterruptHook (" + cx + ", " + state + ", " + type + ")"); return jsdIExecutionHook.HOOK_RETURN_CONTINUE;} |
file = CreateNewFileSpec( file); | function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if (addInterface... | |
mailInterface.SetLocation( filePicker.QueryInterface( Components.interfaces.nsIFileSpec)); | mailInterface.SetData( "mailLocation", CreateNewFileSpec( filePicker.QueryInterface( Components.interfaces.nsIFileSpec))); | function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul... |
var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) | var listbox = document.getElementById('moduleList'); if ( listbox && listbox.selectedItems && (listbox.selectedItems.length == 1) ) | function ImportSelectionChanged(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); SetDivText('description', top.importService.GetModuleDescription(top.importType, index)); }... |
var index = tree.selectedItems[0].getAttribute('list-index'); | var index = listbox.selectedItems[0].getAttribute('list-index'); | function ImportSelectionChanged(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); SetDivText('description', top.importService.GetModuleDescription(top.importType, index)); }... |
if ( className == javaClass ) { return true; } return false; | if ( className == javaClass ) { return true; | function inClass( javaClass, m ) { var argIndex = m.lastIndexOf( "(", m.length ); var methodIndex = m.lastIndexOf( ".", argIndex ); var classIndex = m.lastIndexOf( " ", methodIndex ); var className = m.substr(classIndex +1, methodIndex - classIndex -1 ); if ( className == javaCl... |
return false; } | function inClass( javaClass, m ) { var argIndex = m.lastIndexOf( "(", m.length ); var methodIndex = m.lastIndexOf( ".", argIndex ); var classIndex = m.lastIndexOf( " ", methodIndex ); var className = m.substr(classIndex +1, methodIndex - classIndex -1 ); if ( className == javaCl... | |
items = [0,0].concat(em.getItemList(nsIUpdateItem.TYPE_ADDON, { })); | items = [0,0].concat(em.getUpdateableItemList(gUpdateTypes, { })); | init: function () { gUpdateTypes = window.arguments[0]; gShowMismatch = window.arguments[1]; var items = window.arguments; if (window.arguments.length == 2) { var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManage... |
this.updateManualMarkMode(document.getElementById('manualMark').checked); this.updateJunkLogButton(document.getElementById('enableJunkLogging').checked); | init: function () { this.mPane = document.getElementById("panePrivacy"); this.updateRemoteImagesState(); // Update the MP buttons this.updateMasterPasswordButton(); // build the local address book menu list. We do this by hand instead of using the xul template // builder because of Bug #285076... | |
this.progressBGPosition = 0; | init : function() { this.urlBar = document.getElementById("urlbar"); this.statusbarText = document.getElementById("statusbar-text"); this.stopreloadButton = document.getElementById("reload-stop-button"); this.statusbar = document.getElementById("statusbar"); }, | |
this.createLocalDirectoriesList(); | init: function () { if (kLDAPPrefContractID in Components.classes) this.mLDAPPrefsService = Components.classes[kLDAPPrefContractID].getService(Components.interfaces.nsILDAPPrefsService); this.createDirectoriesList(); this.enableAutocomplete(); this.initLanguageMenu(); document.getElementById('dow... | |
this.updateAppUpdateItems(); this.updateAutoItems(); this.updateModeItems(); | init: function () { this.mPane = document.getElementById("paneAdvanced"); this.updateMarkAsReadTextbox(false); if ("arguments" in window && window.arguments[1] && document.getElementById(window.arguments[1])) document.getElementById("advancedPrefs").selectedTab = document.getElementById(window.argument... | |
this.shouldSuggestAutoChecking = gShowMismatch && !pref.getBoolPref(PREF_UPDATE_EXTENSIONS_AUTOUPDATEENABLED); | try { this.shouldSuggestAutoChecking = !pref.getBoolPref(PREF_UPDATE_EXTENSIONS_ENABLED); } catch (e) { } | init: function () { var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); // Retrieve all items in order to sync their app compatibility information this.items = em.getItemList(nsIUpdateItem.TYPE_ADDON, { }); var pr... |
var oURL = createInstance('@mozilla.org/network/standard-url;1', 'nsIURL'); oURL.spec = serverURL; | var ios = Components.classes["@mozilla.org/network/io-service;1"]. getService(Components.interfaces.nsIIOService); var oURL = ios.newURI(serverURL, null, null); | init: function(serverURL) { var oURL = createInstance('@mozilla.org/network/standard-url;1', 'nsIURL'); oURL.spec = serverURL; // Make sure it is a complete spec // Note that we don't care what the scheme is otherwise. // Should we care? POST works only on http and http... |
}, | } | init: function () { var tzMenuList = document.getElementById("calendar.timezone.menulist"); prefValue = document.getElementById("calendar.timezone.local").value; if (!prefValue) { prefValue = calendarDefaultTimezone(); tzMenuList.value = prefValue; } }, |
this.mRegressionTester = Components.classes["@mozilla.org/layout-debug/regressiontester;1"]. createInstance(nsILayoutRegressionTester) | init : function(aLocalFile, aIsBaseline) { this.mIsBaseline = aIsBaseline; this.mURLs = new Array(); this.readFileList(aLocalFile); }, | |
this.createLocalDirectoriesList(); | init: function () { this.mPane = document.getElementById("panePrivacy"); this.updateRemoteImagesState(); // Update the MP buttons this.updateMasterPasswordButton(); var preference = document.getElementById("mail.preferences.privacy.selectedTabIndex"); if (preference.value) document.getEle... | |
this.observe(pref, "nsPref:changed", array[i]); | this.updateButton(array[i]); this.updateSeparator(); | init: function() { var array = pref.getChildList(this.domain, {}); for (var i in array) this.observe(pref, "nsPref:changed", array[i]); }, |
this.updateAppUpdateItems(); this.updateAutoItems(); this.updateModeItems(); | 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; }, | |
document.getElementById("download-close").hidden=true; | init: function (aSource, aTarget, aDisplayName, aMIMEInfo, startTime, aTempFile, aCancelable) { // document.getElementById("statusbar").hidden=false; BrowserViewDownload(true); document.getElementById("toolbar-download-tag").cachedCancelable=aCancelable; document.getElementById("download-button-stop").... | |
var preference = document.getElementById("mail.preferences.advanced.selectedTabIndex"); if (preference.value) document.getElementById("advancedPrefs").selectedIndex = preference.value; | if ("arguments" in window && window.arguments[1] && document.getElementById(window.arguments[1])) document.getElementById("advancedPrefs").selectedTab = document.getElementById(window.arguments[1]); else { var preference = document.getElementById("mail.preferences.advanced.selectedTabIndex"); if (preference.value) docu... | init: function () { this.mPane = document.getElementById("paneAdvanced"); this.updateMarkAsReadTextbox(false); var preference = document.getElementById("mail.preferences.advanced.selectedTabIndex"); if (preference.value) document.getElementById("advancedPrefs").selectedIndex = preference.value; t... |
this.soundUrlLocation = document.getElementById("soundUrlLocation"); this.newMailNotificationType = document.getElementById("newMailNotificationType"); this.systemSoundCheck(); | init: function() { }, | |
this.mailSoundCheck(); | init: function () { this.mPane = document.getElementById("paneGeneral"); this.startPageCheck(); #ifdef XP_WIN document.getElementById('mail.checkDefaultMail').valueFromPreferences = this.onReadDefaultMailPref(); document.getElementById('mail.checkDefaultNews').valueFromPreferences = this.onReadDe... | |
tzListBox.selectItem(listItem); tzListBox.scrollToIndex(tzListBox.getIndexOfItem(listItem)); | itemToSelect = listItem; | init: function() { dump("init called\n"); var tzListBox = document.getElementById("timezone-listbox"); var icsService = Components.classes["@mozilla.org/calendar/ics-service;1"].createInstance(Components.interfaces.calIICSService); var timezones = icsService.timezoneIds; prefValue... |
if (itemToSelect) { tzListBox.scrollToIndex(tzListBox.getIndexOfItem(itemToSelect)); tzListBox.selectItem(itemToSelect); } | init: function() { dump("init called\n"); var tzListBox = document.getElementById("timezone-listbox"); var icsService = Components.classes["@mozilla.org/calendar/ics-service;1"].createInstance(Components.interfaces.calIICSService); var timezones = icsService.timezoneIds; prefValue... | |
this.initLanguageMenu(); document.getElementById('downloadDictionaries').setAttribute('href', xlateURL('urn:clienturl:composer:spellcheckers')); | init: function () { if (kLDAPPrefContractID in Components.classes) this.mLDAPPrefsService = Components.classes[kLDAPPrefContractID].getService(Components.interfaces.nsILDAPPrefsService); this.createDirectoriesList(); this.enableAutocomplete(); var preference = document.getElementById("mail.preferenc... | |
init: function(aStatusFeedback, aSubscribeMode) | init: function(aMsgWindow, aSubscribeMode) | init: function(aStatusFeedback, aSubscribeMode) { if (!gNumPendingFeedDownloads) // if we aren't already in the middle of downloading feed items... { this.mStatusFeedback = aStatusFeedback; this.mSubscribeMode = aSubscribeMode; if (this.mStatusFeedback) { this.mStatusFeedback.startMe... |
this.mStatusFeedback = aStatusFeedback; | this.mStatusFeedback = aMsgWindow ? aMsgWindow.statusFeedback : null; | init: function(aStatusFeedback, aSubscribeMode) { if (!gNumPendingFeedDownloads) // if we aren't already in the middle of downloading feed items... { this.mStatusFeedback = aStatusFeedback; this.mSubscribeMode = aSubscribeMode; if (this.mStatusFeedback) { this.mStatusFeedback.startMe... |
this.mMsgWindow = aMsgWindow; | init: function(aStatusFeedback, aSubscribeMode) { if (!gNumPendingFeedDownloads) // if we aren't already in the middle of downloading feed items... { this.mStatusFeedback = aStatusFeedback; this.mSubscribeMode = aSubscribeMode; if (this.mStatusFeedback) { this.mStatusFeedback.startMe... | |
this.onImportSourcePageShow(); | init: function () { var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.addObserver(this, "Migration:Started", false); os.addObserver(this, "Migration:ItemBeforeMigrate", false); os.addObserver(this, "Migration:ItemAfterMigrate", false);... | |
}, | } | init: function() { InitWithToolbox(window.parent.document.getElementById("navigator-toolbox")); }, |
this.xpinstallEnabled = pref.getBoolPref(PREF_XPINSTALL_ENABLED); this.xpinstallLocked = pref.prefIsLocked(PREF_XPINSTALL_ENABLED); | init: function () { var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); // Retrieve all items in order to sync their app compatibility information this.items = em.getItemList(nsIUpdateItem.TYPE_ADDON, { }); var pr... | |
okButton.disabled = true; | 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... | |
_installCountdown = 5; | _installCountdown = _installCountdownLength; | 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... |
_installCountdown = 6; | _installCountdown = _installCountdownLength + 1; | 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... |
document.addEventListener("focus", myfocus, true); document.addEventListener("blur", myblur, true); window.addEventListener("unload", myUnload, false); | if (_installCountdownLength > 0) { document.addEventListener("focus", myfocus, true); document.addEventListener("blur", myblur, true); window.addEventListener("unload", myUnload, false); | 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... |
setWidgetsAfterFocus(); | okButton.disabled = true; setWidgetsAfterFocus(); } else okButton.label = bundle.getString("installButtonLabel"); | 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... |
if (chromeFlags == nsIWebBrowserChrome.CHROME_ALL || chromeFlags == nsIWebBrowserChrome.CHROME_DEFAULT) | var res = chromeFlags & nsIWebBrowserChrome.CHROME_ALL; var res2 = chromeFlags & nsIWebBrowserChrome.CHROME_DEFAULT; if ( res == nsIWebBrowserChrome.CHROME_ALL || res2 == nsIWebBrowserChrome.CHROME_DEFAULT) | 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... |
init: function(inputElt) | init: function(aEditor) | init: function(inputElt) { this.uninit(); this.mEditor = inputElt.QueryInterface(Components.interfaces.nsIDOMNSEditableElement).editor; try { this.mInlineSpellChecker = this.mEditor.getInlineSpellChecker(true); // note: this might have been NULL if there is no chance we can spellcheck } catch(e... |
this.mEditor = inputElt.QueryInterface(Components.interfaces.nsIDOMNSEditableElement).editor; | this.mEditor = aEditor; | init: function(inputElt) { this.uninit(); this.mEditor = inputElt.QueryInterface(Components.interfaces.nsIDOMNSEditableElement).editor; try { this.mInlineSpellChecker = this.mEditor.getInlineSpellChecker(true); // note: this might have been NULL if there is no chance we can spellcheck } catch(e... |
sidebar.datasource_uri = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.datasource_uri = " + sidebar.datasource_uri); debug("sidebar.resource = " + sidebar.resource); | sidebarObj.datasource_uri = window.arguments[0]; sidebarObj.resource = window.arguments[1]; debug("sidebarObj.datasource_uri = " + sidebarObj.datasource_uri); debug("sidebarObj.resource = " + sidebarObj.resource); | function Init(){ sidebar.datasource_uri = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.datasource_uri = " + sidebar.datasource_uri); debug("sidebar.resource = " + sidebar.resource); // This will load the datasource, if it isn't already. sidebar.datasource = RDF.GetDataSo... |
sidebar.datasource = RDF.GetDataSource(sidebar.datasource_uri); | sidebarObj.datasource = RDF.GetDataSource(sidebarObj.datasource_uri); | function Init(){ sidebar.datasource_uri = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.datasource_uri = " + sidebar.datasource_uri); debug("sidebar.resource = " + sidebar.resource); // This will load the datasource, if it isn't already. sidebar.datasource = RDF.GetDataSo... |
select_list.database.AddDataSource(sidebar.datasource); | select_list.database.AddDataSource(sidebarObj.datasource); | function Init(){ sidebar.datasource_uri = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.datasource_uri = " + sidebar.datasource_uri); debug("sidebar.resource = " + sidebar.resource); // This will load the datasource, if it isn't already. sidebar.datasource = RDF.GetDataSo... |
select_list.setAttribute('ref', sidebar.resource); | select_list.setAttribute('ref', sidebarObj.resource); | function Init(){ sidebar.datasource_uri = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.datasource_uri = " + sidebar.datasource_uri); debug("sidebar.resource = " + sidebar.resource); // This will load the datasource, if it isn't already. sidebar.datasource = RDF.GetDataSo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.