Bug 218938: document.lastModified returns current time for local file

This commit is contained in:
hpradhan%hotpop.com 2003-09-20 05:57:19 +00:00
Родитель a5f31287a4
Коммит 07501604af
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -4377,7 +4377,10 @@ nsDocument::RetrieveRelevantHeaders(nsIChannel *aChannel)
}
}
if (mLastModified.IsEmpty()) {
if (mLastModified.IsEmpty() && LL_IS_ZERO(modDate)) {
// We got nothing from our attempt to ask nsIFileChannel and
// nsIHttpChannel for the last modified time. Return the current
// time.
modDate = PR_Now();
}