rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
return( gDateFormatter.getFormatedDate( date ) );
return( opener.gCalendarWindow.dateFormater.getFormatedDate( date ) );
function formatDate( date ){ return( gDateFormatter.getFormatedDate( date ) );}
function formatDateOffset (seconds, format)
function formatDateOffset (offset, format)
function formatDateOffset (seconds, format){ seconds = parseInt(seconds); var minutes = parseInt(seconds / 60); seconds = seconds % 60; var hours = parseInt(minutes / 60); minutes = minutes % 60; var days = parseInt(hours / 24); hours = hours % 24; if (!format) { var ary = new Arr...
seconds = parseInt(seconds); var minutes = parseInt(seconds / 60); seconds = seconds % 60; var hours = parseInt(minutes / 60);
offset = roundTo(offset, 2); var seconds = offset % 60; var minutes = parseInt(offset / 60); var hours = parseInt(minutes / 60);
function formatDateOffset (seconds, format){ seconds = parseInt(seconds); var minutes = parseInt(seconds / 60); seconds = seconds % 60; var hours = parseInt(minutes / 60); minutes = minutes % 60; var days = parseInt(hours / 24); hours = hours % 24; if (!format) { var ary = new Arr...
if (seconds > 0)
if (seconds > 0 || offset == 0)
function formatDateOffset (seconds, format){ seconds = parseInt(seconds); var minutes = parseInt(seconds / 60); seconds = seconds % 60; var hours = parseInt(minutes / 60); minutes = minutes % 60; var days = parseInt(hours / 24); hours = hours % 24; if (!format) { var ary = new Arr...
ary.push (days + " days");
ary.push (getMsg("days", days));
function formatDateOffset (offset, format){ var seconds = roundTo(offset % 60, 2); var minutes = parseInt(offset / 60); var hours = parseInt(minutes / 60); minutes = minutes % 60; var days = parseInt(hours / 24); hours = hours % 24; if (!format) { var ary = new Array(); if (days > ...
ary.push (hours + " hours");
ary.push (getMsg("hours", hours));
function formatDateOffset (offset, format){ var seconds = roundTo(offset % 60, 2); var minutes = parseInt(offset / 60); var hours = parseInt(minutes / 60); minutes = minutes % 60; var days = parseInt(hours / 24); hours = hours % 24; if (!format) { var ary = new Array(); if (days > ...
ary.push (minutes + " minutes");
ary.push (getMsg("minutes", minutes));
function formatDateOffset (offset, format){ var seconds = roundTo(offset % 60, 2); var minutes = parseInt(offset / 60); var hours = parseInt(minutes / 60); minutes = minutes % 60; var days = parseInt(hours / 24); hours = hours % 24; if (!format) { var ary = new Array(); if (days > ...
ary.push (seconds + " seconds");
ary.push (getMsg("seconds", seconds));
function formatDateOffset (offset, format){ var seconds = roundTo(offset % 60, 2); var minutes = parseInt(offset / 60); var hours = parseInt(minutes / 60); minutes = minutes % 60; var days = parseInt(hours / 24); hours = hours % 24; if (!format) { var ary = new Array(); if (days > ...
else if (ex instanceof jsdIValue) ex = ex.stringValue;
function formatEvalException (ex){ if (ex instanceof BadMojo || ex instanceof Error) return formatException (ex); return getMsg (MSN_EVAL_THREW, String(ex));}
function formatSeconds( nSecs ) { status = ""; if ( nSecs >= 3600 ) { status += Math.round( nSecs/3600 ) + ":"; nSecs = nSecs % 3600;
function formatSeconds( secs ) { secs = parseInt( secs + .5 ); var hours = parseInt( secs/3600 ); secs -= hours*3600; var mins = parseInt( secs/60 ); secs -= mins*60; var result; if ( hours ) { result = getString( "longTimeFormat" ); } else { result = getString( "shortTimeFormat" );
function formatSeconds( nSecs ) { status = ""; if ( nSecs >= 3600 ) { status += Math.round( nSecs/3600 ) + ":"; nSecs = nSecs % 3600; } status += Math.round( nSecs/60 ) + ":"; nSecs = nSecs % 60; status += nSecs; return status;}
status += Math.round( nSecs/60 ) + ":"; nSecs = nSecs % 60; status += nSecs; return status;
if ( hours < 10 ) { hours = "0" + hours; } if ( mins < 10 ) { mins = "0" + mins; } if ( secs < 10 ) { secs = "0" + secs; } result = replaceInsert( result, 1, hours ); result = replaceInsert( result, 2, mins ); result = replaceInsert( result, 3, secs ); return result;
function formatSeconds( nSecs ) { status = ""; if ( nSecs >= 3600 ) { status += Math.round( nSecs/3600 ) + ":"; nSecs = nSecs % 3600; } status += Math.round( nSecs/60 ) + ":"; nSecs = nSecs % 60; status += nSecs; return status;}
var timeString = gDateFormatter.getFormatedTime( time );
var timeString = opener.gCalendarWindow.dateFormater.getFormatedTime( time );
function formatTime( time ){ var timeString = gDateFormatter.getFormatedTime( time ); return timeString;}
return( gDateFormater.getFormatedDate( date ) );
return( gCalendarWindow.dateFormater.getFormatedDate( date ) );
function formatUnifinderEventDate( date ){ return( gDateFormater.getFormatedDate( date ) );}
function formatUnifinderEventDateTime( datetime, isAllDay )
function formatUnifinderEventDateTime(datetime)
function formatUnifinderEventDateTime( datetime, isAllDay ){ var d = datetime.getInTimezone(kDefaultTimezone).jsDate; return gCalendarWindow.dateFormater.formatDateTime( d, true, datetime.isDate );}
var d = datetime.getInTimezone(kDefaultTimezone).jsDate; return gCalendarWindow.dateFormater.formatDateTime( d, true, datetime.isDate );
var dateFormatter = Components.classes["@mozilla.org/calendar/datetime-formatter;1"] .getService(Components.interfaces.calIDateTimeFormatter); return dateFormatter.formatDateTime(datetime.getInTimezone(kDefaultTimezone));
function formatUnifinderEventDateTime( datetime, isAllDay ){ var d = datetime.getInTimezone(kDefaultTimezone).jsDate; return gCalendarWindow.dateFormater.formatDateTime( d, true, datetime.isDate );}
var timeString = gDateFormater.getFormatedTime( time );
var timeString = gCalendarWindow.dateFormater.getFormatedTime( time );
function formatUnifinderEventTime( time ){ var timeString = gDateFormater.getFormatedTime( time ); return timeString; }
return gCalendarWindow.dateFormater.formatDateTime(aDateTime.jsDate, true);
return dateFormatter.formatDateTime(aDateTime);
function formatUnifinderToDoDateTime(aDateTime){ // datetime is from todo object, it is not a javascript date if (aDateTime && aDateTime.isValid) return gCalendarWindow.dateFormater.formatDateTime(aDateTime.jsDate, true); return "";}
function formatUnifinderToDoDateTime( datetime )
function formatUnifinderToDoDateTime( oeICalDateTime )
function formatUnifinderToDoDateTime( datetime ){ // datetime is from todo object, it is not a javascript date if (datetime != null && datetime.getTime() != kNODATE) return gCalendarWindow.dateFormater.formatDateTime( new Date(datetime.getTime()), true ); else return "";}
if (datetime != null && datetime.getTime() != kNODATE) return gCalendarWindow.dateFormater.formatDateTime( new Date(datetime.getTime()), true );
if (oeICalDateTime && oeICalDateTime.isSet) return gCalendarWindow.dateFormater.formatDateTime( new Date(oeICalDateTime.getTime()), true );
function formatUnifinderToDoDateTime( datetime ){ // datetime is from todo object, it is not a javascript date if (datetime != null && datetime.getTime() != kNODATE) return gCalendarWindow.dateFormater.formatDateTime( new Date(datetime.getTime()), true ); else return "";}
if (!(v instanceof jsdIValue)) throw new BadMojo (ERR_INVALID_PARAM, "v", String(v));
function formatValue (v, formatType){ if (!v) throw new BadMojo (ERR_REQUIRED_PARAM, "v"); var type; var value; switch (v.jsType) { case jsdIValue.TYPE_BOOLEAN: type = MSG_TYPE_BOOLEAN; value = String(v.booleanValue); break; case jsdIValue...
return getMsg (MSN_FMT_VALUE_LONG, [type, v.className, value]);
return getMsg (MSN_FMT_VALUE_LONG, [type, v.jsClassName, value]);
function formatValue (v, formatType){ if (!v) throw new BadMojo (ERR_REQUIRED_PARAM, "v"); var type; var value; switch (v.jsType) { case jsdIValue.TYPE_BOOLEAN: type = MSG_TYPE_BOOLEAN; value = String(v.booleanValue); break; case jsdIValue...
type = (v.jsClassName) ? v.jsClassName : MSG_TYPE_OBJECT;
if (v.jsClassName) if (v.jsClassName == "XPCWrappedNative_NoHelper") type = MSG_CLASS_XPCOBJ; else type = v.jsClassName; else type = MSG_TYPE_OBJECT;
function formatValue (v, summary){ if (!v) throw new BadMojo (ERR_REQUIRED_PARAM, "v"); var type; var value; switch (v.jsType) { case jsdIValue.TYPE_BOOLEAN: type = MSG_TYPE_BOOLEAN; value = String(v.booleanValue); break; case jsdIValue.TY...
return getMsg (MSN_FMT_VALUE_LONG, [type, v.jsClassName, value]);
if (v.jsClassName == "XPCWrappedNative_NoHelper") return getMsg (MSN_FMT_VALUE_LONG, [type, MSG_CLASS_XPCOBJ, value]); else return getMsg (MSN_FMT_VALUE_LONG, [type, v.jsClassName, value]);
function formatValue (v, summary){ if (!v) throw new BadMojo (ERR_REQUIRED_PARAM, "v"); var type; var value; switch (v.jsType) { case jsdIValue.TYPE_BOOLEAN: type = MSG_TYPE_BOOLEAN; value = String(v.booleanValue); break; case jsdIValue.TY...
case jsdIValue.TYPE_BOOLEAN: s += MSG_TYPE_BOOLEAN; value = String(v.booleanValue); break;
function formatValue (v){ if (!v) throw BadMojo (ERR_REQUIRED_PARAM, "v"); var s = "["; var value = ""; if (v.isNative) s += MSG_TYPE_NATIVE + " "; switch (v.jsType) { case jsdIValue.TYPE_DOUBLE: s += MSG_TYPE_DOUBLE; value = v.doubleValue; ...
var prefs = Components.classes[prefSvcContractID].getService(prefSvcIID).getBranch("browser.download");
var prefs = Components.classes[prefSvcContractID].getService(prefSvcIID).getBranch("browser.download.");
function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var is...
"chrome,titlebar,minizable,dialog=yes",
"chrome,titlebar,minimizable,dialog=yes",
function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var is...
openDialog("chrome: "chrome,titlebar,minimizable,dialog=yes", makeWebBrowserPersist(), persistArgs);
var dialog = makeProgressDialog(); var persist = makeWebBrowserPersist(); dialog.source = makeURL(aData.url); dialog.target = persistArgs.target; persist.progressListener = dialog; const nsIWBP = Components.interfaces.nsIWebBrowserPersist; const flags = nsIWBP.PERSIST_FLAGS_NO_CONVERSION | nsIWBP.PERSIST_FLAGS_RE...
function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var is...
picker.appendFilter(typeList[i], typeList[i]);
if ((typeof typeList[i] == "object") && isinstance(typeList[i], Array)) picker.appendFilter(typeList[i][0], typeList[i][1]); else picker.appendFilter(typeList[i], typeList[i]);
function futils_nosepicker(initialPath, typeList, attribs){ const classes = Components.classes; const interfaces = Components.interfaces; const PICKER_CTRID = "@mozilla.org/filepicker;1"; const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const nsIFilePicker = interfaces.nsIFilePicker; const nsILoca...
this.childrenBP = new Object;
this.childrenBP = new Object();
function FutureBreakpoint (url, lineNumber){ this.url = url; this.lineNumber = lineNumber; this.enabled = true; this.childrenBP = new Object; this.conditionEnabled = false; this.condition = ""; this.passExceptions = false; this.logResult = false; this.resultAction = BREAKPOINT_STOPALWAYS;}
expect = 'function() { new x(z)(w); }';
expect = 'function() { new (x(z))(w); }';
var f, g; var x = Function; var z = 'actual += arguments[0];'; var w = 42; f = function() { new (x(z))(w) } expect = 'function() { new x(z)(w); }'; actual = f + ''; compareSource(expect, actual, summary + ': 1'); g = function () { new x(z)(w); }
compareSource(expect, actual, summary + ': 1');
compareSource(expect, actual, summary);
var f, g; var x = Function; var z = 'actual += arguments[0];'; var w = 42; f = function() { new (x(z))(w) } expect = 'function() { new x(z)(w); }'; actual = f + ''; compareSource(expect, actual, summary + ': 1'); g = function () { new x(z)(w); }
this.size_ = 0;
this.count_ = 0;
function G_Map(opt_name) { this.debugZone = "map"; this.name = "noname"; // We store key/value pairs sequentially in membersArray this.membersArray_ = []; // In membersMap we map from keys to indices in the membersArray this.membersMap_ = {}; this.size_ = 0; // set to true to allow list manager to update th...
&& node.localName.ToUpperCase() == "IMG" ) {
&& node.localName.toUpperCase() == "IMG" ) {
gatherTextUnder : function ( root ) { var text = ""; var node = root.firstChild; var depth = 1; while ( node && depth > 0 ) { // See if this node is text. if ( node.nodeName == "#text" ) { // Add this text to our collection. tex...
for (var i = 0; i != 1 << 15; ++i) { new Object(); }
function gc(){}
function gen(i) { yield i; }
function gen(i) { try { yield i; } finally { name_that_does_not_exist_in_the_scope_chain = 1; } }
function gen(i) { yield i; }
if(directory.description) email = directory.description; else email = card.displayName;
email = directory.description || card.displayName;
function GenerateAddressFromCard(card){ if (!card) return ""; var email; if (card.isMailList) { var directory = GetDirectoryFromURI(card.mailListURI); if(directory.description) email = directory.description; else email = card.displayName; } else email = card.primaryEmail; return gHeade...
return gHeaderParser.MakeFullAddress("UTF-8", card.displayName, email);
return gHeaderParser.makeFullAddressWString(card.displayName, email);
function GenerateAddressFromCard(card){ var email; if (card.isMailList) email = card.displayName; else email = card.primaryEmail; return gHeaderParser.MakeFullAddress("UTF-8", card.displayName, email);}
if (!card) return "";
function GenerateAddressFromCard(card){ var email; if (card.isMailList) email = card.displayName; else email = card.primaryEmail; return gHeaderParser.makeFullAddressWString(card.displayName, email);}
return "('" + attachment.contentType + "', '" + attachment.url + "', '" + escape(attachment.displayName) + "', '" + attachment.uri + "')";
var attachmentUrl = attachment.url.replace(/'/g,"\\\'"); return "('" + attachment.contentType + "', '" + attachmentUrl + "', '" + escape(attachment.displayName) + "', '" + attachment.uri + "')";
function generateCommandSuffixForAttachment(attachment){ return "('" + attachment.contentType + "', '" + attachment.url + "', '" + escape(attachment.displayName) + "', '" + attachment.uri + "')";}
showConnectServer = true;
showConnectRegServer = true;
function generateControls(){ var editMode = false; var showAcctsetEdit = false; var showRegFileEdit = false; var showISPFileEdit = false; var showExit = true; var showHelp = true; var showBack = true; var showNext = true; var showConnectServer = false; var showConnectISP = false; var showConnect...
document.layers[ "controls" ].layers[ "connectregserver" ].visibility = ( ( showConnectRegServer == true ) ? "show" : "hide" );
function generateControls(){ var editMode = false; var showAcctsetEdit = false; var showRegFileEdit = false; var showISPFileEdit = false; var showExit = true; var showHelp = true; var showBack = true; var showNext = true; var showConnectServer = false; var showConnectISP = false; var showConnect...
var doc = frames["editcard"].document;
function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var doc = frames["editcard"].document; var displayName; var firstNameField = doc.getElementById('FirstName'); var lastNameField = doc.getElementById('LastName'); var displayNameField = doc.getElementById('DisplayName'); /* todo: i18N work tod...
var firstNameField = doc.getElementById('FirstName'); var lastNameField = doc.getElementById('LastName'); var displayNameField = doc.getElementById('DisplayName');
var firstNameField = getElementById('FirstName'); var lastNameField = getElementById('LastName'); var displayNameField = getElementById('DisplayName');
function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var doc = frames["editcard"].document; var displayName; var firstNameField = doc.getElementById('FirstName'); var lastNameField = doc.getElementById('LastName'); var displayNameField = doc.getElementById('DisplayName'); /* todo: i18N work tod...
if ( editCard.generateDisplayName )
if (gEditCard.generateDisplayName)
function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); if (lastNameField.value && firstNameF...
if ( editCard.displayLastNameFirst ) displayName = gAddressBookBundle.getFormattedString("lastFirstFormat",[ lastNameField.value, firstNameField.value ]); else displayName = gAddressBookBundle.getFormattedString("firstLastFormat",[ firstNameField.value, lastNameField.value ]);
displayName = (gEditCard.displayLastNameFirst) ? gAddressBookBundle.getFormattedString("lastFirstFormat", [ lastNameField.value, firstNameField.value ]) : gAddressBookBundle.getFormattedString("firstLastFormat", [ firstNameField.value, lastNameField.value ]);
function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); if (lastNameField.value && firstNameF...
var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); var allServers = accountManager.allServers; var numServers = allServers.Count(); for (var index = 0; index < numServers; index++)
var rootFolder = GetMsgFolderFromUri(gServerURI, false); if (rootFolder)
function generateFoldersToSearchList(){ var uriSearchString = ""; var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); var allServers = accountManager.allServers; var numServers = allServers.Count(); for (var index = 0; index < ...
var rootFolder = allServers.GetElementAt(index).QueryInterface(Components.interfaces.nsIMsgIncomingServer).rootFolder; if (rootFolder) { uriSearchString = processSearchSettingForFolder(rootFolder, uriSearchString);
uriSearchString = processSearchSettingForFolder(rootFolder, uriSearchString);
function generateFoldersToSearchList(){ var uriSearchString = ""; var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); var allServers = accountManager.allServers; var numServers = allServers.Count(); for (var index = 0; index < ...
var allFolders = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); rootFolder.ListDescendents(allFolders); var numFolders = allFolders.Count(); for (var folderIndex = 0; folderIndex < numFolders; folderIndex++) uriSearchString = processSearchSettingForFolder(all...
var allFolders = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); rootFolder.ListDescendents(allFolders); var numFolders = allFolders.Count(); for (var folderIndex = 0; folderIndex < numFolders; folderIndex++) uriSearchString = processSearchSettingForFolder(all...
function generateFoldersToSearchList(){ var uriSearchString = ""; var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); var allServers = accountManager.allServers; var numServers = allServers.Count(); for (var index = 0; index < ...
filename = filename.replace(/\"/g, ""); filename = filename.replace(/(^\s+)|(\s+$)/g, ''); filename = filename.replace(/[ \.\\@\/:]/g, "_");
filename = validateFileName(filename).replace(/^\s+|\s+$/g, "");
function GenerateValidFilename(filename, extension){ if (filename) // we have a title; let's see if it's usable { // clean up the filename to make it usable filename = filename.replace(/\"/g, ""); // Strip out quote character: " filename = filename.replace(/(^\s+)|(\s+$)/g, ''); // trim whitespace from begi...
if (aElement.disabled!="true") aElement.removeAttribute("disabled");
generic_Set: function ( aElement, aDataObject ) { if( aElement ) { for( var property in aDataObject ) { aElement.setAttribute( property, aDataObject[property] ); } } },
var progress = Components.classes["@mozilla.org/messengercompose/composeprogress;1"].createInstance(Components.interfaces.nsIMsgComposeProgress);
var progress = Components.classes["@mozilla.org/messenger/progress;1"].createInstance(Components.interfaces.nsIMsgProgress);
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSub...
action = DetermineHTMLAction(); if (action == msgCompSendFormat.AskUser) { var result = {action:msgCompSendFormat.PlainText, abort:false}; window.openDialog("chrome: "askSendFormatDialog", "chrome,modal", result); if (result.abort) return; action = result.action; } switch (action) { case msgCompSendFormat.PlainText: ms...
if (msgType == msgCompDeliverMode.Now || msgType == msgCompDeliverMode.Later) { action = DetermineHTMLAction(); if (action == msgCompSendFormat.AskUser) { var result = {action:msgCompSendFormat.PlainText, abort:false}; window.openDialog("chrome: "askSendFormatDialog", "chrome,modal", result); if (result.abort) return;...
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); msgCompFields.SetSubject(document.getElem...
contentChanged = false; msgCompose.bodyModified = false;
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); msgCompFields.SetSubject(document.getElem...
windowLocked = true;
gWindowLocked = true;
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSub...
windowLocked = false;
gWindowLocked = false;
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSub...
if (prefs.GetBoolPref("mail.SpellCheckBeforeSend"))
if (prefs.getBoolPref("mail.SpellCheckBeforeSend"))
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSub...
updateURL : this._updateURL,
xpiURL : this._xpiURL,
get objectSource() { return { id : this._id, version : this._version, minAppVersion : this._minAppVersion, maxAppVersion : this._maxAppVersion, name : this._name, row : this._row, updateURL :...
updateRDF : this._updateRDF, updateService : this._updateService,
get objectSource() { return { id : this._id, version : this._version, minAppVersion : this._minAppVersion, maxAppVersion : this._maxAppVersion, name : this._name, row : this._row, updateURL :...
get icalString() { throw Components.results.NS_NOT_IMPLEMENTED;
get previous() { if (this.item.recurrenceInfo) return this.item.recurrenceInfo.getPreviousOccurrence(this.item, aStartDate); return null;
get icalString() { throw Components.results.NS_NOT_IMPLEMENTED; },
get mObservers () { if (!this._observers) { var bt = document.getElementById("bookmarks-toolbar"); this._observers = [ document.getAnonymousElementByAttribute(bt , "anonid", "bookmarks-ptf"), document.getElementById("bookmarks-menu").parentNode, document.getAnonymousElementByAttribute(bt , "class", "chevron").parentNod...
get value() { if (this.browser != getBrowser().mCurrentBrowser) this._value = false; return this._value; },
get mObservers () { if (!this._observers) { var bt = document.getElementById("bookmarks-toolbar"); this._observers = [ document.getAnonymousElementByAttribute(bt , "anonid", "bookmarks-ptf"), document.getElementById("bookmarks-menu").parentNode, document.getAnonymousElementByAttribu...
get subject() { return this.mSubject },
get selectedIndices() { var indices = []; var rangeCount = this.mTree.view.selection.getRangeCount(); for (var i = 0; i < rangeCount; i++) { var start = {}; var end = {}; this.mTree.view.selection.getRangeAt(i,start,end); for (var c = start.value; c <= end.value; c++) { indices.push(c); } } return indices; }
get subject() { return this.mSubject },
get Sanitizer()
get prefService()
get Sanitizer() { if(typeof(Sanitizer) != "function") { // we should dynamically load the script Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader) .loadSubScript("chrome://browser/content/sanitize.js", null); ...
if(typeof(Sanitizer) != "function") { Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader) .loadSubScript("chrome: } return Sanitizer;
if (!this.mPrefService) this.mPrefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); return this.mPrefService;
get Sanitizer() { if(typeof(Sanitizer) != "function") { // we should dynamically load the script Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader) .loadSubScript("chrome://browser/content/sanitize.js", null); ...
if (tzid.length < 1) {
if (tzid.length < 1 || tzid[0].length == 0) {
get defaultTimezone() { var tzid = this.getCalendarProperties("X-NSCP-CALPROPS-TZID", {}); if (tzid.length < 1) { return "UTC"; // fallback } return tzid[0]; },
document.getElementById("overflow-padder")
document.getElementById("bookmarks-chevron").parentNode
get mObservers () { if (!this._observers) { this._observers = [ document.getElementById("bookmarks-ptf"), document.getElementById("bookmarks-menu").parentNode, document.getElementById("overflow-padder") ] } return this._observers; },
var tzid = this.getCalProp("X-NSCP-CALPROPS-TZID");
var tzid = this.getCalendarProperties("X-NSCP-CALPROPS-TZID", "", {});
get defaultTimezone() { var tzid = this.getCalProp("X-NSCP-CALPROPS-TZID"); if (tzid.length < 1) { return "UTC"; // fallback } return tzid[0]; },
this.update = arg0;
this.setUpdate(arg0);
get startPage() { if (window.arguments) { var arg0 = window.arguments[0]; if (arg0 instanceof Components.interfaces.nsIUpdate) { // If the first argument is a nsIUpdate object, we are notifying the // user that the background checking found an update that requires // their permission...
this.update = um.activeUpdate;
this.setUpdate(um.activeUpdate);
get startPage() { if (window.arguments) { var arg0 = window.arguments[0]; if (arg0 instanceof Components.interfaces.nsIUpdate) { // If the first argument is a nsIUpdate object, we are notifying the // user that the background checking found an update that requires // their permission...
get recurrenceStartDate() { return this.mEntryDate;
get icalComponent() { const icssvc = Components. classes["@mozilla.org/calendar/ics-service;1"]. getService(Components.interfaces.calIICSService); var icalcomp = icssvc.createIcalComponent("VTODO"); this.fillIcalComponentFromBase(icalcomp); this.mapPropsToICS(icalcomp, this.icsEventPropMap); var percentprop = icssvc.c...
get recurrenceStartDate() { return this.mEntryDate; },
get propertyEnumerator() { return this.mProperties.enumerator; },
get previous() { if (this.item.recurrenceInfo) return this.item.recurrenceInfo.getPreviousOccurrence(this.item, aStartDate); return null; }
get propertyEnumerator() { return this.mProperties.enumerator; },
mStampDate: null, get stampDate() { return this.mStampDate; }, set stampDate(v) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; else this.mStampDate = v; }
mIsAllDay: false, get isAllDay() { return this.mIsAllDay; }, set isAllDay(v) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; else this.mIsAllDay = v; },
mStampDate: null, get stampDate() { return this.mStampDate; }, set stampDate(v) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; else this.mStampDate = v; }
if (this.recursionLevel <= 0) return underDeepRecursion(); this.recursionLevel--;
if (n == 0) return action(); n--;
get propertyWithGetter() { if (this.recursionLevel <= 0) return underDeepRecursion(); this.recursionLevel--; return this.propertyWithGetter; }
get uri() { return this.mUri },
get resourceURL() { return this.mResourceURL; },
get uri() { return this.mUri },
return this.getCalendarByCalId(this.userId);
return this.getCalendarByCalId(null);
get defaultCalendar() { return this.getCalendarByCalId(this.userId); },
get suppressAlarms() { return false; },
get resourceURL() { return this.mResourceURL;} ,
get suppressAlarms() { return false; },
get prefService()
get Sanitizer()
get prefService() { if (!this.mPrefService) this.mPrefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); return this.mPrefService; },
if (!this.mPrefService) this.mPrefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); return this.mPrefService;
if(typeof(Sanitizer) != "function") { Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader) .loadSubScript("chrome: } return Sanitizer;
get prefService() { if (!this.mPrefService) this.mPrefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); return this.mPrefService; },
icalprop.stringValue = iprop.value;
icalprop.value = iprop.value;
get icalComponent() { const icssvc = Components. classes["@mozilla.org/calendar/ics-service;1"]. getService(Components.interfaces.calIICSService); var icalcomp = icssvc.createIcalComponent("VTODO"); this.fillIcalComponentFromBase(icalcomp); this.mapPropsToICS(icalcomp, ...
case 'http':
case 'http': case 'https':
function get_destination_channel(destinationDirectoryLocation, fileName, login, password){ var ioService = GetIOService(); if (!ioService) { return null; } // create a channel for the destination location var fullurl = destinationDirectoryLocation + fileName; destChannel = create_channel_from...
); case 'https': return destChannel.QueryInterface( Components.interfaces.nsIHttpsChannel
function get_destination_channel(destinationDirectoryLocation, fileName, login, password){ var ioService = GetIOService(); if (!ioService) { return null; } // create a channel for the destination location var fullurl = destinationDirectoryLocation + fileName; destChannel = create_channel_from...
try {
function get_destination_channel(destinationDirectoryLocation, fileName, login, password){ try { var ioService = GetIOService(); if (!ioService) { return null; } // create a channel for the destination location var fullurl = destinationDirectoryLocation + fileName; destChannel = create_chan...
var httpChannel = destChannel.QueryInterface(Components.interfaces.nsIHttpChannel);
switch(destChannel.URI.scheme) { case 'http': return destChannel.QueryInterface( Components.interfaces.nsIHttpChannel ); case 'https': return destChannel.QueryInterface( Components.interfaces.nsIHttpsChannel ); case 'ftp': return destChannel.QueryInterface( Components.interfaces.nsIFTPChannel ); case 'file': return des...
function get_destination_channel(destinationDirectoryLocation, fileName, login, password){ try { var ioService = GetIOService(); if (!ioService) { return null; } // create a channel for the destination location var fullurl = destinationDirectoryLocation + fileName; destChannel = create_chan...
return null;
function get_destination_channel(destinationDirectoryLocation, fileName, login, password){ try { var ioService = GetIOService(); if (!ioService) { return null; } // create a channel for the destination location var fullurl = destinationDirectoryLocation + fileName; destChannel = create_chan...
if (httpChannel) { dump("http channel found\n"); return httpChannel; } var ftpChannel = destChannel.QueryInterface(Components.interfaces.nsIFTPChannel); if (ftpChannel) dump("ftp channel found\n"); if (ftpChannel) return ftpChannel; var httpsChannel = destChannel.QueryInterface(Components.interfaces.nsIHttpsChannel); ...
function get_destination_channel(destinationDirectoryLocation, fileName, login, password){ try { var ioService = GetIOService(); if (!ioService) { return null; } // create a channel for the destination location var fullurl = destinationDirectoryLocation + fileName; destChannel = create_chan...
locale = prefs.CopyCharPref("intl.content.langcode");
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['component://netscape/preferences']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref(...
if (!locale) { try {
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['component://netscape/preferences']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref(...
{ locale = locale.toLowerCase(); url = url.replace(/%LOCALE%/g, locale); }
locale = locale.toLowerCase(); url = url.replace(/%LOCALE%/g, locale);
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['component://netscape/preferences']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref(...
return sidebar_file.URL;
var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); return ioService.getURLSpecFromFile(sidebar_file);
function get_sidebar_datasource_uri() { try { var sidebar_file = sidebar_get_panels_file(); return sidebar_file.URL; } catch (ex) { // This should not happen debug("Error: Unable to load panels file.\n"); } return null;}
return ioService.getURLSpecFromFile(sidebar_file);
return fileHandler.getURLSpecFromFile(sidebar_file);
function get_sidebar_datasource_uri() { try { var sidebar_file = sidebar_get_panels_file(); var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); return ioService.getURLSpecFromFile(sidebar_file); } catch (ex) { // This should not h...
URL.spec = URL.resolve(urlArr[i]);
try { URL = ioService.newURI(urlArr[i], URL.originCharset, URL); } catch (ex) { ; }
function getAbsoluteURL(url, node){ if (!url || !node) return ""; var urlArr = new Array(url); var doc = node.ownerDocument; if (node.nodeType == Node.ATTRIBUTE_NODE) node = node.ownerElement; while (node && node.nodeType == Node.ELEMENT_NODE) { var att = node.getAttributeNS(XMLNS, "base"); if (att !...
if (gAbView) return gAbView.URI; else return null;
return gAbView && gAbView.URI;
function GetAbViewURI(){ if (gAbView) return gAbView.URI; else return null;}
var cmdName = aCommand.substring(NC_NS_CMD.length);
var cmdName = aCommand.substring(gNC_NS_CMD.length);
getAccessKey: function (aCommand) { var cmdName = aCommand.substring(NC_NS_CMD.length); return BookmarksUtils.getLocaleString ("cmd_" + cmdName + "_accesskey"); },
if (!accountValues[type])
if (!(type in accountValues))
function getAccountValue(account, accountValues, type, slot, preftype, isGeneric) { if (!accountValues[type]) accountValues[type] = new Array; // fill in the slot from the account if necessary if (accountValues[type][slot]== undefined) { // dump("Array->Form: lazily reading in the " + slot + " from the " + typ...
if (accountValues[type][slot]== undefined) {
if (!(slot in accountValues[type]) || !accountValues[type][slot]) {
function getAccountValue(account, accountValues, type, slot, preftype, isGeneric) { if (!accountValues[type]) accountValues[type] = new Array; // fill in the slot from the account if necessary if (accountValues[type][slot]== undefined) { // dump("Array->Form: lazily reading in the " + slot + " from the " + typ...
if (!gGenericAttributeTypes[type])
if (!(type in gGenericAttributeTypes))
function getAccountValue(account, accountValues, type, slot, preftype, isGeneric) { if (!accountValues[type]) accountValues[type] = new Array; // fill in the slot from the account if necessary if (accountValues[type][slot]== undefined) { // dump("Array->Form: lazily reading in the " + slot + " from the " + typ...
else { accountValues[type][slot] = source[slot];
else if (slot in source) { accountValues[type][slot] = source[slot]; } else { accountValues[type][slot] = null; }
function getAccountValue(account, accountValues, type, slot, preftype, isGeneric) { if (!accountValues[type]) accountValues[type] = new Array; // fill in the slot from the account if necessary if (accountValues[type][slot]== undefined) { // dump("Array->Form: lazily reading in the " + slot + " from the " + typ...
}
else { accountValues[type][slot] = null; }
function getAccountValue(account, accountValues, type, slot, preftype, isGeneric) { if (!accountValues[type]) accountValues[type] = new Array; // fill in the slot from the account if necessary if (accountValues[type][slot]== undefined) { // dump("Array->Form: lazily reading in the " + slot + " from the " + typ...
function getAccountValue(account, accountValues, type, slot) {
function getAccountValue(account, accountValues, type, slot, preftype, isGeneric) {
function getAccountValue(account, accountValues, type, slot) { if (!accountValues[type]) accountValues[type] = new Array; // fill in the slot from the account if necessary if (accountValues[type][slot]== undefined) { // dump("Array->Form: lazily reading in the " + slot + " from the " + type + "\n"); var ser...
}
function getAccountValue(account, accountValues, type, slot) { if (!accountValues[type]) accountValues[type] = new Array; // fill in the slot from the account if necessary if (accountValues[type][slot]== undefined) { // dump("Array->Form: lazily reading in the " + slot + " from the " + type + "\n"); var ser...
var prefstring;
function getAccountValueIsLocked(element){ var prefstr = ""; var preftype; var prefval; if (!nsPrefBranch) { var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); ...