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
parent 7a7bde4572
commit 11a336fc1d

View File

@ -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...