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

git-svn-id: svn://10.0.0.236/trunk@91265 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2001-04-04 07:20:46 +00:00
parent 1f47c8bc4a
commit 72047ef03e
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