diff --git a/mozilla/netwerk/cookie/src/nsCookieService.cpp b/mozilla/netwerk/cookie/src/nsCookieService.cpp index 2d1fa73e7ee..012b5de95cd 100644 --- a/mozilla/netwerk/cookie/src/nsCookieService.cpp +++ b/mozilla/netwerk/cookie/src/nsCookieService.cpp @@ -1360,6 +1360,10 @@ nsCookieService::AddInternal(nsCookie *aCookie, return; } + // preserve creation time of cookie + if (oldCookie) + aCookie->SetCreationID(oldCookie->CreationID()); + } else { // check if cookie has already expired if (aCookie->Expiry() <= aCurrentTime) {