Necko stuff for dealing with load groups when opening URLs.

git-svn-id: svn://10.0.0.236/trunk@38929 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
1999-07-09 21:18:47 +00:00
parent c3cf5853c2
commit 5c37d2ec29
35 changed files with 366 additions and 288 deletions

View File

@@ -1066,8 +1066,14 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData)
nsIURI* urlClone = CloneURL(aKey.mURL); // don't give the key to netlib, it munges it
if (urlClone) {
#endif
result = NS_NewUnicharStreamLoader(&loader, urlClone, DoneLoadingStyle, aData);
nsILoadGroup* loadGroup = mDocument->GetDocumentLoadGroup();
result = NS_NewUnicharStreamLoader(&loader, urlClone,
#ifdef NECKO
loadGroup,
#endif
DoneLoadingStyle, aData);
NS_RELEASE(urlClone);
NS_IF_RELEASE(loadGroup);
if (NS_SUCCEEDED(result)) {
mLoadingSheets.Put(&aKey, aData);
// grab any pending alternates that have this URL
@@ -1276,7 +1282,11 @@ CSSLoaderImpl::LoadAgentSheet(nsIURI* aURL,
if (urlClone) {
#endif
#ifdef NECKO
result = NS_OpenURI(&in, urlClone);
nsILoadGroup* loadGroup = nsnull;
if (mDocument) {
loadGroup = mDocument->GetDocumentLoadGroup();
}
result = NS_OpenURI(&in, urlClone, loadGroup);
#else
result = NS_OpenURL(urlClone, &in);
#endif