Bug 411952 - Cookie's creationTime needs to be exposed via nsICookie2; r=mconnor, sr=bzbarsky
This commit is contained in:
Родитель
4aff2301d7
Коммит
b1a901a1e2
|
@ -44,7 +44,7 @@
|
|||
* access of cookie objects
|
||||
*/
|
||||
|
||||
[scriptable, uuid(736619fe-8d09-4e59-8223-32f176c22977)]
|
||||
[scriptable, uuid(8587f4e0-870c-11dd-ad8b-0800200c9a66)]
|
||||
|
||||
interface nsICookie2 : nsICookie
|
||||
{
|
||||
|
@ -78,5 +78,11 @@ interface nsICookie2 : nsICookie
|
|||
*/
|
||||
readonly attribute boolean isHttpOnly;
|
||||
|
||||
/**
|
||||
* the creation time of the cookie, in seconds
|
||||
* since midnight (00:00:00), January 1, 1970 UTC.
|
||||
*/
|
||||
readonly attribute PRInt64 creationTime;
|
||||
|
||||
|
||||
};
|
||||
|
|
|
@ -142,6 +142,7 @@ NS_IMETHODIMP nsCookie::GetIsSecure(PRBool *aIsSecure) { *aIsSecure = IsSecu
|
|||
NS_IMETHODIMP nsCookie::GetIsHttpOnly(PRBool *aHttpOnly) { *aHttpOnly = IsHttpOnly(); return NS_OK; }
|
||||
NS_IMETHODIMP nsCookie::GetStatus(nsCookieStatus *aStatus) { *aStatus = 0; return NS_OK; }
|
||||
NS_IMETHODIMP nsCookie::GetPolicy(nsCookiePolicy *aPolicy) { *aPolicy = 0; return NS_OK; }
|
||||
NS_IMETHODIMP nsCookie::GetCreationTime(PRInt64 *aCreation){ *aCreation = CreationID(); return NS_OK; }
|
||||
|
||||
// compatibility method, for use with the legacy nsICookie interface.
|
||||
// here, expires == 0 denotes a session cookie.
|
||||
|
|
Загрузка…
Ссылка в новой задаче