Bug 343383 cookies don't work in 'suiterunner' seamonkey. r=neil,sr=bienvenu

This commit is contained in:
bugzilla%standard8.demon.co.uk 2006-07-04 12:08:11 +00:00
parent 323c869df4
commit 706c46e412
3 changed files with 12 additions and 0 deletions

View File

@ -446,6 +446,8 @@ NS_IMETHODIMP nsMsgContentPolicy::Observe(nsISupports *aSubject, const char *aTo
return NS_OK;
}
#ifdef MOZ_THUNDERBIRD
NS_IMPL_ISUPPORTS1(nsMsgCookiePolicy, nsICookiePermission)
@ -497,3 +499,5 @@ NS_IMETHODIMP nsMsgCookiePolicy::CanSetCookie(nsIURI *aURI,
*aResult = PR_TRUE;
return NS_OK;
}
#endif

View File

@ -86,6 +86,8 @@ protected:
nsresult IsTrustedDomain(nsIURI * aContentLocation, PRBool * aTrustedDomain);
};
#ifdef MOZ_THUNDERBIRD
/* 2C4B5CC1-8C0F-4080-92A7-D133CC30F43B */
#define NS_MSGCOOKIEPOLICY_CID \
{ 0x2c4b5cc1, 0x8c0f, 0x4080, { 0x92, 0xa7, 0xd1, 0x33, 0xcc, 0x30, 0xf4, 0x3b } }
@ -102,4 +104,6 @@ public:
virtual ~nsMsgCookiePolicy() {}
};
#endif
#endif // _nsMsgContentPolicy_H_

View File

@ -345,7 +345,9 @@ NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsMessengerOSXIntegration, Init)
#endif
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMessengerContentHandler)
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsMsgContentPolicy, Init)
#ifdef MOZ_THUNDERBIRD
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgCookiePolicy)
#endif
////////////////////////////////////////////////////////////////////////////////
// addrbook factories
@ -865,11 +867,13 @@ static const nsModuleComponentInfo gComponents[] = {
NS_MSGCONTENTPOLICY_CONTRACTID,
nsMsgContentPolicyConstructor,
RegisterContentPolicy, UnregisterContentPolicy },
#ifdef MOZ_THUNDERBIRD
{ "mail cookie policy enforcer",
NS_MSGCOOKIEPOLICY_CID,
NS_COOKIEPERMISSION_CONTRACTID,
nsMsgCookiePolicyConstructor
},
#endif
////////////////////////////////////////////////////////////////////////////////
// addrbook components