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
Родитель 53b3103260
Коммит aaa5e0e11a
2 изменённых файлов: 2 добавлений и 24 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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