rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (tree.selectedItems.length < 1) return null; var node = tree.selectedItems[0]; | if (tree.treeBoxObject.selection.count < 1) return null; var node = tree.contentView.getItemAtIndex(tree.currentIndex); | 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... |
serverId = servernode.getAttribute('id'); return {"serverId": serverId, "pageId": pageId } | return {"serverId": servernode.id, "pageId": pageId } | 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... |
loginTextVars = [uri.hostPort]; var loginText; var wcapVersion; | var icalRootComp; | 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 = getIcsService().parseICS( str ); | if (str.indexOf("BEGIN:VCALENDAR") < 0) return null; icalRootComp = getIcsService().parseICS( str ); | 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... |
throw new Error("invalid data, expected ical!"); var prop = icalRootComp.getFirstProperty( "PRODID" ); if (prop == null) throw new Error("missing PRODID!"); loginTextVars.push( prop.value ); var prop = icalRootComp.getFirstProperty( "X-NSCP-SERVERVERSION" ); if (prop == null) throw new Error("missing X-NSCP-SERVERVERSI... | throw new Error("invalid ical data!"); | 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... |
catch (exc) { this.log( "error: " + exc ); | catch (exc) { this.log( "server version request failed: " + errorToString(exc) ); | 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... |
if (parseInt(wcapVersion) < 2.0) { this.log( "parsed server WCAP major: " + parseInt(wcapVersion) ); throw new Error( getWcapBundle("insufficientWcapVersionError.text", loginTextVars) ); | 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" )... | 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... |
this.log( exc ); | this.log( errorToString(exc) ); | getServerInfo: function( uri ) { var str; var icalRootComp = null; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical: str = issueSyncRequest( uri.spec + "version.wcap?fmt-out=t... |
var key = this.uri.hostPort; | var key = this.sessionUri.hostPort; | getServerTimeDiff: function( bRefresh ) { var key = this.uri.hostPort; if ((bRefresh || !g_serverTimeDiffs[key]) && this.m_sessionId != null) { var url = this.uri.spec + // xxx todo: assuming same diff for all calids: "gettime.wcap?appid=mozill... |
var url = this.uri.spec + | var url = this.sessionUri.spec + | getServerTimeDiff: function( bRefresh ) { var key = this.uri.hostPort; if ((bRefresh || !g_serverTimeDiffs[key]) && this.m_sessionId != null) { var url = this.uri.spec + // xxx todo: assuming same diff for all calids: "gettime.wcap?appid=mozill... |
var str = issueSyncRequest( url ); | 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 ); | 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 ); | 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 shortcutURL = gBookmarksService.FindShortcut(url); | var shortcutURL = gBookmarksService.resolveKeyword(url); | function getShortcutOrURI(url){ // rjc: added support for URL shortcuts (3/30/1999) try { if (!gBookmarksService) gBookmarksService = Components.classes["@mozilla.org/browser/bookmarks-service;1"] .getService(Components.interfaces.nsIBookmarksService); var shortcutURL = g... |
shortcutURL = gBookmarksService.FindShortcut(cmd); | shortcutURL = gBookmarksService.resolveKeyword(cmd); | function getShortcutOrURI(url){ // rjc: added support for URL shortcuts (3/30/1999) try { if (!gBookmarksService) gBookmarksService = Components.classes["@mozilla.org/browser/bookmarks-service;1"] .getService(Components.interfaces.nsIBookmarksService); var shortcutURL = g... |
var shortcutURL = bmks.FindShortcut(url); | var shortcutURL = bmks.resolveKeyword(url); | function getShortcutOrURI(url){ // rjc: added support for URL shortcuts (3/30/1999) try { var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"] .getService(Components.interfaces.nsIBookmarksService); var shortcutURL = bmks.FindShortcut(url); if (!shortcutURL) { ... |
shortcutURL = bmks.FindShortcut(cmd); | shortcutURL = bmks.resolveKeyword(cmd); | function getShortcutOrURI(url){ // rjc: added support for URL shortcuts (3/30/1999) try { var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"] .getService(Components.interfaces.nsIBookmarksService); var shortcutURL = bmks.FindShortcut(url); if (!shortcutURL) { ... |
if (aPostDataRef.value.match(/%s/)) aPostDataRef.value = getPostDataStream(aPostDataRef.value, text, | if (aPostDataRef.value.match(/%[sS]/)) { aPostDataRef.value = getPostDataStream(aPostDataRef.value, text, encodedText, | function getShortcutOrURI(aURL, aPostDataRef){ // rjc: added support for URL shortcuts (3/30/1999) try { var shortcutURL = BMSVC.resolveKeyword(aURL, aPostDataRef); if (!shortcutURL) { // rjc: add support for string substitution with shortcuts (4/4/2000) // (see bug # 29871 for details) var ... |
else shortcutURL = shortcutURL.match(/%s/) ? shortcutURL.replace(/%s/g, encodeURIComponent(text)) : null; | else { if (/%[sS]/.test(shortcutURL)) shortcutURL = shortcutURL.replace(/%s/g, encodedText) .replace(/%S/g, text); else shortcutURL = null; } | function getShortcutOrURI(aURL, aPostDataRef){ // rjc: added support for URL shortcuts (3/30/1999) try { var shortcutURL = BMSVC.resolveKeyword(aURL, aPostDataRef); if (!shortcutURL) { // rjc: add support for string substitution with shortcuts (4/4/2000) // (see bug # 29871 for details) var ... |
var shortcutURL = BMSVC.resolveKeyword(aURL, aPostDataRef); | var shortcutURL = null; #ifdef MOZ_PLACES var bookmarkService = Components.classes["@mozilla.org/browser/nav-bookmarks-service;1"] .getService(nsCI.nsINavBookmarksService); var shortcutURI = bookmarkService.getURIForKeyword(aURL); if (shortcutURI) shortcutURL = shortcutURI.spec; #else shortcutURL = BMSVC.resolveKeyword... | function getShortcutOrURI(aURL, aPostDataRef){ // rjc: added support for URL shortcuts (3/30/1999) try { var shortcutURL = BMSVC.resolveKeyword(aURL, aPostDataRef); if (!shortcutURL) { // rjc: add support for string substitution with shortcuts (4/4/2000) // (see bug # 29871 for details) var ... |
#endif | function getShortcutOrURI(aURL, aPostDataRef){ // rjc: added support for URL shortcuts (3/30/1999) try { var shortcutURL = BMSVC.resolveKeyword(aURL, aPostDataRef); if (!shortcutURL) { // rjc: add support for string substitution with shortcuts (4/4/2000) // (see bug # 29871 for details) var ... | |
function getSidebarDatasourceURI(panels_file_id) { try { var fileLocatorInterface = Components.interfaces.nsIFileLocator; var fileLocatorProgID = 'component: var fileLocatorService = Components.classes[fileLocatorProgID].getService(); fileLocatorService = fileLocatorService.QueryInterface(fileLocatorInterface); | function getSidebarDatasourceURI(panels_file_id) { try { var fileLocatorService = Components.classes[LOCATOR_PROGID].getService(nsIFileLocator); | function getSidebarDatasourceURI(panels_file_id) { try { var fileLocatorInterface = Components.interfaces.nsIFileLocator; var fileLocatorProgID = 'component://netscape/filelocator'; var fileLocatorService = Components.classes[fileLocatorProgID].getService(); // use the fileLocator to look in the profile direc... |
debug("sidebar uri is " + sidebar_file.URLString); return sidebar_file.URLString; } catch (ex) { debug("Exception raise getting sidebar datasource uri"); return null; } | debug("sidebar uri is " + sidebar_file.URLString); return sidebar_file.URLString; } catch (ex) { debug("caught " + ex + " getting sidebar datasource uri"); return null; } | function getSidebarDatasourceURI(panels_file_id) { try { var fileLocatorInterface = Components.interfaces.nsIFileLocator; var fileLocatorProgID = 'component://netscape/filelocator'; var fileLocatorService = Components.classes[fileLocatorProgID].getService(); // use the fileLocator to look in the profile direc... |
var directory_service = Components.classes[DIR_SERV_CONTRACTID].getService(); if (directory_service) directory_service = directory_service.QueryInterface(Components.interfaces.nsIProperties); | var directory_service = Components.classes[DIR_SERV_CONTRACTID].getService(Components.interfaces.nsIProperties); | function getSidebarDatasourceURI(panels_file_id){ try { /* use the fileLocator to look in the profile directory * to find 'panels.rdf', which is the * database of the user's currently selected panels. */ var directory_service = Components.classes[DIR_SERV_CONTRACTID].getService(); ... |
debug("sidebar uri is " + sidebar_file.URL); return sidebar_file.URL; | var io_service = Components.classes[IO_SERV_CONTRACTID].getService(Components.interfaces.nsIIOService); var sidebar_uri = io_service.getURLSpecFromFile(sidebar_file); debug("sidebar uri is " + sidebar_uri); return sidebar_uri; | function getSidebarDatasourceURI(panels_file_id){ try { /* use the fileLocator to look in the profile directory * to find 'panels.rdf', which is the * database of the user's currently selected panels. */ var directory_service = Components.classes[DIR_SERV_CONTRACTID].getService(); ... |
#ifdef XP_BEOS return aFolderType == "Desktop" ? "Desk" : "Home"; #endif | function getSpecialFolderKey(aFolderType) {#ifdef XP_WIN return aFolderType == "Desktop" ? "DeskP" : "Pers";#endif#ifdef XP_MACOSX return aFolderType == "Desktop" ? "UsrDsk" : "UsrDocs";#endif#ifdef XP_OS2 return aFolderType == "Desktop" ? "Desk" : "Home";#endif return "Home"; } | |
return aFolderType == "Desktop" ? "Desk" : "UsrDocs"; | return aFolderType == "Desktop" ? "UsrDsk" : "UsrDocs"; | function getSpecialFolderKey(aFolderType) {#ifdef XP_WIN return aFolderType == "Desktop" ? "DeskV" : "Pers";#endif#ifdef XP_MACOSX return aFolderType == "Desktop" ? "Desk" : "UsrDocs";#endif return "Home";} |
formsArray = window._content.document.forms; | formsArray = document.forms; | function getState(captureOrPrefill, threshhold) { if (!window._content || !window._content.document) { return hide; } // test for wallet service being available var walletService = Components.classes["@mozilla.org/wallet/wallet-service;1"] .getService(Components.interfaces.nsIWalle... |
if (!window._content || !window._content.document) { return hide; } var document = window._content.document; if (!("forms" in document)) { return hide; } if (gWalletService == -1) gWalletService = Components.classes["@mozilla.org/wallet/wallet-service;1"] .getService(Components.interfaces.nsIWalletService); if (!gWa... | stateFound(window.content, captureOrPrefill, threshhold); return bestState; | function getState(captureOrPrefill, threshhold) { if (!window._content || !window._content.document) { return hide; } var document = window._content.document; if (!("forms" in document)) { // this will occur if document is xul document instead of html document for example re... |
try { if (this.pref.GetBoolPref("wallet.crypto")) { return enable; } } catch(e) { } | function getStateFromFormsArray(formsArray, captureOrPrefill, threshhold, walletService) { if (!formsArray) { return hide; } var form; var bestState = hide; for (form=0; form<formsArray.length; form++) { var elementsArray = formsArray[form].elements; var element; ... | |
return null; | if (!this._comments[index]) return null; if (index == 0) return "suggestfirst"; return "suggesthint"; | getStyleAt: function(index) { return null; }, |
function getSubscriptionsDS() { | function getSubscriptionsDS(server) { | function getSubscriptionsDS() { if (gFzSubscriptionsDS) return gFzSubscriptionsDS; var file = getSubscriptionsFile(); var url = fileHandler.getURLSpecFromFile(file); gFzSubscriptionsDS = rdf.GetDataSourceBlocking(url); if (!gFzSubscriptionsDS) throw("can't get subscriptions data source"); ... |
var file = getSubscriptionsFile(); | var file = getSubscriptionsFile(server); | function getSubscriptionsDS() { if (gFzSubscriptionsDS) return gFzSubscriptionsDS; var file = getSubscriptionsFile(); var url = fileHandler.getURLSpecFromFile(file); gFzSubscriptionsDS = rdf.GetDataSourceBlocking(url); if (!gFzSubscriptionsDS) throw("can't get subscriptions data source"); ... |
gFzSubscriptionsDS = rdf.GetDataSource(url); | gFzSubscriptionsDS = rdf.GetDataSourceBlocking(url); | function getSubscriptionsDS() { if (gFzSubscriptionsDS) return gFzSubscriptionsDS; var file = getSubscriptionsFile(); var url = fileHandler.getURLSpecFromFile(file); gFzSubscriptionsDS = rdf.GetDataSource(url); if (!gFzSubscriptionsDS) throw("can't get subscriptions data source"); // Not... |
function getSubscriptionsFile() { var appDirectoryService = Components .classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); if ( !appDirectoryService ) throw("couldn't get the directory service"); var profileDir = appDirectoryService.get("ProfD", Components.interfaces.n... | function getSubscriptionsFile(server) { server.QueryInterface(Components.interfaces.nsIRssIncomingServer); var file = server.subscriptionsDataSourcePath; | function getSubscriptionsFile() { // Get the app directory service so we can look up the user's profile dir. var appDirectoryService = Components .classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); if ( !appDirectoryService ) throw("couldn't get the d... |
function getSubscriptionsList() { var ds = getSubscriptionsDS(); | function getSubscriptionsList(server) { var ds = getSubscriptionsDS(server); | function getSubscriptionsList() { var ds = getSubscriptionsDS(); var list = ds.GetTarget(FZ_ROOT, FZ_FEEDS, true); //list = feeds.QueryInterface(Components.interfaces.nsIRDFContainer); list = list.QueryInterface(Components.interfaces.nsIRDFResource); list = containerUtils.MakeSeq(ds, list); return lis... |
docURI = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIURI); docURI.spec = aDocumentURLString; var docURL = docURI.QueryInterface(Components.interfaces.nsIURL); | var ioService = GetIOService(); docURI = ioService.newURI(aDocumentURLString, window.editorShell.GetDocumentCharacterSet(), null); docURI = docURI.QueryInterface(Components.interfaces.nsIURL); | function GetSuggestedFileName(aDocumentURLString, aMIMEType, aHTMLDoc){ var extension = GetExtensionBasedOnMimeType(aMIMEType); if (extension) extension = "." + extension; // check for existing file name we can use if (aDocumentURLString.length >= 0 && !IsUrlAboutBlank(aDocumentURLString)) { var docURI = nul... |
var url = docURL.fileBaseName; | var url = docURI.fileBaseName; | function GetSuggestedFileName(aDocumentURLString, aMIMEType, aHTMLDoc){ var extension = GetExtensionBasedOnMimeType(aMIMEType); if (extension) extension = "." + extension; // check for existing file name we can use if (aDocumentURLString.length >= 0 && !IsUrlAboutBlank(aDocumentURLString)) { var docURI = nul... |
return "untitled" + extension; | return GetString("untitled") + extension; | function GetSuggestedFileName(aDocumentURLString, aMIMEType, aHTMLDoc){ var extension = GetExtensionBasedOnMimeType(aMIMEType); if (extension) extension = "." + extension; // check for existing file name we can use if (aDocumentURLString.length >= 0 && !IsUrlAboutBlank(aDocumentURLString)) { var docURI = nul... |
flavourSet.appendFlavour("text/x-moz-message-or-folder"); | getSupportedFlavours : function () { var flavourSet = new FlavourSet(); flavourSet.appendFlavour("text/unicode"); flavourSet.appendFlavour("text/calendar"); flavourSet.appendFlavour("text/calendar-interval"); flavourSet.appendFlavour("text/x-moz-message-or-folder"); flavourSet.appendFla... | |
getSupportedFlavours: function () { var flavourSet = new FlavourSet(); flavourSet.appendFlavour("moz/rdfitem"); flavourSet.appendFlavour("text/x-moz-url"); flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); flavourSet.appendFlavour("text/unicode"); return flavourSet; }, | getSupportedFlavours: function () { var flavourSet = new FlavourSet(); flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); flavourSet.appendFlavour("text/x-moz-url"); flavourSet.appendFlavour("text/unicode"); return flavourSet; } | getSupportedFlavours: function () { var flavourSet = new FlavourSet(); flavourSet.appendFlavour("moz/rdfitem"); flavourSet.appendFlavour("text/x-moz-url"); flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); flavourSet.appendFlavour("text/unicode"); return flavourSet; }, |
this._flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); | getSupportedFlavours: function () { if (!this._flavourSet) { this._flavourSet = new FlavourSet(); this._flavourSet.appendFlavour("text/x-moz-url"); } return this._flavourSet; } | |
flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); | flavourSet.appendFlavour("text/unicode"); | getSupportedFlavours: function () { var flavourSet = new FlavourSet(); flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); flavourSet.appendFlavour("text/x-moz-url"); flavourSet.appendFlavour("text/unicode"); return flavourSet; } |
flavourSet.appendFlavour("text/unicode"); | flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); | getSupportedFlavours: function () { var flavourSet = new FlavourSet(); flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); flavourSet.appendFlavour("text/x-moz-url"); flavourSet.appendFlavour("text/unicode"); return flavourSet; } |
var flavourList = { }; flavourList["text/x-moz-url"] = { width: 2, iid: "nsISupportsWString" }; flavourList["text/nsmessage"] = { width: 2, iid: "nsISupportsWString" }; flavourList["application/x-moz-file"] = { width: 2, iid: "nsIFile" }; return flavourList; | var flavourSet = new FlavourSet(); flavourSet.appendFlavour("text/x-moz-url"); flavourSet.appendFlavour("text/nsmessage"); flavourSet.appendFlavour("application/x-moz-file", "nsIFile"); return flavourSet; | getSupportedFlavours: function () { var flavourList = { }; flavourList["text/x-moz-url"] = { width: 2, iid: "nsISupportsWString" }; flavourList["text/nsmessage"] = { width: 2, iid: "nsISupportsWString" }; flavourList["application/x-moz-file"] = { width: 2, iid: "nsIFile" }; return flavourL... |
var key = this.uri.hostPort; | var key = this.sessionUri.hostPort; | getSupportedTimezones: function( bRefresh ) { var key = this.uri.hostPort; if ((bRefresh || !g_allSupportedTimezones[key]) && this.m_sessionId != null) { var url = this.uri.spec + "get_all_timezones.wcap?appid=mozilla-lightning" + "&fmt-... |
var url = this.uri.spec + | var url = this.sessionUri.spec + | getSupportedTimezones: function( bRefresh ) { var key = this.uri.hostPort; if ((bRefresh || !g_allSupportedTimezones[key]) && this.m_sessionId != null) { var url = this.uri.spec + "get_all_timezones.wcap?appid=mozilla-lightning" + "&fmt-... |
return; | function getSysID() { // SysID var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService) .getBranch("extensions.reporter."); try { if (prefs.getPrefType("sysid") == prefs.PREF_STRING && prefs.getCharPref("sys... | |
if (!cx) cx = new Object(); | function getTabContext(cx, element){ if (!element) element = document.popupNode; while (element) { if (element.localName == "tab") return getObjectDetails(element.view); element = element.parentNode; } return cx;} | |
if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); | if (!ASSERT(source, "UNDEFINED passed to getTabForObject")) | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } switch (source.TYPE) { case "IRCChanUser": case "IRCUser": name = source.properNick; b... |
} | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } switch (source.TYPE) { case "IRCChanUser": case "IRCUser": name = source.properNick; b... | |
dd ("** INVALID OBJECT passed to getTabForObject **"); | ASSERT(0, "INVALID OBJECT passed to getTabForObject"); | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } switch (source.TYPE) { case "IRCChanUser": case "IRCUser": name = source.properNick; b... |
tb.setAttribute ("onclick", "onTabClick(" + id.quote() + ");"); | tb.setAttribute ("onclick", "onTabClick(event, " + id.quote() + ");"); | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } switch (source.TYPE) { case "IRCChanUser": case "IRCUser": name = source.properNick; b... |
browser.setAttribute ("class", "output-container"); browser.setAttribute ("type", "content"); browser.setAttribute ("flex", "1"); browser.setAttribute ("tooltip", "aHTMLTooltip"); browser.setAttribute ("context", "outputContext"); | browser.setAttribute("class", "output-container"); browser.setAttribute("type", "content"); browser.setAttribute("flex", "1"); browser.setAttribute("tooltip", "html-tooltip-node"); browser.setAttribute("context", "context:messages"); | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } switch (source.TYPE) { case "IRCChanUser": case "IRCUser": name = source.properNick; b... |
if (client.NO_BROWSER_FOCUS) browser.setAttribute ("onclick", "focusInput()"); browser.setAttribute ("ondragover", "nsDragAndDrop.dragOver(event, contentDropObserver);"); browser.setAttribute ("ondragdrop", "nsDragAndDrop.drop(event, contentDropObserver);"); browser.setAttribute ("ondraggesture", "nsDragAndDrop.startDr... | browser.setAttribute("onclick", "return onMessageViewClick(event)"); browser.setAttribute("ondragover", "nsDragAndDrop.dragOver(event, " + "contentDropObserver);"); browser.setAttribute("ondragdrop", "nsDragAndDrop.drop(event, contentDropObserver);"); browser.setAttribute("ondraggesture", "nsDragAndDrop.startDrag(event... | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } switch (source.TYPE) { case "IRCChanUser": case "IRCUser": name = source.properNick; b... |
syncOutputFrame (browser); | syncOutputFrame (source); | function getTabForObject (source, create){ var name; if (!source) { dd ("** UNDEFINED passed to getTabForObject **"); dd (getStackTrace()); return null; } switch (source.TYPE) { case "IRCChanUser": case "IRCUser": name = source.properNick; b... |
if ("channel" in details && word == details.channel.name[0]) | if (details.channel && word == details.channel.name[0]) | function gettabmatch_other (line, wordStart, wordEnd, word, cursorpos){ if (wordStart == 0 && line[0] == client.COMMAND_CHAR) { return client.performTabMatch (line, wordStart, wordEnd, word, cursorpos); } var matchList = new Array(); var users; var chan... |
if ("users" in details.orig) { users = details.orig.users; for (var n in users) matchList.push (users[n].nick); } if ("server" in details) | if (details.channel) users = details.channel.users; if (details.server) | function gettabmatch_other (line, wordStart, wordEnd, word, cursorpos){ if (wordStart == 0 && line[0] == client.COMMAND_CHAR) { return client.performTabMatch (line, wordStart, wordEnd, word, cursorpos); } var matchList = new Array(); var users; var chan... |
matches[0] += client.ADDRESSED_NICK_SEP; | matches[0] += client.prefs["nickCompleteStr"]; | function gettabmatch_other (line, wordStart, wordEnd, word, cursorpos){ if (wordStart == 0 && line[0] == client.COMMAND_CHAR) { return client.performTabMatch (line, wordStart, wordEnd, word, cursorpos); } var matchList = new Array(); var users; var chan... |
var matches = client.commands.listNames(word.substr(1)); | var matches = client.commandManager.listNames(word.substr(1), CMD_CONSOLE); | function gettabmatch_usr (line, wordStart, wordEnd, word, cursorPos){ if (wordStart != 0 || line[0] != client.COMMAND_CHAR) return null; var matches = client.commands.listNames(word.substr(1)); if (matches.length == 1 && wordEnd == line.length) { matches[0] = client.COMMAND_CHAR + matches[0] +... |
cb = new boundCallback(); cb.onLDAPMessage = function() { | boundCallback.prototype.onLDAPMessage = function() { | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { cb = new boundCallback(); cb.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("boundCallback() called with scope: \n\t" + a... |
cb = new boundCallback(); | GetTargets: function(aSource, aProperty, aTruthValue) { function generateBoundCallback() { cb = new boundCallback(); cb.onLDAPMessage = function() { // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (DEBUG) { dump("boundCallback() called with scope: \n\t" + a... | |
var treeitem = tree.treeBoxObject.view.getItemAtIndex( row.value ); var todoId = treeitem.getAttribute("toDoID"); return gICalLib.fetchTodo( todoId ); | return( tree.taskView.getCalendarTaskAtRow( row.value ) ); | function getToDoFromEvent( event ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var row = new Object(); tree.treeBoxObject.getCellAt( event.clientX, event.clientY, row, {}, {} ); if( row.value != -1 && row.value < tree.view.rowCount ) { var treeitem = tree.treeBoxObject.view.getItemA... |
return gPrefs.getComplexValue(aPrefName, Components.interfaces.nsISupportsWString); | return gPrefs.getComplexValue(aPrefName, Components.interfaces.nsISupportsWString).data; | function getUnicharPref(aPrefName, aDefVal){ if (!gPrefs) return ""; try { return gPrefs.getComplexValue(aPrefName, Components.interfaces.nsISupportsWString); } catch(e) { } return "";} |
cx = getObjectDetails(client.currentObject, cx); | if (!cx) cx = new Object(); cx.__proto__ = getObjectDetails(client.currentObject); | function getUserlistContext(cx){ cx = getObjectDetails(client.currentObject, cx); if (!cx.channel) return cx; cx.userList = new Array(); cx.nicknameList = new Array(); cx.canonNickList = new Array(); var tree = document.getElementById("user-list"); var rangeCount = tree.view.selection.getRan... |
if (!this.m_userPrefs) { | if (this.m_userPrefs == null) { this.assureLoggedIn(); | getUserPreferences: function( prefName, out_count ) { try { if (!this.m_userPrefs) {// this.assureLoggedIn(); var url = this.getCommandUrl( "get_userprefs" ); url += ("&userid=" + encodeURIComponent(this.userId)); this.m_userPrefs ... |
var node = nodeList.item(i); ret.push( trimString(node.textContent) ); | ret.push( trimString(nodeList.item(i).textContent) ); | getUserPreferences: function( prefName, out_count ) { try { if (!this.m_userPrefs) {// this.assureLoggedIn(); var url = this.getCommandUrl( "get_userprefs" ); url += ("&userid=" + encodeURIComponent(this.userId)); this.m_userPrefs ... |
if (this.m_userPrefs == null) { this.assureLoggedIn(); | if (!this.m_userPrefs) { | getUserPreferences: function( prefName, out_count ) { try { if (this.m_userPrefs == null) { this.assureLoggedIn(); var url = this.getCommandUrl( "get_userprefs" ); url += ("&userid=" + encodeURIComponent(this.userId)); this.m_userPr... |
ret.push( trimString(nodeList.item(i).textContent) ); | var node = nodeList.item(i); ret.push( trimString(node.textContent) ); | getUserPreferences: function( prefName, out_count ) { try { if (this.m_userPrefs == null) { this.assureLoggedIn(); var url = this.getCommandUrl( "get_userprefs" ); url += ("&userid=" + encodeURIComponent(this.userId)); this.m_userPr... |
this.notifyError( exc ); | this.logError( exc ); | getUserPreferences: function( prefName, out_count ) { try { if (this.m_userPrefs == null) { var url = this.getCommandUrl( "get_userprefs" ); url += ("&userid=" + encodeURIComponent(this.userId)); this.m_userPrefs = this.issueSyncRequest( ... |
this.assureLoggedIn(); | getUserPreferences: function( prefName, out_count ) { try { if (this.m_userPrefs == null) { var url = this.getCommandUrl( "get_userprefs" ); url += ("&userid=" + encodeURIComponent(this.userId)); this.m_userPrefs = this.issueSyncRequest( ... | |
["font.family", defer], ["font.size", 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... | |
["timestamps", defer, "appearance.timestamps"], ["timestampFormat", defer, "appearance.timestamps"] | ["timestamps", defer, "appearance.timestamps"], ["timestamps.display", defer, "appearance.timestamps"], ["timestamps.log", defer, "hidden"] | 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... |
return uuidGen.generateUUID().toString(); | return uuidGen.generateUUID().toString().replace(/[{}]/g, ''); | function getUUID() { if ("@mozilla.org/uuid-generator;1" in Components.classes) { var uuidGen = Cc["@mozilla.org/uuid-generator;1"]. getService(Ci.nsIUUIDGenerator); return uuidGen.generateUUID().toString(); } // No uuid service (we're on the 1.8.0 branch) return "uuid" + ... |
return getBrowser().webNavigation; | return gBrowser.webNavigation; | function getWebNavigation(){ try { return getBrowser().webNavigation; } catch (e) { return null; }} |
if( weekNumber > 3 ) { var nextWeek = new Date( oldStartTime.getTime() + ( 1000 * 60 * 60 * 24 * 7 ) ); if( nextWeek.getMonth() != thisMonth ) { weekNumber = 5; } } | function getWeekNumberOfMonth(){ //get the day number for today. var startTime = getDateTimeFieldValue( "start-date-text" ); var oldStartTime = startTime; var thisMonth = startTime.getMonth(); var monthToCompare = thisMonth; var weekNumber = 0; while( monthToCompare == thisMonth ) { startTime... | |
nextWeek = new Date( getDateTimeFieldValue( "start-date-text" ).getTime() + ( 1000 * 60 * 60 * 24 * 7 ) ); | var nextWeek = new Date( getDateTimeFieldValue( "start-date-text" ).getTime() + ( 1000 * 60 * 60 * 24 * 7 ) ); | function getWeekNumberOfMonth(){ //get the day number for today. var startTime = getDateTimeFieldValue( "start-date-text" ); var dayNumber = startTime.getDay(); var thisMonth = startTime.getMonth(); var monthToCompare = startTime.getMonth(); var weekNumber = 0; while( monthToCompare == thisMonth ... |
var ex; | var rv; | function getXULWindowFromWindow (win){ var ex; try { var requestor = win.QueryInterface(nsIInterfaceRequestor); var nav = requestor.getInterface(nsIWebNavigation); var dsti = nav.QueryInterface(nsIDocShellTreeItem); var owner = dsti.treeOwner; requestor = owner.QueryInterface... |
return requestor.getInterface(nsIXULWindow); | rv = requestor.getInterface(nsIXULWindow); | function getXULWindowFromWindow (win){ var ex; try { var requestor = win.QueryInterface(nsIInterfaceRequestor); var nav = requestor.getInterface(nsIWebNavigation); var dsti = nav.QueryInterface(nsIDocShellTreeItem); var owner = dsti.treeOwner; requestor = owner.QueryInterface... |
return null; | return rv; | function getXULWindowFromWindow (win){ var ex; try { var requestor = win.QueryInterface(nsIInterfaceRequestor); var nav = requestor.getInterface(nsIWebNavigation); var dsti = nav.QueryInterface(nsIDocShellTreeItem); var owner = dsti.treeOwner; requestor = owner.QueryInterface... |
formatException = function formatException(ex) { if (isinstance(ex, Error) || ((typeof ex == "object") && ("filename" in ex))) return [ex.name, ex.message, ex.fileName, ex.lineNumber].join(", "); return String(ex); }; | function go(){ if (!loadDeps()) return false; initStatic(); init(bot); if (DEBUG) /* hook all events EXCEPT server.poll and *.event-end types * (the 4th param inverts the match) */ bot.eventPump.addHook ([{type: "poll", set: /^(server|dcc-chat)$/}, ... | |
if (sidebar == 1) { | if ( typeof sidebar != "undefined" && sidebar == 1 ) { | function go_to (url) { if (sidebar == 1) { load_relative_url(url); } else { document.location.href = url; }} |
dump("An error occurred executing the "+command+" command\n"); | dump("An error occurred executing the " + command + " command\n" + e + "\n"); | function goDoCommand(command){ try { var controller = top.document.commandDispatcher.getControllerForCommand(command); if ( controller && controller.isCommandEnabled(command)) controller.doCommand(command); } catch (e) { dump("An error occurred executing the "+command+" command\n"); }} |
"chrome,titlebar,resizable=no", | "chrome,resizable=no,titlebar,modal,centerscreen", | function goEditListDialog(abURI, abCard, listURI, okCallback){ window.openDialog("chrome://messenger/content/addressbook/abEditListDialog.xul", "", "chrome,titlebar,resizable=no", {abURI:abURI, abCard:abCard, listURI:listURI, okCallback:okCallback});} |
"chrome,titlebar,centerscreen,resizable=no", | "chrome,resizable=no,titlebar,modal,centerscreen", | function goNewListDialog(selectedAB){ window.openDialog("chrome://messenger/content/addressbook/abMailListDialog.xul", "", "chrome,titlebar,centerscreen,resizable=no", {selectedAB:selectedAB});} |
var promptText = Bundle.formatStringFromName("advanceNextPrompt", [ nextFolder.name ], 1); if (commonDialogs.Confirm(window, promptText, promptText)) { | switch (nextMode) { case 0: gNextMessageAfterLoad = true; SelectFolder(nextFolderURI); break; case 1: var promptText = Bundle.formatStringFromName("advanceNextPrompt", [ nextFolder.name ], 1); if (commonDialogs.Confirm(window, promptText, promptText)) { | function GoNextMessage(type, startFromBeginning ){ var beforeGoNextMessage; if (showPerformance) { beforeGoNextMessage = new Date(); } var tree = GetThreadTree(); var selArray = tree.selectedItems; var length = selArray.length; if ( selArray && ((length == 0) || (length == 1)) ) { var currentMessage; if(le... |
} break; default: dump("huh?"); | function GoNextMessage(type, startFromBeginning ){ var beforeGoNextMessage; if (showPerformance) { beforeGoNextMessage = new Date(); } var tree = GetThreadTree(); var selArray = tree.selectedItems; var length = selArray.length; if ( selArray && ((length == 0) || (length == 1)) ) { var currentMessage; if(le... | |
CrossFolderNavigation(type, true); | CrossFolderNavigation(type); | function GoNextMessage(type, startFromBeginning){ try { var succeeded = ScrollToMessage(type, startFromBeginning, true); if (!succeeded) { CrossFolderNavigation(type, true); } } catch (ex) { dump("GoNextMessage ex = " + ex + "\n"); } SetFocusThreadPaneIfNotOnMessagePane();} |
msgComposeService.OpenComposeWindowWithValues(null, 0, null, null, null, null, null, null, null); | msgComposeService.OpenComposeWindow(null, null, Components.interfaces.nsIMsgCompType.New, Components.interfaces.nsIMsgCompFormat.Default, null); | function goOpenNewMessage(){ var msgComposeService = Components.classes["component://netscape/messengercompose"].getService(); msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService); msgComposeService.OpenComposeWindowWithValues(null, 0, null, null, null, null, null, null, nu... |
msgComposeService.OpenComposeWindowWithValues(null, 0, null, null, null, null, null, null); | msgComposeService.OpenComposeWindowWithValues(null, 0, null, null, null, null, null, null, null); | function goOpenNewMessage(){ var msgComposeService = Components.classes["component://netscape/messengercompose"].getService(); msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService); msgComposeService.OpenComposeWindowWithValues(null, 0, null, null, null, null, null, null); }... |
return true; | function goPageSetup(domwin, printSettings){ try { if (printSettings == null) { alert("PrintSettings arg is null!"); } // This code calls the printoptions service to bring up the printoptions // dialog. This will be an xp dialog if the platform did not override // the ShowPrintSetupDialog method. ... | |
var features = "chrome,titlebar,resizable"; | var features = "chrome,titlebar,resizable,modal"; | function goPreferences(containerID, paneURL, itemID){ //check for an existing pref window and focus it; it's not application modal const kWindowMediatorContractID = "@mozilla.org/appshell/window-mediator;1"; const kWindowMediatorIID = Components.interfaces.nsIWindowMediator; const kWindowMediator = Components.class... |
var features = "chrome,titlebar,resizable,modal"; | var features = "chrome,titlebar,resizable"; | function goPreferences(containerID, paneURL, itemID){ //check for an existing pref window and focus it; it's not application modal const kWindowMediatorContractID = "@mozilla.org/appshell/window-mediator;1"; const kWindowMediatorIID = Components.interfaces.nsIWindowMediator; const kWindowMediator = Components.class... |
appShell.quit(); | appShell.quit(Components.interfaces.nsIAppShellService.eAttemptQuit); | function goQuitApplication(){ var ObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(); ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService); if (ObserverService) { try { ObserverService.notifyObservers(null, "quit-application", null);... |
if ( domWindow.tryToClose == null ) | if (!("tryToClose" in domWindow)) | function goQuitApplication(){ var ObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(); ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService); if (ObserverService) { try { ObserverService.Notify(null, "quit-application", null); } catch (ex) ... |
ObserverService.Notify(null, "quit-application", null); | ObserverService.notifyObservers(null, "quit-application", null); | function goQuitApplication(){ var ObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(); ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService); if (ObserverService) { try { ObserverService.Notify(null, "quit-application", null); } ... |
var ObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(); ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService); if (ObserverService) { try { var cancelQuit = Components.classes["@mozilla.org/supports-PRBool;1"].createInstance(Components.interfaces.ns... | if (!canQuitApplication()) return; | function goQuitApplication(){ var ObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(); ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService); if (ObserverService) { try { var cancelQuit = Components.classes["@mozilla.org/supports-PRBoo... |
domWindow.focus(); | function goQuitApplication(){ var ObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(); ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService); if (ObserverService) { try { ObserverService.Notify(null, "quit-application", null); } ... | |
var node = top.document.getElementById(id); | var node = document.getElementById(id); | function goSetCommandEnabled(id, enabled){ var node = top.document.getElementById(id); if ( node ) { if ( enabled ) node.removeAttribute("disabled"); else node.setAttribute('disabled', 'true'); }} |
var newURL = fileToURL(directory); addToHistory(directory.path); | addToHistory(directory.unicodePath); | function gotoDirectory(directory) { var newURL = fileToURL(directory); addToHistory(directory.path); directoryTree.setAttribute("ref", fileToURL(directory).spec); sfile = directory;} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.