Necko API changes, bug 74221. r=valeski, sr=rpotts.
git-svn-id: svn://10.0.0.236/trunk@91842 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -532,13 +532,13 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
|
||||
}
|
||||
|
||||
PRUint32 loadAttr = 0;
|
||||
rv = httpChannel->GetLoadAttributes(&loadAttr);
|
||||
rv = httpChannel->GetLoadFlags(&loadAttr);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv),"cannot get load attribute");
|
||||
if(NS_SUCCEEDED(rv)) {
|
||||
// copy from nsHTTPChannel.cpp
|
||||
if(loadAttr & nsIChannel::CACHE_AS_FILE)
|
||||
cacheFlags = nsINetDataCacheManager::CACHE_AS_FILE;
|
||||
else if(loadAttr & nsIChannel::INHIBIT_PERSISTENT_CACHING)
|
||||
else if(loadAttr & nsIRequest::INHIBIT_PERSISTENT_CACHING)
|
||||
cacheFlags = nsINetDataCacheManager::BYPASS_PERSISTENT_CACHE;
|
||||
bTryCache = PR_TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user