mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Fix bug 122499 "about:cache thinks expiration time of '0' means 'no expiration'". Changed 'no expiration' value to 0xFFFFFFFF. r=gagan, sr=darin.
This commit is contained in:
parent
e26aed73cd
commit
25e54bb7cd
@ -290,7 +290,7 @@ nsAboutCache::VisitEntry(const char *deviceID,
|
||||
// Expires time
|
||||
mBuffer.Append("\n<b> Expires: </b>");
|
||||
entryInfo->GetExpirationTime(&t);
|
||||
if (t) {
|
||||
if (t < 0xFFFFFFFF) {
|
||||
PrintTimeString(buf, sizeof(buf), t);
|
||||
mBuffer.Append(buf);
|
||||
} else {
|
||||
|
@ -438,7 +438,7 @@ nsAboutCacheEntry::WriteCacheEntryDescription(nsIOutputStream *outputStream,
|
||||
|
||||
// Expiration Time
|
||||
descriptor->GetExpirationTime(&u);
|
||||
if (u) {
|
||||
if (u < 0xFFFFFFFF) {
|
||||
PrintTimeString(timeBuf, sizeof(timeBuf), u);
|
||||
APPEND_ROW("expires", timeBuf);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user