Short term hack...allow the uri loading to proceed even if we don't have a load group. eventually we should try to

create a loadgroup for the caller.
This commit is contained in:
mscott%netscape.com 2000-01-09 23:45:36 +00:00
parent 1237e0a5d0
commit 6bbb531aa6

View File

@ -157,6 +157,7 @@ nsresult nsDocumentOpenInfo::Open(nsIURI *aURI,
// and get the load group out of the open context
nsCOMPtr<nsILoadGroup> aLoadGroup = do_QueryInterface(aOpenContext);
#if 0
if (!aLoadGroup)
{
// i haven't implemented this yet...it's going to be hard
@ -164,8 +165,9 @@ nsresult nsDocumentOpenInfo::Open(nsIURI *aURI,
// that we don't have in this architecture in order to create a new load group
return NS_ERROR_NOT_IMPLEMENTED;
}
#endif
if (aCurrentOpenContext)
if (aCurrentOpenContext && aLoadGroup)
aLoadGroup->QueryInterface(NS_GET_IID(nsISupports), (void **) aCurrentOpenContext);
// now we have all we need, so go get the necko channel service so we can