fix for 165287 throbber never stops loading a page with only a .swf plugin object/embed r=av,sr=darin

This commit is contained in:
serge%netscape.com 2002-09-03 23:14:49 +00:00
Родитель 6055a8b83e
Коммит bdded7ae70
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -5621,7 +5621,8 @@ NS_IMETHODIMP nsPluginHostImpl::NewPluginURLStream(const nsString& aURL,
nsCOMPtr<nsIChannel> channel;
rv = NS_NewChannel(getter_AddRefs(channel), url, nsnull, loadGroup, callbacks);
rv = NS_NewChannel(getter_AddRefs(channel), url, nsnull, loadGroup, callbacks,
/* prevents throbber from becoming active */ nsIRequest::LOAD_BACKGROUND);
if (NS_FAILED(rv))
return rv;
@ -5822,7 +5823,8 @@ nsresult nsPluginHostImpl::NewEmbededPluginStream(nsIURI* aURL,
nsCOMPtr<nsIChannel> channel;
rv = NS_NewChannel(getter_AddRefs(channel), aURL, nsnull, loadGroup);
rv = NS_NewChannel(getter_AddRefs(channel), aURL, nsnull, loadGroup, nsnull,
/* prevents throbber from becoming active */ nsIRequest::LOAD_BACKGROUND);
if (NS_SUCCEEDED(rv)) {
// if this is http channel, set referrer, some servers are configured
// to reject requests without referrer set, see bug 157796