From 07501604afb99c1ef5723acf5b0c80b77ae5826f Mon Sep 17 00:00:00 2001 From: "hpradhan%hotpop.com" Date: Sat, 20 Sep 2003 05:57:19 +0000 Subject: [PATCH] Bug 218938: document.lastModified returns current time for local file --- content/base/src/nsDocument.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index 3fbb9e9dae2a..4b45bafedadd 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -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(); }