From 23a47001f9472011910d2795d4b606c0e511bfc6 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Tue, 10 Aug 2004 23:57:25 +0000 Subject: [PATCH] Bug 254586 don't assume cacheToken can be qi'd to nsICacheEntryDescriptor r=bzbarsky sr=darin --- docshell/base/nsDocShell.cpp | 4 ++-- modules/libpr0n/src/imgRequest.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 62ac76d7753..b7f230e0b20 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -121,7 +121,7 @@ #include "nsPIDOMWindow.h" #include "nsIDOMDocument.h" #include "nsICachingChannel.h" -#include "nsICacheEntryDescriptor.h" +#include "nsICacheVisitor.h" #include "nsIMultiPartChannel.h" #include "nsIWyciwygChannel.h" @@ -6372,7 +6372,7 @@ nsDocShell::AddToSessionHistory(nsIURI * aURI, } if (cacheToken) { // Check if the page has expired from cache - nsCOMPtr cacheEntryInfo(do_QueryInterface(cacheToken)); + nsCOMPtr cacheEntryInfo(do_QueryInterface(cacheToken)); if (cacheEntryInfo) { PRUint32 expTime; cacheEntryInfo->GetExpirationTime(&expTime); diff --git a/modules/libpr0n/src/imgRequest.cpp b/modules/libpr0n/src/imgRequest.cpp index 632742b7df4..a10f6a35c91 100644 --- a/modules/libpr0n/src/imgRequest.cpp +++ b/modules/libpr0n/src/imgRequest.cpp @@ -628,7 +628,7 @@ NS_IMETHODIMP imgRequest::OnStartRequest(nsIRequest *aRequest, nsISupports *ctxt nsCOMPtr cacheToken; cacheChannel->GetCacheToken(getter_AddRefs(cacheToken)); if (cacheToken) { - nsCOMPtr entryDesc(do_QueryInterface(cacheToken)); + nsCOMPtr entryDesc(do_QueryInterface(cacheToken)); if (entryDesc) { PRUint32 expiration; /* get the expiration time from the caching channel's token */