rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
gCollectAddress = foo.headerValue; gCollectAddressTimer = setTimeout('abAddressCollector.collectUnicodeAddress(gCollectAddress, true);', 2000);
gCollectAddress = header.headerValue; gCollectAddressTimer = setTimeout('abAddressCollector.collectUnicodeAddress(gCollectAddress, true, Components.interfaces.nsIAbPreferMailFormat.unknown);', 2000);
processHeaders: function(headerNames, headerValues, numHeaders, dontCollectAddress) { this.onStartHeaders(); var index = 0; // process each header while (index < numHeaders) { // for consistancy sake, let's force all header names to be lower case so // we don't have to wor...
gCollectAddress = foo.headerValue; gCollectAddressTimer = setTimeout('abAddressCollector.collectUnicodeAddress(gCollectAddress, false);', 2000);
gCollectAddress = header.headerValue; gCollectAddressTimer = setTimeout('abAddressCollector.collectUnicodeAddress(gCollectAddress, false, Components.interfaces.nsIAbPreferMailFormat.unknown);', 2000);
processHeaders: function(headerNames, headerValues, numHeaders, dontCollectAddress) { this.onStartHeaders(); var index = 0; // process each header while (index < numHeaders) { // for consistancy sake, let's force all header names to be lower case so // we don't have to wor...
} index++; }
} }
processHeaders: function(headerNames, headerValues, numHeaders, dontCollectAddress) { this.onStartHeaders(); var index = 0; // process each header while (index < numHeaders) { // for consistancy sake, let's force all header names to be lower case so // we don't have to wor...
OutputEmailAddresses(containingBox, containerNode, header.headerValue, false, "", "")
OutputEmailAddresses(containingBox, containerNode, header.headerValue, false, "", "", headerName)
function ProcessHeaderValue(containingBox, containerNode, header, boxPartOfPopup){ // in the simplest case, we'll just create a text node for the header // and append it to the container Node. for certain headers, we might want to do // extra processing.... var headerName = header.headerName; header...
performActionOnJunkMsgs();
function processNext() { if (counter < messages.length) { var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); } else { du...
if (counter < messages.length) { var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); } else { dump('[bayesian filter message analysis complete.]\n'); gJunkmailComponent.endBatch(); performActionOnJunkMsgs...
var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); } else performActionOnJunkMsgs(); }
function processNext() { if (counter < messages.length) { var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); } else { du...
if (hasItems) this.writeICS();
processQueue: function () { if (this.locked) return; var a; while ((a = this.queue.shift())) { switch (a.action) { case 'add': this.mMemoryCalendar.addItem(a.item, a.listener); break; case 'modify': ...
} } else if ("arguments" in window && 0 in window.arguments && typeof window.arguments[0] == "string") { var url = window.arguments[0] var urlMatches = url.match(/^ircs?:\/\/\/?(.*)$/) if (urlMatches) { if (urlMatches[1]) { gotoIRCURL(url); wentSomewhere = true; } } else if (url) { display(getMsg(MSG_ERR_INVALID_SCH...
function processStartupURLs(){ var wentSomewhere = false; if ("arguments" in window && 0 in window.arguments && typeof window.arguments[0] == "object" && "url" in window.arguments[0]) { var url = window.arguments[0].url; if (url.search(/^ircs?:\/?\/?\/?$/i) == -1) { ...
var ary = client.INITIAL_URLS.split(/\s*;\s*/).reverse();
var ary = client.INITIAL_URLS.split(/\s*;\s*/);
function processStartupURLs(){ var wentSomewhere = false; if ("arguments" in window && 0 in window.arguments && typeof window.arguments[0] == "object" && "url" in window.arguments[0]) { var url = window.arguments[0].url; if (url.search(/^irc:\/?\/?$/i) == -1) { /* ...
menuListSelectItem("component-type", "None");
menuListSelectItem("todo-status-field", "None");
function processToDoStatus(status){ var completedDatePicker = document.getElementById( "completed-date-picker" ); switch(status) { case "": case "None": menuListSelectItem("component-type", "None"); disableElement( "completed-date-picker" ); disableElement( "percent-complete-menulist" )...
menuListSelectItem("component-type", "CANCELLED");
menuListSelectItem("todo-status-field", "CANCELLED");
function processToDoStatus(status){ var completedDatePicker = document.getElementById( "completed-date-picker" ); switch(status) { case "": case "None": menuListSelectItem("component-type", "None"); disableElement( "completed-date-picker" ); disableElement( "percent-complete-menulist" )...
menuListSelectItem("component-type", "COMPLETED");
menuListSelectItem("todo-status-field", "COMPLETED");
function processToDoStatus(status){ var completedDatePicker = document.getElementById( "completed-date-picker" ); switch(status) { case "": case "None": menuListSelectItem("component-type", "None"); disableElement( "completed-date-picker" ); disableElement( "percent-complete-menulist" )...
menuListSelectItem("component-type", "IN-PROCESS");
menuListSelectItem("todo-status-field", "IN-PROCESS");
function processToDoStatus(status){ var completedDatePicker = document.getElementById( "completed-date-picker" ); switch(status) { case "": case "None": menuListSelectItem("component-type", "None"); disableElement( "completed-date-picker" ); disableElement( "percent-complete-menulist" )...
menuListSelectItem("component-type", "NEEDS-ACTION");
menuListSelectItem("todo-status-field", "NEEDS-ACTION");
function processToDoStatus(status){ var completedDatePicker = document.getElementById( "completed-date-picker" ); switch(status) { case "": case "None": menuListSelectItem("component-type", "None"); disableElement( "completed-date-picker" ); disableElement( "percent-complete-menulist" )...
setTimeout(CancelPublishing,0);
setTimeout(CancelPublishing(), 0);
prompt : function(dlgTitle, text, pwrealm, savePW, defaultText, result) { var promptServ = GetPromptService(); if (!promptServ) return false; var savePWObj = {value:savePW}; var ret = promptServ.prompt(gProgressDialog ? gProgressDialog : window, dlgTitle, text, default...
gPrefs.SetIntPref("offline.download.download_messages", 0);
gPrefs.setIntPref("offline.download.download_messages", 0);
function PromptDownloadMessages(){ InitPrompts(); InitServices(); if(gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('downloadMessagesWindowTitle'), gOffli...
gPrefs.SetIntPref("offline.download.download_messages", 1);
gPrefs.setIntPref("offline.download.download_messages", 1);
function PromptDownloadMessages(){ InitPrompts(); InitServices(); if(gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('downloadMessagesWindowTitle'), gOffli...
gPrefs.SetIntPref("offline.download.download_messages", 2);
gPrefs.setIntPref("offline.download.download_messages", 2);
function PromptDownloadMessages(){ InitPrompts(); InitServices(); if(gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('downloadMessagesWindowTitle'), gOffli...
var fileLocation = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsIFile); ioService.initFileFromURLSpec(fileLocation, aDocumentURLString);
var fileLocation = ioService.getFileFromURLSpec(aDocumentURLString);
function PromptForSaveLocation(aDoSaveAsText, aEditorType, aMIMEType, ahtmlDocument, aDocumentURLString){ var dialogResult = new Object; dialogResult.filepickerClick = nsIFilePicker.returnCancel; dialogResult.resultingURI = ""; dialogResult.resultingLocalFile = null; var fp = null; try { fp = Components.classe...
var prefs = Components.classes[ "@mozilla.org/preferences;1" ] .getService( Components.interfaces.nsIPref );
var prefs = Components.classes[ "@mozilla.org/preferences-service;1" ] .getService( Components.interfaces.nsIPrefBranch );
promptForSaveToFile: function(aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .createInstan...
var startDir = prefs.getFileXPref( "browser.download.dir" );
var startDir = prefs.getComplexValue("browser.download.dir", Components.interfaces.nsILocalFile);
promptForSaveToFile: function(aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .createInstan...
prefs.setFileXPref( "browser.download.dir", newDir );
prefs.setComplexValue("browser.download.dir", Components.interfaces.nsILocalFile, newDir);
promptForSaveToFile: function(aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .createInstan...
setTimeout(CancelPublishing,0);
setTimeout(CancelPublishing(), 0);
promptPassword : function(dlgTitle, text, pwrealm, savePW, pwObj) { var ret = false; try { var promptServ = GetPromptService(); if (!promptServ) return false; // Note difference with nsIPrompt::promptPassword, which has // "inout" savePassword param, while nsIAuthPrompt is just "in"...
gPrefs.SetIntPref("offline.send.unsent_messages", 0);
gPrefs.setIntPref("offline.send.unsent_messages", 0);
function PromptSendMessages(){ InitPrompts(); InitServices(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesWindowTitle'), gOfflinePromp...
gPrefs.SetIntPref("offline.send.unsent_messages", 1);
gPrefs.setIntPref("offline.send.unsent_messages", 1);
function PromptSendMessages(){ InitPrompts(); InitServices(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesWindowTitle'), gOfflinePromp...
gPrefs.SetIntPref("offline.send.unsent_messages", 2);
gPrefs.setIntPref("offline.send.unsent_messages", 2);
function PromptSendMessages(){ InitPrompts(); InitServices(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesWindowTitle'), gOfflinePromp...
setTimeout(CancelPublishing,0);
setTimeout(CancelPublishing(), 0);
promptUsernameAndPassword : function(dlgTitle, text, pwrealm, savePW, userObj, pwObj) { var ret = PromptUsernameAndPassword(dlgTitle, text, savePW, userObj, pwObj); if (!ret) setTimeout(CancelPublishing,0); return ret; },
this.checkRemotePrefName_ = PROT_GlobalStore.getServerCheckEnabledPrefName(); this.checkRemote_ = this.prefs_.getPref(this.checkRemotePrefName_, null); this.checkRemotePrefObserver = BindToObject(this.onCheckRemotePrefChanged, this); this.prefs_.addObserver(this.checkRemotePrefName_, this.checkRemotePrefObserver); ...
function PROT_Controller(win, tabWatcher, phishingWarden) { this.debugZone = "controller"; this.win_ = win; this.phishingWarden_ = phishingWarden; // Use this to query preferences this.prefs_ = new G_Preferences(); // Read state: are we in advanced mode? this.checkRemotePrefName_ = PROT_GlobalStore.getServerChec...
this.onShutdown_ = BindToObject(this.shutdown, this); this.win_.addEventListener("unload", this.onShutdown_, false);
function PROT_Controller(win, tabWatcher, phishingWarden) { this.debugZone = "controller"; this.win_ = win; this.phishingWarden_ = phishingWarden; // Use this to query preferences this.prefs_ = new G_Preferences(); // Read state: are we in advanced mode? this.checkRemotePrefName_ = PROT_GlobalStore.getServerChec...
this.prefs_.addObserver(kPhishWardenRemoteLookups, BindToObject(this.loadDataProviderPrefs_, this));
function PROT_DataProvider() { this.prefs_ = new G_Preferences(); this.loadDataProviderPrefs_(); // Watch for changes in the data provider and update accordingly. this.prefs_.addObserver(kDataProviderIdPref, BindToObject(this.loadDataProviderPrefs_, this)); // Watch for when anti-phishin...
this.observerServiceObserver_ = new G_ObserverServiceObserver( 'xpcom-shutdown', BindToObject(this.shutdown_, this));
function PROT_ListManager() { this.debugZone = "listmanager"; G_debugService.enableZone(this.debugZone); this.currentUpdateChecker_ = null; // set when we toggle updates this.rpcPending_ = false; this.prefs_ = new G_Preferences(); this.updateserverURL_ = this.prefs_.getPref(kUpdateServerUrl, null); // The list...
if (!this.testing_) { this.navWatcher_ = new G_NavWatcher(); this.navWatcher_.registerListener("docnavstart", BindToObject(this.onDocNavStart, this)); }
var wp = Ci.nsIWebProgress; var wpService = Cc["@mozilla.org/docloaderservice;1"].getService(wp); wpService.addProgressListener(this, wp.NOTIFY_STATE_REQUEST);
function PROT_PhishingWarden() { PROT_ListWarden.call(this); this.debugZone = "phishwarden"; this.testing_ = false; this.browserViews_ = []; // Use this to query preferences this.prefs_ = new G_Preferences(); // Only one displayer so far; perhaps we'll have others in the future this.displayers_ = { "afterloa...
var checkRemotePrefName = PROT_GlobalStore.getServerCheckEnabledPrefName(); this.checkRemote_ = this.prefs_.getPref(checkRemotePrefName, null);
this.checkRemote_ = this.prefs_.getPref(kPhishWardenRemoteLookups, null);
function PROT_PhishingWarden() { PROT_ListWarden.call(this); this.debugZone = "phishwarden"; this.testing_ = false; this.browserViews_ = []; // Use this to query preferences this.prefs_ = new G_Preferences(); // Only one displayer so far; perhaps we'll have others in the future this.displayers_ = { "afterloa...
this.prefs_.addObserver(checkRemotePrefName, checkRemotePrefObserver);
this.prefs_.addObserver(kPhishWardenRemoteLookups, checkRemotePrefObserver);
function PROT_PhishingWarden() { PROT_ListWarden.call(this); this.debugZone = "phishwarden"; this.testing_ = false; this.browserViews_ = []; // Use this to query preferences this.prefs_ = new G_Preferences(); // Only one displayer so far; perhaps we'll have others in the future this.displayers_ = { "afterloa...
var phishWardenPrefName = PROT_GlobalStore.getPhishWardenEnabledPrefName(); this.phishWardenEnabled_ = this.prefs_.getPref(phishWardenPrefName, null);
this.phishWardenEnabled_ = this.prefs_.getPref(kPhishWardenEnabledPref, null);
function PROT_PhishingWarden() { PROT_ListWarden.call(this); this.debugZone = "phishwarden"; this.testing_ = false; this.browserViews_ = []; // Use this to query preferences this.prefs_ = new G_Preferences(); // Only one displayer so far; perhaps we'll have others in the future this.displayers_ = { "afterloa...
this.prefs_.addObserver(phishWardenPrefName, phishWardenPrefObserver);
this.prefs_.addObserver(kPhishWardenEnabledPref, phishWardenPrefObserver);
function PROT_PhishingWarden() { PROT_ListWarden.call(this); this.debugZone = "phishwarden"; this.testing_ = false; this.browserViews_ = []; // Use this to query preferences this.prefs_ = new G_Preferences(); // Only one displayer so far; perhaps we'll have others in the future this.displayers_ = { "afterloa...
this.requestBackoff_ = new RequestBackoff(3 , 10*60*1000 , 10*60*1000 , 6*60*60*1000 );
function PROT_PhishingWarden(progressListener) { PROT_ListWarden.call(this); this.debugZone = "phishwarden"; this.testing_ = false; this.browserViews_ = []; // Use this to query preferences this.prefs_ = new G_Preferences(); // Only one displayer so far; perhaps we'll have others in the future this.displayers_ ...
this.reKey();
function PROT_UrlCryptoKeyManager(opt_keyFilename, opt_testing) { this.debugZone = "urlcryptokeymanager"; this.testing_ = !!opt_testing; this.base64_ = new G_Base64(); this.clientKey_ = null; // Base64-encoded, as fetched from server this.clientKeyArray_ = null; // Base64-decoded into an array of numb...
this._request = new PROT_XMLHttpRequest();
this._request = PROT_NewXMLHttpRequest();
function PROT_XMLFetcher(opt_stripCookies) { this.debugZone = "xmlfetcher"; this._request = new PROT_XMLHttpRequest(); this._stripCookies = !!opt_stripCookies;}
return bot.eventPump.addHook (pattern, f, name, neg, enabled, bot.personality.hooks);
function psn_addhook (pattern, f, name, neg, enabled){ if (pattern instanceof RegExp) pattern = {statement: pattern}; return bot.eventPump.addHook (pattern, f, name, neg, enabled, bot.personality.hooks);}
return bot.eventPump.addHook(pattern, f, name, neg, enabled, bot.personality.hooks);
function psn_addhook (pattern, f, name, neg, enabled){ if (pattern instanceof RegExp) pattern = {statement: pattern}; return bot.eventPump.addHook (pattern, f, name, neg, enabled, bot.personality.hooks);}
var calendarString = eventArrayToICalString( gCalendarWindow.EventSelection.selectedEvents );
var args = new Object();
function publishCalendarData(){ var calendarString = eventArrayToICalString( gCalendarWindow.EventSelection.selectedEvents ); calendarPublish(calendarString, "http://localhost/webdav/", "TestCalendar.ics", "", "", "text/calendar");}
calendarPublish(calendarString, "http:
args.onOk = self.publishCalendarDataDialogResponse; openDialog("chrome:
function publishCalendarData(){ var calendarString = eventArrayToICalString( gCalendarWindow.EventSelection.selectedEvents ); calendarPublish(calendarString, "http://localhost/webdav/", "TestCalendar.ics", "", "", "text/calendar");}
calendarPublish(calendarString, CalendarPublishObject.url, CalendarPublishObject.remotePath, CalendarPublishObject.username, CalendarPublishObject.password, "text/calendar");
calendarPublish(calendarString, CalendarPublishObject.remotePath, CalendarPublishObject.username, CalendarPublishObject.password, "text/calendar");
function publishCalendarDataDialogResponse( CalendarPublishObject ){ var calendarString = eventArrayToICalString( gCalendarWindow.EventSelection.selectedEvents ); calendarPublish(calendarString, CalendarPublishObject.url, CalendarPublishObject.remotePath, CalendarPublishObject.username, CalendarPublishObject.pas...
calendarPublish(calendarString, CalendarPublishObject.remotePath, CalendarPublishObject.username, CalendarPublishObject.password, "text/calendar");
calendarPublish(calendarString, CalendarPublishObject.remotePath, "text/calendar");
function publishCalendarDataDialogResponse( CalendarPublishObject ){ var calendarString = eventArrayToICalString( gCalendarWindow.EventSelection.selectedEvents ); calendarPublish(calendarString, CalendarPublishObject.remotePath, CalendarPublishObject.username, CalendarPublishObject.password, "text/calendar");}
if( remotePath != "" )
if( remotePath != "" && remotePath != null )
function publishEntireCalendar(){ var args = new Object(); args.onOk = self.publishEntireCalendarDialogResponse; var name = gCalendarWindow.calendarManager.getSelectedCalendarId(); var node = gCalendarWindow.calendarManager.rdf.getNode( name ); var remotePath = node.getAttribute( "http://home.netscape.com...
var arrayOfPath = remotePath.split( "/" ); publishObject.filename = arrayOfPath.pop(); publishObject.url = remotePath.substr( 0, ( remotePath.length - publishObject.filename.length) );
publishObject.remotePath = remotePath;
function publishEntireCalendar(){ var args = new Object(); args.onOk = self.publishEntireCalendarDialogResponse; var name = gCalendarWindow.calendarManager.getSelectedCalendarId(); var node = gCalendarWindow.calendarManager.rdf.getNode( name ); var remotePath = node.getAttribute( "http://home.netscape.com...
publishObject.username = node.getAttribute( "http:
function publishEntireCalendar(){ var args = new Object(); args.onOk = self.publishEntireCalendarDialogResponse; var name = gCalendarWindow.calendarManager.getSelectedCalendarId(); var node = gCalendarWindow.calendarManager.rdf.getNode( name ); var remotePath = node.getAttribute( "http://home.netscape.com...
publishObject.password = node.getAttribute( "http:
function publishEntireCalendar(){ var args = new Object(); args.onOk = self.publishEntireCalendarDialogResponse; var name = gCalendarWindow.calendarManager.getSelectedCalendarId(); var node = gCalendarWindow.calendarManager.rdf.getNode( name ); var remotePath = node.getAttribute( "http://home.netscape.com...
return( false );
function publishEntireCalendarDialogResponse( CalendarPublishObject ){ //update the calendar object with the publish information var name = gCalendarWindow.calendarManager.getSelectedCalendarId(); //get the node var node = gCalendarWindow.calendarManager.rdf.getNode( name ); node.setAttribute("http://ho...
node.setAttribute("http: node.setAttribute("http:
function publishEntireCalendarDialogResponse( CalendarPublishObject ){ //update the calendar object with the publish information var name = gCalendarWindow.calendarManager.getSelectedCalendarId(); //get the node var node = gCalendarWindow.calendarManager.rdf.getNode( name ); node.setAttribute("http://ho...
CalendarPublishObject.username, CalendarPublishObject.password,
function publishEntireCalendarDialogResponse( CalendarPublishObject ){ //update the calendar object with the publish information var name = gCalendarWindow.calendarManager.getSelectedCalendarId(); //get the node var node = gCalendarWindow.calendarManager.rdf.getNode( name ); node.setAttribute("http://ho...
oldCalendar.getItems(Components.interfaces.calICalendar.ITEM_FILTER_TYPE_ALL,
oldCalendar.getItems(Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS,
function publishEntireCalendarDialogResponse(CalendarPublishObject, aProgressDialog){ var itemArray = []; var getListener = { onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { publishItemArray(itemArray, CalendarPublishObject.remotePath, aProgressDialog); ...
aItemArray.length, aItemArray);
aItemArray.length, aItemArray, null);
function publishItemArray(aItemArray, aPath, aProgressDialog) { var outputStream; var inputStream; var storageStream; var icsURL = makeURL(aPath); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var c...
var rv = pickOpen(MSG_PREFS_BROWSE_TITLE, spec);
var type = button.getAttribute("kind"); var edit = button.previousSibling.lastChild; var rv; if (type == "folder") { var current = getFileFromURLSpec(edit.value); rv = pickGetFolder(MSG_PREFS_BROWSE_TITLE, current); } else { rv = pickOpen(MSG_PREFS_BROWSE_TITLE, spec); }
function pwin_onPrefBrowse(button){ var spec = "$all"; if (button.hasAttribute("spec")) spec = button.getAttribute("spec") + " " + spec; var rv = pickOpen(MSG_PREFS_BROWSE_TITLE, spec); if (rv.reason != PICK_OK) return; var data = { file: rv.file.path, fileurl: rv.picker.fileURL.spe...
var data = { file: rv.file.path, fileurl: rv.picker.fileURL.spec }; var edit = button.previousSibling.lastChild; var type = button.getAttribute("kind"); edit.value = data[type];
edit.value = (type == "file") ? rv.file.path : rv.picker.fileURL.spec;
function pwin_onPrefBrowse(button){ var spec = "$all"; if (button.hasAttribute("spec")) spec = button.getAttribute("spec") + " " + spec; var rv = pickOpen(MSG_PREFS_BROWSE_TITLE, spec); if (rv.reason != PICK_OK) return; var data = { file: rv.file.path, fileurl: rv.picker.fileURL.spe...
return null;
QueryInterface : function(iid) { if(iid.equals(Components.interfaces.nsIXULBrowserWindow)) return this; throw Components.results.NS_NOINTERFACE; },
if (!iid.equals(Components.interfaces.nsIRequestObserver) && !iid.equals(Components.interfaces.nsIProgressEventSink) && !iid.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
if (!aIID.equals(Components.interfaces.nsIUpdateCheckListener) && !aIID.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
QueryInterface: function(iid) { if (!iid.equals(Components.interfaces.nsIRequestObserver) && !iid.equals(Components.interfaces.nsIProgressEventSink) && !iid.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
return null;
QueryInterface : function(iid) { if(iid.equals(Components.interfaces.nsIXULBrowserWindow)) return this; throw Components.results.NS_NOINTERFACE; return null; // quiet warnings },
if(iid.equals(Components.interfaces.nsIMsgDBViewCommandUpdater)) return this;
if (iid.equals(Components.interfaces.nsIMsgDBViewCommandUpdater) || iid.equals(Components.interfaces.nsISupports)) return this;
QueryInterface : function(iid) { if(iid.equals(Components.interfaces.nsIMsgDBViewCommandUpdater)) return this; throw Components.results.NS_NOINTERFACE; return null; }
return null;
QueryInterface : function(iid) { if(iid.equals(Components.interfaces.nsIMsgDBViewCommandUpdater)) return this; throw Components.results.NS_NOINTERFACE; return null; }
{ if(iid.equals(Components.interfaces.nsIMsgDBViewCommandUpdater))
{ if (iid.equals(Components.interfaces.nsIMsgDBViewCommandUpdater) || iid.equals(Components.interfaces.nsISupports))
QueryInterface : function(iid) { if(iid.equals(Components.interfaces.nsIMsgDBViewCommandUpdater)) return this; throw Components.results.NS_NOINTERFACE; return null; }
throw Components.results.NS_NOINTERFACE; return null; }
throw Components.results.NS_NOINTERFACE; }
QueryInterface : function(iid) { if(iid.equals(Components.interfaces.nsIMsgDBViewCommandUpdater)) return this; throw Components.results.NS_NOINTERFACE; return null; }
if (iid.equals(Components.interfaces.nsIWebProgressListener) || iid.equals(Components.interfaces.nsISupportsWeakReference)) return this;
if (iid.equals(Components.interfaces.nsIWebProgressListener) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports)) return this;
QueryInterface : function(iid) { if (iid.equals(Components.interfaces.nsIWebProgressListener) || iid.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_NOINTERFACE; }
if(iid.equals(Components.interfaces.nsIMsgMessagePaneController))
if (iid.equals(Components.interfaces.nsIMsgMessagePaneController) || iid.equals(Components.interfaces.nsISupports))
QueryInterface : function(iid) { if(iid.equals(Components.interfaces.nsIMsgMessagePaneController)) return this; throw Components.results.NS_NOINTERFACE; return null; },
return null;
QueryInterface : function(iid) { if(iid.equals(Components.interfaces.nsIMsgMessagePaneController)) return this; throw Components.results.NS_NOINTERFACE; return null; },
if (iid.equals(Components.interfaces.nsIWebProgressListener) || iid.equals(Components.interfaces.nsISupportsWeakReference))
if (iid.equals(Components.interfaces.nsIWebProgressListener) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports))
QueryInterface : function(iid) { if (iid.equals(Components.interfaces.nsIWebProgressListener) || iid.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_NOINTERFACE; }
if (iid.equals(Components.interfaces.nsISupportsWeakReference)) {
if (iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports)) {
QueryInterface: function (iid) { if (iid.equals(Components.interfaces.nsISupportsWeakReference)) { return this; } throw Components.results.NS_ERROR_NO_INTERFACE; }
!aIID.equals(nsIWebDavOperationListener)) {
!aIID.equals(Components.interfaces.calICalendarProvider) && !aIID.equals(Components.interfaces.calICalendar) && !aIID.equals(Components.interfaces.nsIInterfaceRequestor)) {
QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(nsIWebDavOperationListener)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; },
iid.equals(Components.interfaces.nsISupportsWeakReference))
iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports))
QueryInterface : function(iid) { if (iid.equals(Components.interfaces.nsIWebProgressListener) || iid.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_NOINTERFACE; }
iid.equals(Components.interfaces.nsIWebProgressListener2) ||
QueryInterface: function (iid) { if (iid.equals(Components.interfaces.nsIProgressDialog) || iid.equals(Components.interfaces.nsIDownload) || iid.equals(Components.interfaces.nsITransfer) || iid.equals(Components.interfaces.nsIWebProgressListener) || iid.equals(Comp...
{ if (iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference))
{ if (iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports))
QueryInterface : function(iid) { if (iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_NOINTERFACE; }
aIID.equals(Components.interfaces.nsISupportsWeakReference))
aIID.equals(Components.interfaces.nsISupportsWeakReference) || aIID.equals(Components.interfaces.nsISupports)) {
QueryInterface : function(aIID) { if (aIID.equals(Components.interfaces.nsIWebProgressListener) || aIID.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_NOINTERFACE; },
}
QueryInterface : function(aIID) { if (aIID.equals(Components.interfaces.nsIWebProgressListener) || aIID.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_NOINTERFACE; },
if (iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference))
if (iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports)) {
QueryInterface : function(iid) { if (iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_NOINTERFACE; }
}
QueryInterface : function(iid) { if (iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_NOINTERFACE; }
if (iid.equals(Components.interfaces.nsIURIContentListener)) return this; if (iid.equals(Components.interfaces.nsISupportsWeakReference))
if (iid.equals(Components.interfaces.nsIURIContentListener) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports))
QueryInterface: function(iid) { if (iid.equals(Components.interfaces.nsIURIContentListener)) return this; if (iid.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_NOINTERFACE; },
if (iid.equals(Components.interfaces.nsIMsgDBHdr) ||
if (iid.equals(Components.interfaces.nsIFlavorDataProvider) ||
QueryInterface : function(iid) { if (iid.equals(Components.interfaces.nsIMsgDBHdr) || iid.equals(Components.interfaces.nsISupports)) return this; throw Components.results.NS_NOINTERFACE; },
ENSURE_ARG(aName && aValue, "missing name or value for QueryParameter!");
ENSURE_ARG(aName && (aValue != null), "missing name or value for QueryParameter!");
function QueryParameter(aName, aValue) { ENSURE_ARG(aName && aValue, "missing name or value for QueryParameter!"); ENSURE(!kInvalidWords.test(aValue), "Illegal value while creating a QueryParameter", Cr.NS_ERROR_NOT_IMPLEMENTED); this.name = aName; this.value = aValue;}
input = input.replace(/^[\s]+/,"").replace(/[\s]+$/,"");
function QuickSearch (){ var input = document.f.id.value; if (input == "") { //once this _is_ on http://bugzilla.mozilla.org, it should just return; go_to(bugzilla); } else if (input.match(/^[0-9, ]*$/)) { if (input.indexOf(",") == -1) { // only _one_ bug number --> ...
var mailWindow = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"] .getService(Components.interfaces.nsIWindowMediator).getMostRecentWindow("mail:3pane");
var mailWindow = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService() .QueryInterface(Components.interfaces.nsIWindowMediator) .getMostRecentWindow("mail:3pane");
function QuoteSelectedMessage(){ if (gMsgCompose) { var mailWindow = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"] .getService(Components.interfaces.nsIWindowMediator).getMostRecentWindow("mail:3pane"); if (mailWindow) { var selectedURIs = mailWindow.GetSelecte...
for each (item in items) { if (item.getAttribute("id") == id)
var i; for (i in items) { if (items[i].getAttribute("id") == id)
function radioGroupIndexOf(radioGroup, id){ var items = radioGroup.getElementsByTagName("radio"); for each (item in items) { if (item.getAttribute("id") == id) return i; } return -1; // not found}
return this.dAssert (n1, a, n2, f);
function rdf_assert (n1, a, n2, f){ if (typeof f == "undefined") f = true; return this.dAssert (n1, a, n2, f); return this.ds.Assert (n1, a, n2, f);}
return;
return null;
function rdf_duassert (n1, a, n2){ var oldN2 = this.ds.GetTarget (n1, a, true); if (!oldN2) { dd ("** Unable to change " + n1.Value + " -[" + a.Value + "]->, " + "because old value was not found."); return; } return this.ds.Change (n1, a, oldN2, n2); }
return aEl.getAttribute("data");
return aEl.getAttribute("value");
read_menulist: function(aEl) { return aEl.getAttribute("data"); },
return aEl.getAttribute("data");
return aEl.getAttribute("value");
read_radiogroup: function(aEl) { return aEl.getAttribute("data"); },
function (a, b) { if (a[0] < b[0]) return -1; if (a[0] > b[0]) return 1; return 0;
function compareFn(a, b) { return a[0].localeCompare(b[0]);
function ReadAvailableLanguages(){ availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0; var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem; var stringName; var stringNameProperty; while (acceptedBundleEnum.hasMoreElements()) { //progress t...
var channel = ios.NewChannelFromURI('load', uri, null);
var channel = ios.NewChannelFromURI('load', uri, null, null);
function ReadDirectory(url){ // Check to make sure we haven't read the directory yet... if (Read[url]) return; debug('ReadDirectory(' + url + ')\n'); var ios = Components.classes['component://netscape/network/net-service'].getService(); ios = ios.QueryInterface(Components.interfaces.nsIIOService);...
var clipboard = Components .classes["component: .getService ( Components.interfaces.nsIClipboard ); var trans = Components .classes["component: .createInstance( Components.interfaces.nsITransferable ); if ( !clipboard || !trans ) return; trans.addDataFlavor( "text/plain" ); clipboard.getData(trans); var data = new O...
data = data.value.QueryInterface(Components.interfaces.nsISupportsString); url = data.data.substring(0, dataLen.value);
function readFromClipboard() { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. var trans = Components ...
return url; }
function readFromClipboard() { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. var trans = Components ...
clipboard.getData(trans, clipboard.kSelectionClipboard);
if (clipboard.supportsSelectionClipboard()) clipboard.getData(trans, clipboard.kSelectionClipboard); else clipboard.getData(trans, clipboard.kGlobalClipboard);
function readFromClipboard(){ var url; try { // Get clipboard. var clipboard = Components.classes["@mozilla.org/widget/clipboard;1"] .getService(Components.interfaces.nsIClipboard); // Create tranferable that will transfer the text. var trans = Components.classes["@mozilla.org...
data = data.value.QueryInterface(Components.interfaces.nsISupportsWString);
data = data.value.QueryInterface(Components.interfaces.nsISupportsString);
function readFromClipboard(){ var url; try { // Get clipboard. var clipboard = Components.classes["@mozilla.org/widget/clipboard;1"] .getService(Components.interfaces.nsIClipboard); // Create tranferable that will transfer the text. var trans = Components.classes["@mozilla.org...
CIRCNetwork.prototype.INITIAL_CHANNEL = getCharPref (pref, rootNode + "channel", CIRCNetwork.prototype.INITIAL_CHANNEL); client.STARTUP_NETWORK = getCharPref (pref, rootNode + "network", "");
client.DEFAULT_NETWORK = getCharPref (pref, rootNode + "defaultNet", "moznet"); client.INITIAL_URLS = getCharPref (pref, rootNode + "initialURLs", ""); client.ADDRESSED_NICK_SEP = getCharPref (pref, rootNode + "nickCompleteStr", client.ADDRESSED_NICK_SEP); client.INITIAL_VICTIMS = getCharPref (pref, rootNode + "stalkWo...
function readIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInterf...
getBoolPref (pref, rootNode + "toolbar.icons", true);
getBoolPref (pref, rootNode + "toolbar.icons", false);
function readIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInterf...
client.startupNetwork = getCharPref (pref, rootNode + "network", CIRCNetwork.prototype.INITIAL_CHANNEL);
client.STARTUP_NETWORK = getCharPref (pref, rootNode + "network", ""); client.munger.enabled = getBoolPref (pref, rootNode + "munger", client.munger.enabled); client.ICONS_IN_TOOLBAR = getBoolPref (pref, rootNode + "toolbar.icons", true); client.FLASH_WINDOW = getBoolPref (pref, rootNode + "notify.aggressive", true)...
function readIRCPrefs (rootNode){ var pref = Components.classes["component://netscape/preferences"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.Query...
for (var entry in client.munger.entries) client.munger.entries[entry].enabled = getBoolPref (pref, rootNode + "munger." + entry, client.munger.entries[entry].enabled);
function readIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInterf...
var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component.");
var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function readIRCPrefs (rootNode){ if (!getPriv("UniversalXPConnect")) return false; var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\...
pref = pref.QueryInterface(Components.interfaces.nsIPref);
function readIRCPrefs (rootNode){ if (!getPriv("UniversalXPConnect")) return false; var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\...
getCharPref (pref, rootNode + "style.default", "output-default.css");
getCharPref (pref, rootNode + "style.default", "chrome:
function readIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInterf...
client.USER_CSS_PRE = getCharPref (pref, rootNode + "style.user.pre", ""); client.USER_CSS_POST = getCharPref (pref, rootNode + "style.user.post", "");
function readIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInterf...