Bug #35956, 57619 --> be sure to disable auto conversion if we are handling the content

via an external app. sr=rpotts, r=gagan
This commit is contained in:
mscott%netscape.com 2000-10-23 04:31:07 +00:00
Родитель 55e1590d4c
Коммит 4cbc13be6b
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -701,6 +701,13 @@ NS_IMETHODIMP nsExternalAppHandler::OnStartRequest(nsIChannel * aChannel, nsISup
RetargetLoadNotifications(aChannel);
// ignore failure...
ExtractSuggestedFileNameFromChannel(aChannel);
nsCOMPtr<nsIHTTPChannel> httpChannel = do_QueryInterface( aChannel );
if ( httpChannel )
{
// Turn off content encoding conversions.
httpChannel->SetApplyConversion( PR_FALSE );
}
// now that the temp file is set up, find out if we need to invoke a dialog asking the user what
// they want us to do with this content...