rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (!fn) fn = MSG_VAL_TLSCRIPT;
function FrameRecord (frame){ if (!(frame instanceof jsdIStackFrame)) throw new BadMojo (ERR_INVALID_PARAM, "value"); this.setColumnPropertyName ("stack-col-0", "functionName"); this.setColumnPropertyName ("stack-col-2", "location"); var fn = frame.script.functionName; var sourceRec = console.scri...
.createInstance(Ci.nsIFileProtocolHandler);
.getService(Ci.nsIFileProtocolHandler);
G_File.fromFileURI = function(uri) { // Ensure they use file:// url's: discourages platform-specific paths if (uri.indexOf("file://") != 0) throw new Error("File path must be a file:// URL"); var fileHandler = Cc["@mozilla.org/network/protocol;1?name=file"] .createInstance(Ci.nsIFileProtocolHan...
function fromUnicode (msg)
function fromUnicode (msg, charset)
function fromUnicode (msg){ if (!("ucConverter" in client)) return msg; /* XXX set charset again to force the encoder to reset, see bug 114923 */ client.ucConverter.charset = client.CHARSET; return client.ucConverter.ConvertFromUnicode(msg);}
client.ucConverter.charset = client.CHARSET;
if (typeof charset == "undefined") client.ucConverter.charset = client.CHARSET; else client.ucConverter.charset = charset;
function fromUnicode (msg){ if (!("ucConverter" in client)) return msg; /* XXX set charset again to force the encoder to reset, see bug 114923 */ client.ucConverter.charset = client.CHARSET; return client.ucConverter.ConvertFromUnicode(msg);}
if (!allIncluded) picker.appendFilters(FILTER_ALL);
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.hasher_ = Cc["@mozilla.org/security/hash;1"] .createInstance(Ci.nsICryptoHash); this.initialized_ = false;
this.hasher_ = null;
function G_CryptoHasher() { this.debugZone = "cryptohasher"; this.decoder_ = new G_Base64(); this.hasher_ = Cc["@mozilla.org/security/hash;1"] .createInstance(Ci.nsICryptoHash); this.initialized_ = false;}
} else if ( node.tagName == "IMG" ) {
} else if ( node.nodeType == Node.ELEMENT_NODE && 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...
altText = node.getAttribute( "alt" );
var altText = node.getAttribute( "alt" );
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...
} else if ( node.nodeType == Node.ELEMENT_NODE && node.localName.toUpperCase() == "IMG" ) {
} else if ( node instanceof HTMLImageElement ) {
function gatherTextUnder ( root ) { var text = ""; var node = root.firstChild; var depth = 1; while ( node && depth > 0 ) { // See if this node is text. if ( node.nodeType == Node.TEXT_NODE ) { // Add this text to our collection. text += " " + node.data; } else if ( node.nodeType == Node.ELEMENT_...
writeLineToLog('gc: ' + ex);
function gc(){ try { // Thanks to dveditz netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var jsdIDebuggerService = Components.interfaces.jsdIDebuggerService; var service = Components.classes['@mozilla.org/js/jsd/debugger-service;1']. getService(jsdIDebuggerService); serv...
dump("GenerateAttachmentsString()\n"); attachments = "";
var attachments = ""; var body = document.getElementById('bucketBody'); var item, row, cell, text, colon;
function GenerateAttachmentsString(){ dump("GenerateAttachmentsString()\n"); attachments = ""; selectNode = document.getElementById('attachments'); if (selectNode == null) return attachments; options = selectNode.options; if (options == null) return attachments; if (options.length == 0) return attachments; attachments ...
selectNode = document.getElementById('attachments'); if (selectNode == null) return attachments; options = selectNode.options; if (options == null) return attachments; if (options.length == 0) return attachments; attachments = options[0].text; for (i=1;i<options.length;i++) { attachments = attachments + "," + options...
for (var index = 0; index < body.childNodes.length; index++) { item = body.childNodes[index]; if (item.childNodes && item.childNodes.length) { row = item.childNodes[0]; if (row.childNodes && row.childNodes.length) { cell = row.childNodes[0]; if (cell.childNodes && cell.childNodes.length) { text = cell.childNodes[0]; ...
function GenerateAttachmentsString(){ dump("GenerateAttachmentsString()\n"); attachments = ""; selectNode = document.getElementById('attachments'); if (selectNode == null) return attachments; options = selectNode.options; if (options == null) return attachments; if (options.length == 0) return attachments; attachments ...
else if ( formName == "2stpwrap.htm" )
else if ( formName == "2step.htm" )
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...
if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName');
if ( editCard.generateDisplayName ) { var displayName;
function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /* this used t...
var separator = ""; if ( lastNameField.value && firstNameField.value ) { if ( editCard.displayLastNameFirst ) separator = editCard.lastFirstSeparator; else separator = editCard.firstLastSeparator; } if ( editCard.displayLastNameFirst ) displayName = lastNameField.value + separator + firstNameField.value; else displayN...
var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); var separator = ""; if ( lastNameField.value && firstNameField.value ) { if ( editCard.displayLastNameFirst ) separator = editCard.lastFi...
function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /* this used t...
top.window.title = Bundle.formatStringFromName(editCard.titleProperty, [ displayName ], 1);
top.window.title = gAddressBookBundle.getFormattedString(editCard.titleProperty, [ displayName ]);
function GenerateDisplayName(){ if ( editCard.generateDisplayName ) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); /* todo: i18N work todo here */ /* this used t...
generateOutline: function(baseFolder, parent)
generateOutline: function(baseFolder, parent, indentLevel)
generateOutline: function(baseFolder, parent) { var folderEnumerator = baseFolder.GetSubFolders(); var done = false; while (!done) { var folder = folderEnumerator.currentItem().QueryInterface(Components.interfaces.nsIMsgFolder); if (folder && !folder.getFlag(MSG_FOLDER_FLAG_TRASH)) { ...
this.generateOutline(folder, outline);
this.generateOutline(folder, outline, indentLevel+2); this.generatePPSpace(parent, indentString); this.generatePPSpace(outline, indentString);
generateOutline: function(baseFolder, parent) { var folderEnumerator = baseFolder.GetSubFolders(); var done = false; while (!done) { var folder = folderEnumerator.currentItem().QueryInterface(Components.interfaces.nsIMsgFolder); if (folder && !folder.getFlag(MSG_FOLDER_FLAG_TRASH)) { ...
debug("feed: " + feeds[feed]);
generateOutline: function(baseFolder, parent) { var folderEnumerator = baseFolder.GetSubFolders(); var done = false; while (!done) { var folder = folderEnumerator.currentItem().QueryInterface(Components.interfaces.nsIMsgFolder); if (folder && !folder.getFlag(MSG_FOLDER_FLAG_TRASH)) { ...
this.generatePPSpace(parent, indentString);
generateOutline: function(baseFolder, parent) { var folderEnumerator = baseFolder.GetSubFolders(); var done = false; while (!done) { var folder = folderEnumerator.currentItem().QueryInterface(Components.interfaces.nsIMsgFolder); if (folder && !folder.getFlag(MSG_FOLDER_FLAG_TRASH)) { ...
if (aElement.disabled!="true")
if ( !aElement.getAttribute("disabled","true") )
generic_Set: function ( aElement, aDataObject ) { if( aElement ) { for( var property in aDataObject ) { aElement.setAttribute( property, aDataObject[property] ); } if (aElement.disabled!="true") a...
windowLocked = true; CommandUpdate_MsgCompose();
windowLocked = true; CommandUpdate_MsgCompose(); disableEditableFields();
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...
dump("failed to SendMsg: " + ex + "\n"); windowLocked = false; CommandUpdate_MsgCompose();
dump("failed to SendMsg: " + ex + "\n"); windowLocked = false; enableEditableFields(); CommandUpdate_MsgCompose();
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 (promptService)
if (!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService); } if (gPromptService)
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 (promptService.prompt(
if (gPromptService.prompt(
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...
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...
msgCompose.SendMsg(msgType, getCurrentIdentity(), null);
msgCompose.SendMsg(msgType, getCurrentIdentity());
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...
dump("failed to SendMsg\n");
dump("failed to SendMsg: " + ex + "\n");
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; CommandUpdate_MsgCompose();
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("ms...
alert("point not found");
suggest(aLoc);
function geocode(aLoc) { var gcoder = new GClientGeocoder(); gcoder.getLatLng(aLoc, function (point) { if (!point) { //mapHelper.suggest(aLoc); alert("point not found"); } else { map.setZoom(10); map.panTo(point); map.removeOverlay(marker); marker = new GMa...
this._request = new PROT_XMLHttpRequest();
this._request = PROT_NewXMLHttpRequest();
get: function(page, callback) { this._request.abort(); // abort() is asynchronous, so this._request = new PROT_XMLHttpRequest(); this._callback = callback; var asynchronous = true; this._request.open("GET", page, asynchronous); if (this._stripCookies) new PROT_CookieStripper(this...
controller.handleFailure(req);
this.handleFailure(req);
get : function(aURL, aCallback) { var _t = this; var req = this._getRequest(); req.overrideMimeType("text/plain"); // don't parse XML, this is js req.onerror = function(event) { _t.handleFailure(event.target); event.stopPropagation(); }; req.onload = function(event) { _t.handleSuccess...
get mDragService()
get: function (aFlavourSet, aRetrievalFunc, aAnyFlag)
get mDragService() { if (!this._mDS) { const kDSContractID = "@mozilla.org/widget/dragservice;1"; const kDSIID = Components.interfaces.nsIDragService; this._mDS = Components.classes[kDSContractID].getService(kDSIID); } return this._mDS; },
if (!this._mDS)
if (!aRetrievalFunc) throw "No data retrieval handler provided!"; var supportsArray = aRetrievalFunc(aFlavourSet); var dataArray = []; var count = supportsArray.Count(); for (var i = 0; i < count; i++)
get mDragService() { if (!this._mDS) { const kDSContractID = "@mozilla.org/widget/dragservice;1"; const kDSIID = Components.interfaces.nsIDragService; this._mDS = Components.classes[kDSContractID].getService(kDSIID); } return this._mDS; },
const kDSContractID = "@mozilla.org/widget/dragservice;1"; const kDSIID = Components.interfaces.nsIDragService; this._mDS = Components.classes[kDSContractID].getService(kDSIID);
var trans = supportsArray.GetElementAt(i); if (!trans) continue; trans = trans.QueryInterface(Components.interfaces.nsITransferable); var data = { }; var length = { }; var currData = null; if (aAnyFlag) { var flavour = { }; trans.getAnyTransferData(flavour, data, length); if (data && flavour) { var selectedFlavour = ...
get mDragService() { if (!this._mDS) { const kDSContractID = "@mozilla.org/widget/dragservice;1"; const kDSIID = Components.interfaces.nsIDragService; this._mDS = Components.classes[kDSContractID].getService(kDSIID); } return this._mDS; },
return this._mDS;
return new TransferDataSet(dataArray);
get mDragService() { if (!this._mDS) { const kDSContractID = "@mozilla.org/widget/dragservice;1"; const kDSIID = Components.interfaces.nsIDragService; this._mDS = Components.classes[kDSContractID].getService(kDSIID); } return this._mDS; },
get defaultString() { return this.mSelectedFilter; },
get defaultString() { return this.mDefaultString; },
get defaultString() { return this.mSelectedFilter; },
if (this.mContentDisposition) {
if ("mContentDisposition" in this) {
get suggestedFileName() { var fileName = ""; if (this.mContentDisposition) { const mhpContractID = "@mozilla.org/network/mime-hdrparam;1" const mhpIID = Components.interfaces.nsIMIMEHeaderParam; const mhp = Components.classes[mhpContractID].getService(mhpIID); var dummy = { value: null }; /...
new OperationListener());
new OperationListener(), null);
function GET(url, filename){ var file = makeFile(filename); var outstream = createInstance("@mozilla.org/network/file-output-stream;1", "nsIFileOutputStream"); outstream.init(file, 0x02 | 0x08, 0644, 0); var buffered = createInstance("@mozilla.org/network/buffered-out...
document.getElementById("bookmarks-chevron").parentNode
document.getElementById("overflow-padder")
get mObservers () { if (!this._observers) { this._observers = [ document.getElementById("bookmarks-ptf"), document.getElementById("bookmarks-menu").parentNode, document.getElementById("bookmarks-chevron").parentNode ] } return this._observers; },
return IniObjectSerializer.encode(this._closedWindows);
return this._closedWindows;
get closedWindowData() { return IniObjectSerializer.encode(this._closedWindows); },
return Components.classes["@mozilla.org/preferences;1"] .getService(Components.interfaces.nsIPref);
return Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
get mPrefService() { return Components.classes["@mozilla.org/preferences;1"] .getService(Components.interfaces.nsIPref); },
get openWindowWithArgs() { return true; }
get wrappedJSObject() { return this; },
get openWindowWithArgs() { return true; }
this.sourceEvent = SRCEVT_BACKGROUND; if (this.update.selectedPatch && this.update.selectedPatch.state == STATE_PENDING) return document.getElementById("finishedBackground");
var p = this.update.selectedPatch; if (p) { switch (p.state) { case STATE_PENDING: this.sourceEvent = SRCEVT_BACKGROUND; return document.getElementById("finishedBackground"); case STATE_SUCCEEDED: return document.getElementById("installed"); case STATE_FAILED: return document.getElementById("errors"); } }
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 resourceURL() { return this.mResourceURL;} ,
get suppressAlarms() { return false; },
get resourceURL() { return this.mResourceURL;} ,
return getCalendarManager().getCalendarPref(this, "READONLY") == 'true';
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
get readOnly() { return getCalendarManager().getCalendarPref(this, "READONLY") == 'true'; },
dump("getter for loaded called\n");
debug("getter for loaded called\n");
get loaded() { dump("getter for loaded called\n"); return false; },
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 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.pus...
get data() { if (this.m_exc != null) throw this.m_exc; return this.m_data;
get exception() { return this.m_exc;
get data() { if (this.m_exc != null) throw this.m_exc; return this.m_data; },
get value() { if (!this._value) { if (this._pb.prefHasUserValue(this._pref)) { var valueString = this._pb.getCharPref(this._pref); this._value = this._serializable.deserialize(valueString); } else this._value = this._defaultValue; } return this._value;
get value() { return this.searchFilter.value;
get value() { if (!this._value) { if (this._pb.prefHasUserValue(this._pref)) { var valueString = this._pb.getCharPref(this._pref); this._value = this._serializable.deserialize(valueString); } else this._value = this._defaultValue; } return this._value; },
get readOnly() { throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
get canRefresh() { return true;
get readOnly() { throw Components.results.NS_ERROR_NOT_IMPLEMENTED; },
dataObject.checked = wsm.contentArea.document.getElementById( aElementID ).checked;
var checked = wsm.contentArea.document.getElementById( aElementID ).checked; dataObject.checked = element.getAttribute("reversed") == "true" ? !checked : checked;
get_Checkbox: function ( aElementID ) { var element = wsm.contentArea.document.getElementById( aElementID ); var dataObject = wsm.generic_Get( element ); if( dataObject ) { dataObject.checked = wsm.contentArea.document.getElementById( aElementID ).check...
function get_destination_channel(destinationDirectoryLocation, login, password)
function get_destination_channel(destinationDirectoryLocation)
function get_destination_channel(destinationDirectoryLocation, login, password){ var ioService = GetIOService(); if (!ioService) { return null; } // create a channel for the destination location destChannel = create_channel_from_url(ioService, destinationDirectoryLocation, login, password); i...
destChannel = create_channel_from_url(ioService, destinationDirectoryLocation, login, password);
destChannel = create_channel_from_url(ioService, destinationDirectoryLocation);
function get_destination_channel(destinationDirectoryLocation, login, password){ var ioService = GetIOService(); if (!ioService) { return null; } // create a channel for the destination location destChannel = create_channel_from_url(ioService, destinationDirectoryLocation, login, password); i...
destChannel.notificationCallbacks = window.docshell;
destChannel.notificationCallbacks = notificationCallbacks;
function get_destination_channel(destinationDirectoryLocation, login, password){ var ioService = GetIOService(); if (!ioService) { return null; } // create a channel for the destination location destChannel = create_channel_from_url(ioService, destinationDirectoryLocation, login, password); i...
function get_destination_channel(destinationDirectoryLocation, fileName, login, password)
function get_destination_channel(destinationDirectoryLocation, login, password)
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...
var fullurl = destinationDirectoryLocation + fileName;
var fullurl = destinationDirectoryLocation;
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...
dataObject.data = element.getAttribute( "data" );
dataObject.value = element.getAttribute( "value" );
get_Menulist: function ( aElementID ) { var element = wsm.contentArea.document.getElementById( aElementID ); // retrieve all generic attributes var dataObject = wsm.generic_Get( element ); // retrieve all menulist specific attributes if( dataObject ) ...
dataObject.data = element.getAttribute( "data" );
dataObject.value = element.getAttribute( "value" );
get_Radiogroup: function ( aElementID ) { var element = wsm.contentArea.document.getElementById( aElementID ); var dataObject = wsm.generic_Get( element ); if( dataObject ) { dataObject.data = element.getAttribute( "data" ); return dataObje...
var prefs = Components.classes['@mozilla.org/preferences;1']; if (prefs) { prefs = prefs.getService();
var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var locale; try { url = prefs.getCharPref("sidebar.customize.all_panels.url"); url = url.replace(/%SIDEBAR_VERSION%/g, SIDEBAR_VERSION); } catch(ex) { debug("Unable to get remote url pref. What now? "+...
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['@mozilla.org/preferences;1']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref("sideb...
if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref);
try { locale = prefs.getComplexValue("intl.content.langcode", Components.interfaces.nsIPrefLocalizedString); } catch(ex) { try { debug("No lang code pref, intl.content.langcode."); debug("Use locale from user agent string instead"); locale = prefs.getComplexValue("general.useragent.locale", Components.interfaces.nsIPr...
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['@mozilla.org/preferences;1']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref("sideb...
if (prefs) { var locale; try { url = prefs.CopyCharPref("sidebar.customize.all_panels.url"); url = url.replace(/%SIDEBAR_VERSION%/g, SIDEBAR_VERSION); } catch(ex) { debug("Unable to get remote url pref. What now? "+ex); } try { locale = prefs.getLocalizedUnicharPref("intl.content.langcode"); } catch(ex) { try { debug("...
locale = locale.toLowerCase(); url = url.replace(/%LOCALE%/g, locale);
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['@mozilla.org/preferences;1']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref("sideb...
locale = prefs.getLocalizedUnicharPref("general.useragent.locale"); } catch(ex) { debug("Unable to get system locale. What now? "+ex); } } locale = locale.toLowerCase(); url = url.replace(/%LOCALE%/g, locale); debug("Remote url is " + url); }
debug("Remote url is " + url);
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['@mozilla.org/preferences;1']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref("sideb...
return GetAbResultsTree().treeBoxObject;
return gAbResultsTree.treeBoxObject;
function GetAbResultsBoxObject(){ return GetAbResultsTree().treeBoxObject;}
var rdf = Components.classes["component: if (rdf) rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); if (rdf && ds) { var src = rdf.GetResource(url, true); var prop = rdf.GetResource("http: var target = ds.GetTarget(src, prop, true); if (target) target = target.QueryInterface(Components.interfaces.nsIRDFL...
var rdf_uri = "component: var rdf = Components.classes[rdf_uri].getService(); if (rdf) rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); if (rdf && ds) { var src = rdf.GetResource(url, true); var prop = rdf.GetResource(NC + "URL", true); var target = ds.GetTarget(src, prop, true); if (target) target = targ...
function getAbsoluteID(root, node){ var url = node.getAttribute("ref"); if ((url == null) || (url == "")) { url = node.getAttribute("id"); } try { var rootNode = document.getElementById(root); var ds = null; if (rootNode) { ds = rootNode.database; } // add support for anonymous resources such as Internet Searc...
var URL = ioService.newURI(doc.location.href, null);
var URL = ioService.newURI(doc.location.href, null, null);
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 !...
var URL = ioService.newURI(doc.location.href, null);
var URL = ioService.newURI(doc.location.href, null, null);
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) { if (node.getAttributeNS(XMLNS, "base")...
return;
return null;
function getAccountFromServerId(serverId) { // get the account by dipping into RDF and then into the acount manager var serverResource = RDF.GetResource(serverId); try { var serverFolder = serverResource.QueryInterface(Components.interfaces.nsIMsgFolder); } catch (ex) { return; } var incomingServer = serve...
return null;
function getAccountFromServerId(serverId) { // get the account by dipping into RDF and then into the acount manager var serverResource = RDF.GetResource(serverId); try { var serverFolder = serverResource.QueryInterface(Components.interfaces.nsIMsgFolder); var incomingServer = serverFolder.server; var a...
return null;
function getAccountFromServerId(serverId) { // get the account by dipping into RDF and then into the acount manager var serverResource = RDF.GetResource(serverId); try { var serverFolder = serverResource.QueryInterface(Components.interfaces.nsIMsgFolder); var incomingServer = serverFolder.server; var a...
var serverFolder = serverResource.QueryInterface(Components.interfaces.nsIMsgFolder);
var serverFolder = serverResource.QueryInterface(Components.interfaces.nsIMsgFolder); var incomingServer = serverFolder.server; var account = accountManager.FindAccountForServer(incomingServer); return account;
function getAccountFromServerId(serverId) { // get the account by dipping into RDF and then into the acount manager var serverResource = RDF.GetResource(serverId); try { var serverFolder = serverResource.QueryInterface(Components.interfaces.nsIMsgFolder); } catch (ex) { return null; } var incomingServer = ...
var incomingServer = serverFolder.server; var account = accountManager.FindAccountForServer(incomingServer); return account;
function getAccountFromServerId(serverId) { // get the account by dipping into RDF and then into the acount manager var serverResource = RDF.GetResource(serverId); try { var serverFolder = serverResource.QueryInterface(Components.interfaces.nsIMsgFolder); } catch (ex) { return null; } var incomingServer = ...
return PROT_GlobalStore.getPref_("safebrowsing.provider.0.reportURL");
return PROT_GlobalStore.getPref_("browser.safebrowsing.provider.0.reportURL");
PROT_GlobalStore.getActionReportURL = function() { return PROT_GlobalStore.getPref_("safebrowsing.provider.0.reportURL");}
getAdditionalDataForItem: function (item) { if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) {
getAdditionalDataForItem: function (item, flags) { if (flags & CAL_ITEM_FLAG_HAS_ATTENDEES) {
getAdditionalDataForItem: function (item) { if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) { this.mSelectAttendeesForItem.params.event_id = item.id; while (this.mSelectAttendeesForItem.step()) { var attendee = this.mNewAttendeeFromRow(this.mSelectAttendeesForItem.row); ...
if (item.flags & CAL_ITEM_FLAG_HAS_PROPERTIES) {
if (flags & CAL_ITEM_FLAG_HAS_PROPERTIES) {
getAdditionalDataForItem: function (item) { if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) { this.mSelectAttendeesForItem.params.event_id = item.id; while (this.mSelectAttendeesForItem.step()) { var attendee = this.mNewAttendeeFromRow(this.mSelectAttendeesForItem.row); ...
if (item.flags & CAL_ITEM_FLAG_HAS_RECURRENCE) {
if (flags & CAL_ITEM_FLAG_HAS_RECURRENCE) { dump ("item " + item.id + " has recurrence\n");
getAdditionalDataForItem: function (item) { if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) { this.mSelectAttendeesForItem.params.event_id = item.id; while (this.mSelectAttendeesForItem.step()) { var attendee = this.mNewAttendeeFromRow(this.mSelectAttendeesForItem.row); ...
var rec = item.rec;
var rec = new CalRecurrenceInfo();
getAdditionalDataForItem: function (item) { if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) { this.mSelectAttendeesForItem.params.event_id = item.id; while (this.mSelectAttendeesForItem.step()) { var attendee = this.mNewAttendeeFromRow(this.mSelectAttendeesForItem.row); ...
rec.recur_type = row.recur_type; rec.count = row.count;
rec.recurType = row.recur_type; rec.recurCount = row.count; rec.interval = row.interval;
getAdditionalDataForItem: function (item) { if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) { this.mSelectAttendeesForItem.params.event_id = item.id; while (this.mSelectAttendeesForItem.step()) { var attendee = this.mNewAttendeeFromRow(this.mSelectAttendeesForItem.row); ...
var rtypes = [calIRecurrenceInfo.CAL_RECUR_BYSECOND, "second", calIRecurrenceInfo.CAL_RECUR_BYMINUTE, "minute", calIRecurrenceInfo.CAL_RECUR_BYHOUR, "hour", calIRecurrenceInfo.CAL_RECUR_BYDAY, "day", calIRecurrenceInfo.CAL_RECUR_BYMONTHDAY, "monthday", calIRecurrenceInfo.CAL_RECUR_BYYEARDAY, "yearday", calIRecurrenceIn...
if (item instanceof kCalIEvent) rec.recurStart = item.startDate; else if (item instanceof kCalITodo) rec.recurStart = item.entryTime; var rtypes = [kCalIRecurrenceInfo.CAL_RECUR_BYSECOND, "second", kCalIRecurrenceInfo.CAL_RECUR_BYMINUTE, "minute", kCalIRecurrenceInfo.CAL_RECUR_BYHOUR, "hour", kCalIRecurrenceInfo.CAL_R...
getAdditionalDataForItem: function (item) { if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) { this.mSelectAttendeesForItem.params.event_id = item.id; while (this.mSelectAttendeesForItem.step()) { var attendee = this.mNewAttendeeFromRow(this.mSelectAttendeesForItem.row); ...
item.recurrenceInfo = rec;
getAdditionalDataForItem: function (item) { if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) { this.mSelectAttendeesForItem.params.event_id = item.id; while (this.mSelectAttendeesForItem.step()) { var attendee = this.mNewAttendeeFromRow(this.mSelectAttendeesForItem.row); ...
}
},
getAlignedTimezone: function( tzid ) { // check whether it is one of cs: if (tzid.indexOf("/mozilla.org/") == 0) { // cut mozilla prefix: assuming that the latter string portion // semantically equals the demanded timezone tzid = tzid.substrin...
if (tzid.indexOf("/mozilla.org/20050126_1/") == 0 || !this.session.isSupportedTimezone(tzid)) {
if (tzid.indexOf("/mozilla.org/") == 0) { tzid = tzid.substring( tzid.indexOf("/", "/mozilla.org/".length) + 1 ); } if (!this.session.isSupportedTimezone(tzid)) { var ret = this.defaultTimezone;
getAlignedTimezone: function( tzid ) { // check whether it is one of cs: if (tzid.indexOf("/mozilla.org/20050126_1/") == 0 || !this.session.isSupportedTimezone(tzid)) { // use calendar's default: return this.defaultTimezone; } else // is ok (support...
return this.defaultTimezone;
this.log( tzid + " not supported, falling back to default: " + ret); return ret;
getAlignedTimezone: function( tzid ) { // check whether it is one of cs: if (tzid.indexOf("/mozilla.org/20050126_1/") == 0 || !this.session.isSupportedTimezone(tzid)) { // use calendar's default: return this.defaultTimezone; } else // is ok (support...
commands = ["open", "find", "separator", "bm_cut", "bm_copy", "bm_paste", "bm_delete", "separator", "rename", "separator", "bm_fileBookmark", "separator", "newfolder",
commands = ["open", "find", "separator", "bm_cut", "bm_copylink", "bm_copy", "bm_paste", "bm_delete", "separator", "rename", "separator", "bm_fileBookmark", "separator", "newfolder",
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); if (!type) { if (aNodeID == "NC:PersonalToolbarFolder" || aNodeID == "NC:BookmarksRoot") type = "http://home.netscape.com/NC-rdf#Folder"; else return null; } var commands = []; switch (type) { case "http:...
commands = ["open", "find", "separator", "bm_copy"];
commands = ["open", "find", "separator", "bm_copylink", "bm_copy"];
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); if (!type) { if (aNodeID == "NC:PersonalToolbarFolder" || aNodeID == "NC:BookmarksRoot") type = "http://home.netscape.com/NC-rdf#Folder"; else return null; } var commands = []; switch (type) { case "http:...
"bm_delete", "separator", "newfolder"];
"bm_delete", "separator", "bm_fileBookmark", "separator", "newfolder"];
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); var commands = []; switch (type) { case "http://home.netscape.com/NC-rdf#BookmarkSeparator": commands = ["find", "separator", "bm_cut", "bm_copy", "bm_paste", "bm_delete", "separator", "newfolder"]; break; ...
"bm_delete", "separator", "rename", "separator", "newfolder",
"bm_delete", "separator", "rename", "separator", "bm_fileBookmark", "separator", "newfolder",
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); var commands = []; switch (type) { case "http://home.netscape.com/NC-rdf#BookmarkSeparator": commands = ["find", "separator", "bm_cut", "bm_copy", "bm_paste", "bm_delete", "separator", "newfolder"]; break; ...
"separator", "newfolder", "separator", "properties"];
"separator", "bm_fileBookmark", "separator", "newfolder", "separator", "properties"];
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); var commands = []; switch (type) { case "http://home.netscape.com/NC-rdf#BookmarkSeparator": commands = ["find", "separator", "bm_cut", "bm_copy", "bm_paste", "bm_delete", "separator", "newfolder"]; break; ...
commands = ["open", "find", "separator", "bm_copy", "separator", "rename", "separator", "properties"];
commands = ["open", "find", "separator", "bm_copy", "separator", "rename", "separator", "bm_fileBookmark", "separator", "separator", "properties"];
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); var commands = []; switch (type) { case "http://home.netscape.com/NC-rdf#BookmarkSeparator": commands = ["find", "separator", "bm_cut", "bm_copy", "bm_paste", "bm_delete", "separator", "newfolder"]; break; ...
function GetAppropriatePercentString()
function GetAppropriatePercentString(elementForAtt, elementInDoc)
function GetAppropriatePercentString(){ var selection = window.editorShell.editorSelection; if (selection) { if (editorShell.GetElementOrParentByTagName("td",selection.anchorNode)) return GetString("PercentOfCell"); } return GetString("PercentOfWindow");}
var selection = window.editorShell.editorSelection; if (selection) { if (editorShell.GetElementOrParentByTagName("td",selection.anchorNode)) return GetString("PercentOfCell"); } return GetString("PercentOfWindow");
if (elementForAtt.nodeName == "TD" || elementForAtt.nodeName == "TH") return GetString("PercentOfTable"); if(elementForAtt.nodeName == "TABLE") return GetString("PercentOfWindow"); if(editorShell.GetElementOrParentByTagName("td",elementInDoc)) return GetString("PercentOfCell"); else return GetString("PercentOfWindo...
function GetAppropriatePercentString(){ var selection = window.editorShell.editorSelection; if (selection) { if (editorShell.GetElementOrParentByTagName("td",selection.anchorNode)) return GetString("PercentOfCell"); } return GetString("PercentOfWindow");}
if(elementForAtt.nodeName == "TABLE") return GetString("PercentOfWindow");
function GetAppropriatePercentString(elementForAtt, elementInDoc){ if (elementForAtt.nodeName == "TD" || elementForAtt.nodeName == "TH") return GetString("PercentOfTable");//TEMP: UNTIL InitPixelOrPercentCombobox() has elementInDoc param: if(elementForAtt.nodeName == "TABLE") return GetString("PercentOfWindow")...
var attributesCount = {}; var attributes = aMessage.getAttributes(attributesCount); for (var i = 0; i < attributesCount.value; i++) { if (attributes[i] == aAttributeName) { var valuesCount = {}; var values = aMessage.getValues(attributes[i], valuesCount); for (var j = 0; j < valuesCount.value; j++) { var attributeValu...
var valuesCount = {}; try { var values = aMessage.getValues(aAttributeName, valuesCount); for (var j = 0; j < valuesCount.value; j++) { var attributeValue = this.mRdfSvc.GetLiteral(values[j]); resultArray.push(attributeValue);
getAttributeArray: function(aMessage, aAttributeName) { var resultArray = new Array(); var attributesCount = {}; var attributes = aMessage.getAttributes(attributesCount); for (var i = 0; i < attributesCount.value; i++) { if (attributes[i] == aAttributeName) { va...
} catch (e) {
getAttributeArray: function(aMessage, aAttributeName) { var resultArray = new Array(); var attributesCount = {}; var attributes = aMessage.getAttributes(attributesCount); for (var i = 0; i < attributesCount.value; i++) { if (attributes[i] == aAttributeName) { va...
var IsCSSPrefChecked = prefs.getBoolPref("editor.use_css");
var IsCSSPrefChecked = prefs.getBoolPref(kUseCssPref);
function GetBackgroundElementWithColor(){ var editor = GetCurrentTableEditor(); if (!editor) return null; gColorObj.Type = ""; gColorObj.PageColor = ""; gColorObj.TableColor = ""; gColorObj.CellColor = ""; gColorObj.BackgroundColor = ""; gColorObj.SelectedType = ""; var tagNameObj = { value: "" }; var elem...
if (optionalHint.search(tempID.email.toLowerCase()) >= 0) {
if (optionalHint.indexOf(tempID.email.toLowerCase()) >= 0) {
function getBestIdentity(identities, optionalHint){ var identity = null; try { // if we have more than one identity and a hint to help us pick one if (identities.Count() > 1 && optionalHint) { // normalize case on the optional hint to improve our chances of finding a match optionalHint = optionalHint...
if (kids) return kids.lastChild;
return kids.lastChild || this.tree;
getBestItem: function () { var seln = this.getSelection (); if (seln.length < 1) { var kids = ContentUtils.childByLocalName(this.tree, "treechildren"); if (kids) return kids.lastChild; } else return seln[0]; return null; },
return null;
return this.tree;
getBestItem: function () { var seln = this.getSelection (); if (seln.length < 1) { var kids = ContentUtils.childByLocalName(this.tree, "treechildren"); if (kids) return kids.lastChild; } else return seln[0]; return null; },
return (gSearchBooleanRadiogroup.selectedItem.getAttribute("data") == "and") ? true : false;
return (gSearchBooleanRadiogroup.selectedItem.getAttribute("value") == "and") ? true : false;
function getBooleanAnd(){ if (gSearchBooleanRadiogroup.selectedItem) return (gSearchBooleanRadiogroup.selectedItem.getAttribute("data") == "and") ? true : false; // default to false return false;}
return this.mPrefService.GetBoolPref(aPrefName);
return this.mPrefService.getBoolPref(aPrefName);
getBoolPref: function (aPrefName, aDefVal) { try { return this.mPrefService.GetBoolPref(aPrefName); } catch(e) { return aDefVal != undefined ? aDefVal : null; } return null; // quiet warnings },