Added an InterfaceRequestor argument to NS_OpenURI(...). This allows progress notifications to be fired for images...

This commit is contained in:
rpotts%netscape.com 2000-05-11 21:53:58 +00:00
Родитель a8446af14b
Коммит 85d7c979ef
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -720,8 +720,9 @@ ImageNetContextImpl::GetURL (ilIURL * aURL,
nsCOMPtr<nsIChannel> channel;
nsCOMPtr<nsISupports> loadContext (do_QueryReferent(mLoadContext));
nsCOMPtr<nsILoadGroup> group (do_GetInterface(loadContext));
nsCOMPtr<nsIInterfaceRequestor> sink(do_QueryInterface(loadContext));
rv = NS_OpenURI(getter_AddRefs(channel), nsurl, nsnull, group);
rv = NS_OpenURI(getter_AddRefs(channel), nsurl, nsnull, group, sink);
if (NS_FAILED(rv)) goto error;
nsCOMPtr<nsIHTTPChannel> httpChannel = do_QueryInterface(channel);