Bug 365362 msgHdrSink's properties is null r=mscott

This commit is contained in:
neil%parkwaycc.co.uk 2007-01-23 13:56:00 +00:00
parent ab12075fb9
commit a25e0b1d09
3 changed files with 12 additions and 12 deletions

View File

@ -501,25 +501,25 @@ var messageHeaderSink = {
mSecurityInfo : null,
mSaveHdr: null,
getSecurityInfo: function()
get securityInfo()
{
return this.mSecurityInfo;
},
setSecurityInfo: function(aSecurityInfo)
set securityInfo(aSecurityInfo)
{
this.mSecurityInfo = aSecurityInfo;
},
mDummyMsgHeader: null,
getDummyMsgHeader: function()
get dummyMsgHeader()
{
if (!this.mDummyMsgHeader)
this.mDummyMsgHeader = new nsDummyMsgHeader();
return this.mDummyMsgHeader;
},
mProperties: null,
getProperties: function()
get properties()
{
if (!this.mProperties)
this.mProperties = Components.classes["@mozilla.org/hash-property-bag;1"].

View File

@ -502,31 +502,31 @@ var messageHeaderSink = {
mSecurityInfo : null,
mSaveHdr: null,
getSecurityInfo: function()
get securityInfo()
{
return this.mSecurityInfo;
},
setSecurityInfo: function(aSecurityInfo)
set securityInfo(aSecurityInfo)
{
this.mSecurityInfo = aSecurityInfo;
},
mDummyMsgHeader: null,
getDummyMsgHeader: function()
get dummyMsgHeader()
{
if (!this.mDummyMsgHeader)
this.mDummyMsgHeader = new nsDummyMsgHeader();
return this.mDummyMsgHeader;
},
mProperties: null,
getProperties: function()
{
get properties()
{
if (!this.mProperties)
this.mProperties = Components.classes["@mozilla.org/hash-property-bag;1"].
createInstance(Components.interfaces.nsIWritablePropertyBag2);
return this.mProperties;
}
}
};
// Private method which generates a space delimited list of tag keys for the

View File

@ -61,7 +61,7 @@ interface nsIMimeMiscStatus : nsISupports{
// this is a simple interface which allows someone to listen to all the headers
// that are discovered by mime. We can use this when displaying a message to update
// the msg header in JS.
[scriptable, uuid(C3C4473C-FE01-4AFC-BF91-C811BAEBEF63)]
[scriptable, uuid(8AA47266-1226-490B-9467-5E865CC58074)]
interface nsIMsgHeaderSink : nsISupports
{
// You must finish consuming the iterators before returning from processHeaders. aHeaderNames and aHeaderValues will ALWAYS have the same
@ -83,7 +83,7 @@ interface nsIMsgHeaderSink : nsISupports
attribute nsISupports securityInfo;
void onMsgHasRemoteContent(in nsIMsgDBHdr aMsgHdr);
nsIMsgDBHdr getDummyMsgHeader();
readonly attribute nsIMsgDBHdr dummyMsgHeader;
// used as a hook for extension mime content handlers to store data that can later
// be accessed by other parts of the code, e.g., UI code.