rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (term.matchAll) { condition = "ALL"; break; } | function getSearchTermString(searchTerms){ var searchIndex; var condition = ""; var count = searchTerms.Count(); for (searchIndex = 0; searchIndex < count; ) { var term = searchTerms.QueryElementAt(searchIndex++, Components.interfaces.nsIMsgSearchTerm); if (condition.length > 1) condition += ' '; ... | |
smimeComposefields.alwaysEncryptMessage = gCurrentIdentity.getBoolAttribute("encrypt_mail_always"); | var encryptionPolicy = gCurrentIdentity.getIntAttribute("encryptionpolicy"); smimeComposefields.alwaysEncryptMessage = encryptionPolicy == 2; | function GetSecurityInfo(){ var smimeComposefields; var msgCompFields = gMsgCompose.compFields; if (msgCompFields) { if (!msgCompFields.securityInfo) { smimeComposefields = Components.classes[smimeCompFieldsContractID].createInstance(ismimeCompFields); if (smimeComposefields) { msgCompFi... |
return smimeComposefields | return smimeComposefields; | function GetSecurityInfo(){ var smimeComposefields; var msgCompFields = gMsgCompose.compFields; if (msgCompFields) { if (!msgCompFields.securityInfo) { smimeComposefields = Components.classes[smimeCompFieldsContractID].createInstance(ismimeCompFields); if (smimeComposefields) { msgCompFi... |
var msgCompFields = msgCompose.compFields; | var msgCompFields = gMsgCompose.compFields; | function GetSecurityInfo(){ var smimeComposefields; var msgCompFields = msgCompose.compFields; if (msgCompFields) { if (!msgCompFields.securityInfo) { smimeComposefields = Components.classes[smimeCompFieldsContractID].createInstance(ismimeCompFields); if (smimeComposefields) { msgCompFie... |
var selectedAB = 0; var abDirEntries = document.getElementById(abListItem); | var selectedAB; try { var abDirEntries = document.getElementById(abListItem); | function GetSelectedAddressBookDirID(abListItem){ var selectedAB = 0; var abDirEntries = document.getElementById(abListItem); if (abDirEntries && abDirEntries.localName == "tree" && abDirEntries.currentIndex >= 0) { var selected = abDirEntries.contentView.getItemAtIndex(abDirEntries.currentIndex); selectedAB =... |
if (abDirEntries && abDirEntries.localName == "tree" && abDirEntries.currentIndex >= 0) { var selected = abDirEntries.contentView.getItemAtIndex(abDirEntries.currentIndex); selectedAB = selected.id; | if (abDirEntries && abDirEntries.localName == "tree" && abDirEntries.currentIndex >= 0) { var selected = abDirEntries.contentView.getItemAtIndex(abDirEntries.currentIndex); selectedAB = selected.id; } if (!selectedAB && abDirEntries && abDirEntries.localName == "menulist" && abDirEntries.selectedItem) selectedAB = a... | function GetSelectedAddressBookDirID(abListItem){ var selectedAB = 0; var abDirEntries = document.getElementById(abListItem); if (abDirEntries && abDirEntries.localName == "tree" && abDirEntries.currentIndex >= 0) { var selected = abDirEntries.contentView.getItemAtIndex(abDirEntries.currentIndex); selectedAB =... |
if (!selectedAB && abDirEntries && abDirEntries.localName == "menulist" && abDirEntries.selectedItem) selectedAB = abDirEntries.selectedItem.getAttribute("id"); if (!selectedAB) | catch (ex) { | function GetSelectedAddressBookDirID(abListItem){ var selectedAB = 0; var abDirEntries = document.getElementById(abListItem); if (abDirEntries && abDirEntries.localName == "tree" && abDirEntries.currentIndex >= 0) { var selected = abDirEntries.contentView.getItemAtIndex(abDirEntries.currentIndex); selectedAB =... |
} | function GetSelectedAddressBookDirID(abListItem){ var selectedAB = 0; var abDirEntries = document.getElementById(abListItem); if (abDirEntries && abDirEntries.localName == "tree" && abDirEntries.currentIndex >= 0) { var selected = abDirEntries.contentView.getItemAtIndex(abDirEntries.currentIndex); selectedAB =... | |
if (!selectedAB) selectedAB = kPersonalAddressbookURI; | function GetSelectedAddressBookDirID(abListItem){ var selectedAB = 0; var abDirEntries = document.getElementById(abListItem); if (abDirEntries && abDirEntries.localName == "tree" && abDirEntries.currentIndex >= 0) { var selected = abDirEntries.contentView.getItemAtIndex(abDirEntries.currentIndex); selectedAB =... | |
var others_tab = document.getElementById("others_tab"); | function getSelectedCerts(){ var ca_tab = document.getElementById("ca_tab"); var mine_tab = document.getElementById("mine_tab"); //var others_tab = document.getElementById("others_tab"); var websites_tab = document.getElementById("websites_tab"); var items = null; if (ca_tab.selected) { items = caOutlinerView.... | |
/* | function getSelectedCerts(){ var ca_tab = document.getElementById("ca_tab"); var mine_tab = document.getElementById("mine_tab"); //var others_tab = document.getElementById("others_tab"); var websites_tab = document.getElementById("websites_tab"); var items = null; if (ca_tab.selected) { items = caOutlinerView.... | |
*/ | function getSelectedCerts(){ var ca_tab = document.getElementById("ca_tab"); var mine_tab = document.getElementById("mine_tab"); //var others_tab = document.getElementById("others_tab"); var websites_tab = document.getElementById("websites_tab"); var items = null; if (ca_tab.selected) { items = caOutlinerView.... | |
if (dirTree.currentIndex < 0) return null; | try { if (dirTree.currentIndex < 0) return null; | function GetSelectedDirectory(){ if (dirTree.currentIndex < 0) return null; var selected = dirTree.contentView.getItemAtIndex(dirTree.currentIndex); return selected.id;} |
var selected = dirTree.contentView.getItemAtIndex(dirTree.currentIndex); return selected.id; | var selected = dirTree.contentView.getItemAtIndex(dirTree.currentIndex); return selected.id; } catch (ex) { return kPersonalAddressbookURI; } | function GetSelectedDirectory(){ if (dirTree.currentIndex < 0) return null; var selected = dirTree.contentView.getItemAtIndex(dirTree.currentIndex); return selected.id;} |
while (selectedItem.localName == "treeitem") { if (selectedItem.getAttribute("container") == "true") | while (selectedItem && selectedItem.nodeType == Node.ELEMENT_NODE) { if (selectedItem.getAttribute("container") == "true" && selectedItem.getAttribute("open") == "true") | getSelectedFolder: function () { var selectedItem = this.getBestItem(); if (!selectedItem) return "NC:BookmarksRoot"; // If we don't check for localName we walk the DOM tree up to the window node, // which is Bad. while (selectedItem.localName == "treeitem") { if (selectedItem.getAttribute("conta... |
var module_name = cell.getAttribute("label"); | module_name = cell.getAttribute("label"); | function getSelectedItem(){ var tree = document.getElementById('device_tree'); var items = tree.selectedItems; selected_slot = null; selected_module = null; if (items.length > 0) { var kind = items[0].getAttribute("pk11kind"); if (kind == "slot") { // get the module cell for this slot cell var cell... |
return messageArray.value; | if (length.value) return messageArray.value; else return null; | function GetSelectedMessages(){ try { var messageArray = {}; var length = {}; var view = GetDBView(); view.getURIsForSelection(messageArray,length); return messageArray.value; } catch (ex) { dump("ex = " + ex + "\n"); return null; }} |
var msgFolder = window.parent.GetMsgFolderFromURI(folderURI); | var msgFolder = window.parent.GetMsgFolderFromUri(folderURI, true); | function GetSelectedMsgFolder(){ var folderURI = window.parent.GetSelectedFolderURI(); var msgFolder = window.parent.GetMsgFolderFromURI(folderURI); return msgFolder;} |
} else if (selTabID == "others_tab") { key = "?others_certs"; | function getSelectedTab(){ var selTab = document.getElementById('certMgrTabbox').selectedItem; var selTabID = selTab.getAttribute('id'); if (selTabID == 'mine_tab') { key = "?my_certs"; } else if (selTabID == "websites_tab") { key = "?web_certs"; } else if (selTabID == "ca_tab") { key = "?ca_certs"; } ... | |
if (tree && tree.selectedItems && tree.selectedItems[0] && tree.selectedItems[0].firstChild && tree.selectedItems[0].firstChild.firstChild) | if (tree) | function GetSelectedTreelistAttribute(tree, attr){ if (tree && tree.selectedItems && tree.selectedItems[0] && tree.selectedItems[0].firstChild && tree.selectedItems[0].firstChild.firstChild) { return tree.selectedItems[0].firstChild.firstChild.getAttribute(attr); } return "";} |
return tree.selectedItems[0].firstChild.firstChild.getAttribute(attr); | if (tree.selectedIndex >= 0 && tree.selectedItems.length > 0 && tree.selectedItems[0] && tree.selectedItems[0].firstChild && tree.selectedItems[0].firstChild.firstChild) { return tree.selectedItems[0].firstChild.firstChild.getAttribute(attr); } | function GetSelectedTreelistAttribute(tree, attr){ if (tree && tree.selectedItems && tree.selectedItems[0] && tree.selectedItems[0].firstChild && tree.selectedItems[0].firstChild.firstChild) { return tree.selectedItems[0].firstChild.firstChild.getAttribute(attr); } return "";} |
return GetSelectedTreelistAttribute(tree,"value") | return GetSelectedTreelistAttribute(tree,"label") | function GetSelectedTreelistValue(tree){ return GetSelectedTreelistAttribute(tree,"value")} |
var folder = GetMsgFolderFromUri(uri); | var folder = GetMsgFolderFromUri(uri, true); | function GetServer(uri){ if (!uri) return null; try { var folder = GetMsgFolderFromUri(uri); return folder.server; } catch (ex) { dump("GetServer("+uri+") failed, ex="+ex+"\n"); } return null;} |
return "safebrowsing.remoteLookups"; | return "browser.safebrowsing.remoteLookups"; | PROT_GlobalStore.getServerCheckEnabledPrefName = function() { return "safebrowsing.remoteLookups";} |
if (servernode.tagName != "treeitem") { | if (servernode.localName != "treeitem") { | function getServerIdAndPageIdFromTree(tree){ var serverId = null; if (tree.selectedItems.length < 1) return null; var node = tree.selectedItems[0]; // get the page to load // (stored in the PageTag attribute of this node) var pageId = node.getAttribute('PageTag'); // get the server's Id // (stored in the Id att... |
getBundle("insufficientWcapVersionError.text", loginTextVars) ); | getWcapBundle("insufficientWcapVersionError.text", loginTextVars) ); | getServerInfo: function( uri ) { loginTextVars = [uri.hostPort]; var loginText; var wcapVersion; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncR... |
return getBundle().formatStringFromName( | return getWcapBundle().formatStringFromName( | getServerInfo: function( uri ) { loginTextVars = [uri.hostPort]; var loginText; var wcapVersion; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncR... |
var icalRootComp; | var str; var icalRootComp = null; | getServerInfo: function( uri ) { var icalRootComp; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncRequest( uri.spec + "version.wcap?fmt-out=text... |
var str = issueSyncRequest( | str = issueSyncRequest( | getServerInfo: function( uri ) { var icalRootComp; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncRequest( uri.spec + "version.wcap?fmt-out=text... |
return null; | throw new Components.Exception("no ical data returned!"); | getServerInfo: function( uri ) { var icalRootComp; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncRequest( uri.spec + "version.wcap?fmt-out=text... |
if (icalRootComp == null) throw new Components.Exception("invalid ical data!"); | getServerInfo: function( uri ) { var icalRootComp; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncRequest( uri.spec + "version.wcap?fmt-out=text... | |
catch (exc) { this.log( "server version request failed: " + errorToString(exc) ); return null; | catch (exc) { this.log( exc ); throw new Components.Exception( getWcapBundle().formatStringFromName( "accessingServerFailedError.text", [uri.hostPort], 1 ), isNaN(exc) ? Components.results.NS_ERROR_FAILURE : exc ); | getServerInfo: function( uri ) { var icalRootComp; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncRequest( uri.spec + "version.wcap?fmt-out=text... |
loginTextVars = [uri.hostPort]; var prop = icalRootComp.getFirstProperty( "PRODID" ); loginTextVars.push( prop ? prop.value : "<unknown>" ); prop = icalRootComp.getFirstProperty( "X-NSCP-SERVERVERSION" ); loginTextVars.push( prop ? prop.value : "<unknown>" ); prop = icalRootComp.getFirstProperty( "X-NSCP-WCAPVERSION" )... | var prop = icalRootComp.getFirstProperty( "X-NSCP-WCAPVERSION" ); if (!prop) { throw new Components.Exception( "missing X-NSCP-WCAPVERSION in\n" + str ); } | getServerInfo: function( uri ) { var icalRootComp; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncRequest( uri.spec + "version.wcap?fmt-out=text... |
loginTextVars, loginTextVars.length ) )) { | vars, vars.length ) )) { | getServerInfo: function( uri ) { var icalRootComp; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncRequest( uri.spec + "version.wcap?fmt-out=text... |
return getWcapBundle().formatStringFromName( "loginDialog.text", loginTextVars, loginTextVars.length ); | return getWcapBundle().formatStringFromName( "loginDialog.text", [uri.hostPort], 1 ); | getServerInfo: function( uri ) { var icalRootComp; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical parsing for now: var str = issueSyncRequest( uri.spec + "version.wcap?fmt-out=text... |
if ((bRefresh || !g_serverTimeDiffs[key]) && this.m_sessionId != null) { var url = (this.sessionUri.spec + "gettime.wcap?appid=mozilla-calendar" + "&fmt-out=text%2Fcalendar&id=" + encodeURIComponent(this.m_sessionId)); | if (bRefresh || !g_serverTimeDiffs[key]) { url += "&fmt-out=text%2Fcalendar"; | getServerTimeDiff: function( bRefresh ) { var key = this.sessionUri.hostPort; if ((bRefresh || !g_serverTimeDiffs[key]) && this.m_sessionId != null) { var url = (this.sessionUri.spec + // xxx todo: assuming same diff for all calids: ... |
var str = issueSyncRequest( url ); | var icalRootComp = this.issueSyncRequest( url, stringToIcal ); | getServerTimeDiff: function( bRefresh ) { var key = this.sessionUri.hostPort; if ((bRefresh || !g_serverTimeDiffs[key]) && this.m_sessionId != null) { var url = (this.sessionUri.spec + // xxx todo: assuming same diff for all calids: ... |
var icalRootComp = getIcsService().parseICS( str ); if (icalRootComp == null) throw new Components.Exception("invalid data, expected ical!"); checkWcapIcalErrno( icalRootComp ); | getServerTimeDiff: function( bRefresh ) { var key = this.sessionUri.hostPort; if ((bRefresh || !g_serverTimeDiffs[key]) && this.m_sessionId != null) { var url = (this.sessionUri.spec + // xxx todo: assuming same diff for all calids: ... | |
var name = frame.functionName ? frame.functionName : "[anonymous]"; | var name = frame.name ? frame.name : "[anonymous]"; | function getStackTrace (){ if (!jsenv.HAS_XPCOM) return "No stack trace available."; var frame = Components.stack.caller; var str = "<top>"; while (frame) { var name = frame.functionName ? frame.functionName : "[anonymous]"; str += "\n" + name + "@" + frame.lineNumber; frame =... |
function getState(captureOrPrefill, threshhold) { stateFound(window.content, captureOrPrefill, threshhold); | function getState(threshhold) { stateFound(window.content, threshhold); | function getState(captureOrPrefill, threshhold) { stateFound(window.content, captureOrPrefill, threshhold); return bestState; } |
return PROT_GlobalStore.getPref_("safebrowsing.provider.0.reportPhishURL"); | return PROT_GlobalStore.getPref_("browser.safebrowsing.provider.0.reportPhishURL"); | PROT_GlobalStore.getSubmitUrl = function() { return PROT_GlobalStore.getPref_("safebrowsing.provider.0.reportPhishURL");} |
flavourList["text/x-moz-url"] = { width: 2, iid: "nsISupportsWString" }; | getSupportedFlavours: function () { var flavourList = { }; flavourList["application/x-moz-file"] = { width: 2, iid: "nsIFile" }; return flavourList; } | |
flavourSet.appendFlavour("text/nsmessageOrFolder"); | flavourSet.appendFlavour("text/nsmessageOrfolder"); | getSupportedFlavours: function () { var flavourSet = new FlavourSet(); flavourSet.appendFlavour("text/x-moz-url"); flavourSet.appendFlavour("text/nsmessageOrFolder"); flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); return flavourSet; } |
if (!isPToolbarDNDEnabled()) return false; var flavourList = { }; flavourList["moz/toolbaritem"] = { width: 2, iid: "nsISupportsWString" }; flavourList["text/unicode"] = { width: 2, iid: "nsISupportsWString" }; return flavourList; | var flavourSet = new FlavourSet(); flavourSet.appendFlavour("moz/rdfitem"); flavourSet.appendFlavour("text/unicode"); return flavourSet; | getSupportedFlavours: function () { // temporary if (!isPToolbarDNDEnabled()) return false; var flavourList = { }; flavourList["moz/toolbaritem"] = { width: 2, iid: "nsISupportsWString" }; flavourList["text/unicode"] = { width: 2, iid: "nsISupportsWString" }; return fla... |
flavourList["text/nsmessage"] = { width: 2, iid: "nsISupportsWString" }; | getSupportedFlavours: function () { var flavourList = { }; flavourList["text/x-moz-url"] = { width: 2, iid: "nsISupportsWString" }; flavourList["application/x-moz-file"] = { width: 2, iid: "nsIFile" }; return flavourList; } | |
var flavours = new FlavourSet(); flavours.appendFlavour("text/unicode"); return flavours; | var weekflavours = new FlavourSet(); weekflavours.appendFlavour("text/unicode"); return weekflavours; | getSupportedFlavours : function () { var flavours = new FlavourSet(); flavours.appendFlavour("text/unicode"); return flavours; }, |
if ((bRefresh || !g_allSupportedTimezones[key]) && this.m_sessionId != null) { var url = (this.sessionUri.spec + "get_all_timezones.wcap?appid=mozilla-calendar" + "&fmt-out=text%2Fcalendar&id=" + encodeURIComponent(this.m_sessionId)); var str = issueSyncRequest( url ); var icalRootComp = getIcsService().parseICS( str )... | if (bRefresh || !g_allSupportedTimezones[key]) { url += "&fmt-out=text%2Fcalendar"; var icalRootComp = this.issueSyncRequest( url, stringToIcal ); | getSupportedTimezones: function( bRefresh ) { var key = this.sessionUri.hostPort; if ((bRefresh || !g_allSupportedTimezones[key]) && this.m_sessionId != null) { var url = (this.sessionUri.spec + "get_all_timezones.wcap?appid=mozilla-calendar" + ... |
this_.log( "error: " + exc ); | this_.logError( exc ); | getSupportedTimezones: function( bRefresh ) { var key = this.sessionUri.hostPort; if ((bRefresh || !g_allSupportedTimezones[key]) && this.m_sessionId != null) { var url = (this.sessionUri.spec + "get_all_timezones.wcap?appid=mozilla-calendar" + ... |
browser.setAttribute("type", "content"); | if (client.hostCompat.typeChromeBrowser) browser.setAttribute("type", "chrome"); else browser.setAttribute("type", "content"); | function getTabForObject (source, create){ var name; if (!ASSERT(source, "UNDEFINED passed to getTabForObject")) return null; if ("viewName" in source) { name = source.viewName; } else { ASSERT(0, "INVALID OBJECT passed to getTabForObject"); return null; } var tb, ... |
create = (typeof create != "undefined") ? Boolean(create) : false; | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } create = (typeof create != "undefined") ? Boolean(create) : false; switch (source.TYPE) { case "IRCChanUser": ... | |
case "IRCChannel": | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } create = (typeof create != "undefined") ? Boolean(create) : false; switch (source.TYPE) { case "IRCChanUser": ... | |
var browser = document.createElement ("browser"); browser.setAttribute ("class", "output-container"); browser.setAttribute ("type", "content"); browser.setAttribute ("flex", "1"); browser.setAttribute ("tooltip", "aHTMLTooltip"); browser.setAttribute ("context", "outputContext"); browser.setAttribute ("onclick", "focu... | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } create = (typeof create != "undefined") ? Boolean(create) : false; switch (source.TYPE) { case "IRCChanUser": ... | |
if (typeof startScrolling == "function") browser.setAttribute("onmousedown", "startScrolling(event);"); | function getTabForObject (source, create){ var name; if (!ASSERT(source, "UNDEFINED passed to getTabForObject")) return null; if ("viewName" in source) { name = source.viewName; } else { ASSERT(0, "INVALID OBJECT passed to getTabForObject"); return null; } var tb, ... | |
tb.setAttribute("maxwidth", "250"); tb.setAttribute("flex", "1"); | function getTabForObject (source, create){ var name; if (!ASSERT(source, "UNDEFINED passed to getTabForObject")) return null; if ("viewName" in source) { name = source.viewName; } else { ASSERT(0, "INVALID OBJECT passed to getTabForObject"); return null; } var tb, ... | |
tb.setAttribute("tooltip", "xul-tooltip-mode"); | tb.setAttribute("tooltip", "xul-tooltip-node"); | function getTabForObject (source, create){ var name; if (!ASSERT(source, "UNDEFINED passed to getTabForObject")) return null; if ("viewName" in source) { name = source.viewName; } else { ASSERT(0, "INVALID OBJECT passed to getTabForObject"); return null; } var tb, ... |
if (aProperty.EqualsNode(this.kNC_child)) { | if (aProperty.EqualsNode(this.kNC_child) || aProperty.EqualsNode(this.kNC_recursiveChild)) { var listType = (aProperty.EqualsNode(this.kNC_child) ? "flat.messagelist.ldap" : "recursive.messagelist.ldap"); | GetTarget: function(aSource, aProperty, aTruthValue) { if (DEBUG) { dump("GetTarget() called with args: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + aTruthValue + "\n\n"); } var delegate; var enumerator; if (aProperty.EqualsNode(this.kNC_chil... |
delegate = aSource.GetDelegate("messagelist.ldap", | delegate = aSource.GetDelegate(listType, | GetTarget: function(aSource, aProperty, aTruthValue) { if (DEBUG) { dump("GetTarget() called with args: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + aTruthValue + "\n\n"); } var delegate; var enumerator; if (aProperty.EqualsNode(this.kNC_chil... |
if (delegate.Count() == 1) { return delegate.QueryElementAt(0, Components.interfaces.nsIRDFNode); | try { var target = delegate.QueryElementAt(0, Components.interfaces.nsIRDFNode); return target; } catch (e) { | GetTarget: function(aSource, aProperty, aTruthValue) { if (DEBUG) { dump("GetTarget() called with args: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + aTruthValue + "\n\n"); } var delegate; var enumerator; if (aProperty.EqualsNode(this.kNC_chil... |
return gRDF.GetLiteral(typeInfo.primaryExtension.toUpperCase() + " file"); | try { return gRDF.GetLiteral(typeInfo.primaryExtension.toUpperCase() + " file"); } catch (e) { return gRDF.GetLiteral(typeInfo.MIMEType); } | GetTarget: function (aSource, aProperty, aTruthValue) { if (this._isRootTypeResource(aSource)) { var typeInfo = this.getMIMEInfo(aSource); if (typeInfo) { if (aProperty.EqualsNode(this._handleAutoArc)) { var handler = this.GetTarget(aSource, this._handlerPropArc, true); if (handl... |
else if (aProperty.EqualsNode(this._fileIconArc)) return gRDF.GetLiteral("moz-icon: else if (aProperty.EqualsNode(this._fileExtensionArc)) return gRDF.GetLiteral(typeInfo.primaryExtension.toUpperCase()); | else if (aProperty.EqualsNode(this._fileIconArc)) { try { return gRDF.GetLiteral("moz-icon: } catch (e) { return gRDF.GetLiteral("moz-icon: } } else if (aProperty.EqualsNode(this._fileExtensionArc)) { try { return gRDF.GetLiteral(typeInfo.primaryExtension.toUpperCase()); } catch (e) { } return gRDF.GetLiteral(""); } | GetTarget: function (aSource, aProperty, aTruthValue) { if (this._isRootTypeResource(aSource)) { var typeInfo = this.getMIMEInfo(aSource); if (typeInfo) { if (aProperty.EqualsNode(this._handleAutoArc)) { var handler = this.GetTarget(aSource, this._handlerPropArc, true); if (handl... |
function generateBoundCallback() { | function generateGetTargetsBoundCallback() { | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { boundCallback.prototype.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("in the closure\n"); dump("boundCallback() called with... |
boundCallback.prototype.onLDAPMessage = function() { | function getTargetsBoundCallback() {} | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { boundCallback.prototype.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("in the closure\n"); dump("boundCallback() called with... |
getTargetsBoundCallback.prototype.onLDAPMessage = | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { boundCallback.prototype.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("in the closure\n"); dump("boundCallback() called with... | |
if (DEBUG) { dump("in the closure\n"); | function(aMessage, aRetVal) { | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { boundCallback.prototype.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("in the closure\n"); dump("boundCallback() called with... |
dump("boundCallback() called with scope: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + aTruthValue + "\n\n"); | if (DEBUG) { dump("boundCallback() called with scope: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + aTruthValue + "\n"); dump("\taRetVal = " + aRetVal + "\n\n"); } if (aRetVal != LDAP_RES_BIND) { dump("bind failed\n"); } var searchOp = Components.classes[ "mozilla.network.ldapoperation"]. createIns... | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { boundCallback.prototype.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("in the closure\n"); dump("boundCallback() called with... |
} | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { boundCallback.prototype.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("in the closure\n"); dump("boundCallback() called with... | |
cb = new boundCallback(); | return new getTargetsBoundCallback(); } | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { boundCallback.prototype.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("in the closure\n"); dump("boundCallback() called with... |
return cb; | function generateGetTargetsSearchCallback() { function getTargetsSearchCallback() {} getTargetsSearchCallback.prototype.onLDAPMessage = function(aMessage, aRetVal ) { dump("getTargetsSearchCallback() called with aRetVal=" + aRetVal + "\n\n"); } return new getTargetsSearchCallback(); | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { boundCallback.prototype.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("in the closure\n"); dump("boundCallback() called with... |
this.getConnection(url.host, url.port, generateBoundCallback()); | var operation = Components.classes["mozilla.network.ldapoperation"]. createInstance(Components.interfaces. nsILDAPOperation); operation.init(connection, generateGetTargetsBoundCallback()); operation.simpleBind(null); | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { boundCallback.prototype.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("in the closure\n"); dump("boundCallback() called with... |
if (aProperty.EqualsNode(this.kNC_child)) { | if (aProperty.EqualsNode(this.kNC_child) || aProperty.EqualsNode(this.kNC_recursiveChild)) { var listType = (aProperty.EqualsNode(this.kNC_child) ? "flat.messagelist.ldap" : "recursive.messagelist.ldap"); | GetTargets: function(aSource, aProperty, aTruthValue) { if (DEBUG) { dump("GetTargets() called with args: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + aTruthValue + "\n\n"); } var delegate; if (aProperty.EqualsNode(this.kNC_child)) { ... |
delegate = aSource.GetDelegate("messagelist.ldap", | delegate = aSource.GetDelegate(listType, | GetTargets: function(aSource, aProperty, aTruthValue) { if (DEBUG) { dump("GetTargets() called with args: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + aTruthValue + "\n\n"); } var delegate; if (aProperty.EqualsNode(this.kNC_child)) { ... |
} else { | } else if (aProperty.EqualsNode(this.kNC_DN)) { try { delegate = aSource.GetDelegate("message.ldap", Components.interfaces.nsILDAPMessage); } catch (e) { } if (delegate != null) { return this.mRdfSvc.GetResource(delegate.dn); } } else { | GetTargets: function(aSource, aProperty, aTruthValue) { if (DEBUG) { dump("GetTargets() called with args: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + aTruthValue + "\n\n"); } var delegate; if (aProperty.EqualsNode(this.kNC_child)) { ... |
tb.addEventListener("click", onTBIClickTempHandler, false); | tb.setAttribute ("onclick", "onTBIClick('" + id + "');"); | function getTBForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTBForObject **"); dd (getStackTrace()); return; } create = (typeof create != "undefined") ? Boolean(create) : false; switch (source.TYPE) { case "IRCChanUser": c... |
tb.setAttribute ("class", "menubutton-dual"); tb.setAttribute ("id", id); | function getTBForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTBForObject **"); dd (getStackTrace()); return; } create = (typeof create != "undefined") ? Boolean(create) : false; switch (source.TYPE) { case "IRCChanUser": c... | |
return; | return null; | function getTBForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTBForObject **"); dd (getStackTrace()); return; } create = (typeof create != "undefined") ? Boolean(create) : false; switch (source.TYPE) { case "IRCChanUser": c... |
if (!source) { dd ("** UNDEFINED passed to getTBForObject **"); dd (getStackTrace()); return; } | function getTBForObject (source, create){ var name; create = (typeof create != "undefined") ? Boolean(create) : false; switch (source.TYPE) { case "IRCChanUser": case "IRCUser": name = source.nick; break; case "IRCNetwork": case "IRCChannel": ... | |
return [PROT_GlobalStore.getPref_("safebrowsing.provider.0.testURL")]; | return [PROT_GlobalStore.getPref_("browser.safebrowsing.provider.0.testURL")]; | PROT_GlobalStore.getTestURLs = function() { // TODO: return all test urls return [PROT_GlobalStore.getPref_("safebrowsing.provider.0.testURL")];} |
return item.firstChild.firstChild.getAttribute("value"); | return item.firstChild.firstChild.getAttribute("label"); | function GetTreelistValueAt(tree, index){ if (tree) { var item = tree.getItemAtIndex(index); if (item && item.firstChild && item.firstChild.firstChild) return item.firstChild.firstChild.getAttribute("value"); } return "";} |
return gPrefs.CopyUnicharPref(aPrefName); | return gPrefs.getComplexValue(aPrefName, Components.interfaces.nsISupportsWString); | function getUnicharPref(aPrefName, aDefVal){ if (!gPrefs) return ""; try { return gPrefs.CopyUnicharPref(aPrefName); } catch(e) { } return "";} |
return PROT_GlobalStore.getPref_("safebrowsing.provider.0.updateURL"); | return PROT_GlobalStore.getPref_("browser.safebrowsing.provider.0.updateURL"); | PROT_GlobalStore.getUpdateserverURL = function() { return PROT_GlobalStore.getPref_("safebrowsing.provider.0.updateURL");} |
cx.nicknameList = new Array(); | function getUserlistContext(cx){ if (!cx) cx = new Object(); cx.__proto__ = getObjectDetails(client.currentObject); if (!cx.channel) return cx; cx.userList = new Array(); cx.nicknameList = new Array(); cx.canonNickList = new Array(); var tree = document.getElementById("user-list"); ... | |
var tree = document.getElementById("user-list"); var rangeCount = tree.view.selection.getRangeCount(); for (var i = 0; i < rangeCount; ++i) | for (var i = 0; i < cx.nicknameList.length; ++i) | function getUserlistContext(cx){ if (!cx) cx = new Object(); cx.__proto__ = getObjectDetails(client.currentObject); if (!cx.channel) return cx; cx.userList = new Array(); cx.nicknameList = new Array(); cx.canonNickList = new Array(); var tree = document.getElementById("user-list"); ... |
var start = {}, end = {}; tree.view.selection.getRangeAt(i, start, end); if ((start.value == -1) && (end.value == -1)) return cx; for (var k = start.value; k <= end.value; ++k) | user = cx.channel.getUser(cx.nicknameList[i]) cx.userList.push(user); cx.canonNickList.push(user.canonicalName); if (i == 0) | function getUserlistContext(cx){ if (!cx) cx = new Object(); cx.__proto__ = getObjectDetails(client.currentObject); if (!cx.channel) return cx; cx.userList = new Array(); cx.nicknameList = new Array(); cx.canonNickList = new Array(); var tree = document.getElementById("user-list"); ... |
var item = tree.contentView.getItemAtIndex(k); var cell = item.firstChild.firstChild; var user = cx.channel.getUser(cell.getAttribute("unicodeName")); if (user) { cx.userList.push(user); cx.nicknameList.push(user.unicodeName); cx.canonNickList.push(user.canonicalName); if (i == 0 && k == start.value) { cx.user = user; ... | cx.user = user; cx.nickname = user.unicodeName; cx.canonNick = user.canonicalName; | function getUserlistContext(cx){ if (!cx) cx = new Object(); cx.__proto__ = getObjectDetails(client.currentObject); if (!cx.channel) return cx; cx.userList = new Array(); cx.nicknameList = new Array(); cx.canonNickList = new Array(); var tree = document.getElementById("user-list"); ... |
function GetUsername(url) | function GetUsername(urlspec) | function GetUsername(url){ if (!url) return ""; var IOService = GetIOService(); if (!IOService) return ""; var username = ""; try { username = IOService.extractUrlPart(url, IOService.url_Username); } catch (e) {} return username;} |
username = IOService.extractUrlPart(url, IOService.url_Username); | username = IOService.newURI(urlspec, null, null).username; | function GetUsername(url){ if (!url) return ""; var IOService = GetIOService(); if (!IOService) return ""; var username = ""; try { username = IOService.extractUrlPart(url, IOService.url_Username); } catch (e) {} return username;} |
username = IOService.extractUrlPart(url, IOService.url_Username, {start:0}, {end:0}); | username = IOService.extractUrlPart(url, IOService.url_Username); | function GetUsername(url){ if (!url) return ""; var IOService = GetIOService(); if (!IOService) return ""; var username = ""; try { username = IOService.extractUrlPart(url, IOService.url_Username, {start:0}, {end:0}); } catch (e) {} return username;} |
["collapseActions", defer, "appearance.misc"], | function getUserPrefManager(user){ var network = user.parent.parent; function defer(prefName) { return network.prefs[prefName]; }; function makeLogNameUser() { return makeLogName(user, "user"); }; function onPrefChanged(prefName, newValue, oldValue) { onUserPrefChanged (u... | |
["charset", defer], ["collapseMsgs", defer], ["displayHeader", client.prefs["userHeader"]], ["font.family", defer], ["font.size", defer], ["motif.current", defer], ["outputWindowURL", defer], ["log", client.prefs["userLog"]], ["logFileName", logDefault.path], ["timestam... | ["charset", defer, ".connect"], ["collapseMsgs", defer, "appearance.misc"], ["displayHeader", client.prefs["userHeader"], "appearance.misc"], ["font.family", defer, "appearance.misc"], ["font.size", defer, "appearance.misc"], ["hasPrefs", false, "hidden"], ["motif.current", defer,... | function getUserPrefManager(user){ var network = user.parent.parent; function defer(prefName) { return network.prefs[prefName]; }; function onPrefChanged(prefName, newValue, oldValue) { onUserPrefChanged (user, prefName, newValue, oldValue); }; var logDefault = client.prefM... |
var account = getAccountFromServerId(serverId); accountArray[serverId] = createAccountValues(account); | accountArray[serverId] = new Array; | function getValueArrayFor(serverId) { if (accountArray[serverId] == null) { var account = getAccountFromServerId(serverId); accountArray[serverId] = createAccountValues(account); } return accountArray[serverId];} |
return aResource ? target.Value : null; | return aResource ? aResource.Value : null; | getValueFromResource: function(aResource) { aResource = aResource.QueryInterface(Components.interfaces.nsIRDFResource); return aResource ? target.Value : null; } |
return( "First" ); | return( firstLabel ); | function getWeekNumberText( weekNumber ){ switch( weekNumber ) { case 1: return( "First" ); case 2: return( "Second" ); case 3: return( "Third" ); case 4: return( "Fourth" ); case 5: return( "Last" ); default: return( false ); }} |
return( "Second" ); | return( secondLabel ); | function getWeekNumberText( weekNumber ){ switch( weekNumber ) { case 1: return( "First" ); case 2: return( "Second" ); case 3: return( "Third" ); case 4: return( "Fourth" ); case 5: return( "Last" ); default: return( false ); }} |
return( "Third" ); | return( thirdLabel ); | function getWeekNumberText( weekNumber ){ switch( weekNumber ) { case 1: return( "First" ); case 2: return( "Second" ); case 3: return( "Third" ); case 4: return( "Fourth" ); case 5: return( "Last" ); default: return( false ); }} |
return( "Fourth" ); | return( fourthLabel ); | function getWeekNumberText( weekNumber ){ switch( weekNumber ) { case 1: return( "First" ); case 2: return( "Second" ); case 3: return( "Third" ); case 4: return( "Fourth" ); case 5: return( "Last" ); default: return( false ); }} |
return( "Last" ); | return( lastLabel ); | function getWeekNumberText( weekNumber ){ switch( weekNumber ) { case 1: return( "First" ); case 2: return( "Second" ); case 3: return( "Third" ); case 4: return( "Fourth" ); case 5: return( "Last" ); default: return( false ); }} |
startWeekDay = prefBranch.getIntPref("calendar.week.start"); | startWeekday = prefBranch.getIntPref("calendar.week.start"); | function getWeekTitle(aDateTime) { /** * This implementation is based on the ISO 8601 standard. * ISO 8601 defines week one as the first week with at least 4 * days, and defines Monday as the first day of the week. * Equivalently, the week one is the week with the first Thursday. * * This ... |
if (thisWeeksThursday < 0) thisWeeksThursday += 52*7; | if (thisWeeksThursday < 1) { var lastYearDate = aDateTime.clone(); lastYearDate.year -= 1; thisWeeksThursday += lastYearDate.endOfYear.yearday; } | function getWeekTitle(aDateTime) { /** * This implementation is based on the ISO 8601 standard. * ISO 8601 defines week one as the first week with at least 4 * days, and defines Monday as the first day of the week. * Equivalently, the week one is the week with the first Thursday. * * This ... |
var weekNumber = Math.floor(thisWeeksThursday/7)+1; | if (thisWeeksThursday > aDateTime.endOfYear.yearday) thisWeeksThursday -= aDateTime.endOfYear.yearday; var weekNumber = Math.ceil(thisWeeksThursday/7); | function getWeekTitle(aDateTime) { /** * This implementation is based on the ISO 8601 standard. * ISO 8601 defines week one as the first week with at least 4 * days, and defines Monday as the first day of the week. * Equivalently, the week one is the week with the first Thursday. * * This ... |
"@mozilla.org/rdf/datasource;1?name=window-mediator"; | "@mozilla.org/appshell/window-mediator;1"; | function getWindowByType (windowType){ const MEDIATOR_CONTRACTID = "@mozilla.org/rdf/datasource;1?name=window-mediator"; const nsIWindowMediator = Components.interfaces.nsIWindowMediator; var windowManager = Components.classes[MEDIATOR_CONTRACTID].getService(nsIWindowMediator); return windowM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.