mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 343383 cookies don't work in 'suiterunner' seamonkey. r=neil,sr=bienvenu
This commit is contained in:
parent
323c869df4
commit
706c46e412
@ -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
|
||||
|
@ -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_
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user