Bug 254586 don't assume cacheToken can be qi'd to nsICacheEntryDescriptor
r=bzbarsky sr=darin git-svn-id: svn://10.0.0.236/trunk@160642 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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<nsICacheEntryDescriptor> cacheEntryInfo(do_QueryInterface(cacheToken));
|
||||
nsCOMPtr<nsICacheEntryInfo> cacheEntryInfo(do_QueryInterface(cacheToken));
|
||||
if (cacheEntryInfo) {
|
||||
PRUint32 expTime;
|
||||
cacheEntryInfo->GetExpirationTime(&expTime);
|
||||
|
||||
Reference in New Issue
Block a user