Diff for /chimera/NSBrowserView.mm between versions 1.27 and 1.28

version 1.27, 2002/03/15 16:18:34 version 1.28, 2002/03/27 23:55:06
Line 696  nsHeaderSniffer::OnStateChange(nsIWebPro Line 696  nsHeaderSniffer::OnStateChange(nsIWebPro
 {  {
     if (aStateFlags & nsIWebProgressListener::STATE_START) {      if (aStateFlags & nsIWebProgressListener::STATE_START) {
         nsCOMPtr<nsIChannel> channel(do_QueryInterface(aRequest));          nsCOMPtr<nsIChannel> channel(do_QueryInterface(aRequest));
        nsXPIDLCString contentType;        channel->GetContentType(mContentType);
        channel->GetContentType(getter_Copies(contentType));       
        mContentType = contentType; 
         
         // Get the content-disposition if we're an HTTP channel.          // Get the content-disposition if we're an HTTP channel.
         nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));          nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
        if (httpChannel) {        if (httpChannel)
            nsXPIDLCString disp;            httpChannel->GetResponseHeader(nsCAutoString("content-disposition"), mContentDisposition);
            httpChannel->GetResponseHeader("content-disposition", getter_Copies(disp)); 
            mContentDisposition = disp; 
        } 
                   
         mPersist->CancelSave();          mPersist->CancelSave();
         PRBool exists;          PRBool exists;

Removed from v.1.27  
changed lines
  Added in v.1.28


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>