Fixes bug 73905 "CSS/JS documents are not cached" r=pierre, sr=waterson

This commit is contained in:
darin%netscape.com 2001-04-04 07:20:46 +00:00
parent 53b3103260
commit aaa5e0e11a
2 changed files with 2 additions and 24 deletions

View File

@ -1217,19 +1217,8 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData)
nsCOMPtr<nsILoadGroup> loadGroup;
mDocument->GetDocumentLoadGroup(getter_AddRefs(loadGroup));
PRBool isLocalFile;
#ifdef INCLUDE_XUL
isLocalFile = (IsChromeURI(urlClone) || IsFileURI(urlClone));
#else
isLocalFile = IsFileURI(urlClone);
#endif
nsLoadFlags loadAttributes;
if (isLocalFile)
loadAttributes = (nsLoadFlags)nsIChannel::LOAD_NORMAL;
else
loadAttributes = (nsLoadFlags)nsIChannel::FORCE_RELOAD;
result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup,
nsnull, loadAttributes);
nsnull, nsIChannel::LOAD_NORMAL);
#ifdef NS_DEBUG
mSyncCallback = PR_FALSE;
#endif

View File

@ -1217,19 +1217,8 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData)
nsCOMPtr<nsILoadGroup> loadGroup;
mDocument->GetDocumentLoadGroup(getter_AddRefs(loadGroup));
PRBool isLocalFile;
#ifdef INCLUDE_XUL
isLocalFile = (IsChromeURI(urlClone) || IsFileURI(urlClone));
#else
isLocalFile = IsFileURI(urlClone);
#endif
nsLoadFlags loadAttributes;
if (isLocalFile)
loadAttributes = (nsLoadFlags)nsIChannel::LOAD_NORMAL;
else
loadAttributes = (nsLoadFlags)nsIChannel::FORCE_RELOAD;
result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup,
nsnull, loadAttributes);
nsnull, nsIChannel::LOAD_NORMAL);
#ifdef NS_DEBUG
mSyncCallback = PR_FALSE;
#endif