<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>137239</bug_id>
          
          <creation_ts>2014-09-29 16:22:24 -0700</creation_ts>
          <short_desc>REGRESSION (r173272): Crash in ResourceResponse::platformSuggestedFilename() when called on the null response</short_desc>
          <delta_ts>2014-10-02 17:37:58 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to>mitz</assigned_to>
          <cc>ap</cc>
    
    <cc>koivisto</cc>
    
    <cc>psolanki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1038104</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2014-09-29 16:22:24 -0700</bug_when>
    <thetext>Networking crashed in ResourceResponse::platformSuggestedFilename(). Here’s the top of the backtrace

* thread #1: tid = 0x299351, 0x000000010818463b CFNetwork`URLResponse::createFilenameFromResponseHeaders() + 7, queue = &apos;com.apple.main-thread&apos;, stop reason = EXC_BAD_ACCESS (code=1, address=0x60)
    frame #0: 0x000000010818463b CFNetwork`URLResponse::createFilenameFromResponseHeaders() + 7
    frame #1: 0x00000001081846a0 CFNetwork`URLResponse::copySuggestedFilename() + 42
  * frame #2: 0x000000010f93ed2e WebCore`WebCore::ResourceResponse::platformSuggestedFilename(this=0x00007fff58e577b8) const + 46 at ResourceResponseCFNet.cpp:123
    frame #3: 0x000000010f93ab5c WebCore`WebCore::ResourceResponseBase::suggestedFilename(this=0x00007fff58e577b8) const + 28 at ResourceResponseBase.cpp:225
    frame #4: 0x000000010f93d249 WebCore`WebCore::ResourceResponseBase::compare(a=0x00007fff58e577b8, b=0x00007f89bc00c290) + 313 at ResourceResponseBase.cpp:577
    frame #5: 0x000000010de41e5d WebCore`WebCore::operator==(a=0x00007fff58e577b8, b=0x00007f89bc00c290) + 29 at ResourceResponseBase.h:196
    frame #6: 0x000000010de41dcd WebCore`WebCore::operator!=(a=0x00007fff58e577b8, b=0x00007f89bc00c290) + 29 at ResourceResponseBase.h:197
    frame #7: 0x000000010de41be8 WebCore`WebCore::AuthenticationChallengeBase::compare(a=0x00007fff58e57760, b=0x00007f89bc00c238) + 328 at AuthenticationChallengeBase.cpp:102
    frame #8: 0x000000010f91c74d WebCore`WebCore::operator==(a=0x00007fff58e57760, b=0x00007f89bc00c238) + 29 at AuthenticationChallengeBase.h:65
    frame #9: 0x000000010f919f5d WebCore`WebCore::operator!=(a=0x00007fff58e57760, b=0x00007f89bc00c238) + 29 at AuthenticationChallengeBase.h:66
    frame #10: 0x000000010f918370 WebCore`WebCore::ResourceHandle::receivedCancellation(this=0x00007f89bb0101b0, 

The this object in frame #2 is the null ResourceResponse.

This is new in http://trac.webkit.org/r173272, the fix for bug 136534.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1038233</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2014-09-30 09:42:38 -0700</bug_when>
    <thetext>This is getting in the way of working with anything that requires authentication. Can it be easily fixed or should r173272 be reverted in the mean time?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1039055</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2014-10-02 17:06:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/18531395&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1039062</commentid>
    <comment_count>3</comment_count>
      <attachid>239161</attachid>
    <who name="">mitz</who>
    <bug_when>2014-10-02 17:21:00 -0700</bug_when>
    <thetext>Created attachment 239161
Add a null check</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1039064</commentid>
    <comment_count>4</comment_count>
      <attachid>239161</attachid>
    <who name="Pratik Solanki">psolanki</who>
    <bug_when>2014-10-02 17:22:32 -0700</bug_when>
    <thetext>Comment on attachment 239161
Add a null check

View in context: https://bugs.webkit.org/attachment.cgi?id=239161&amp;action=review

&gt; Source/WebCore/ChangeLog:4
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=137239

Please add the radar link as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1039069</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2014-10-02 17:34:38 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 239161 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=239161&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:4
&gt; &gt; +        https://bugs.webkit.org/show_bug.cgi?id=137239
&gt; 
&gt; Please add the radar link as well.

Radar link is there in the line above the bugs.webkit.org URL. Thanks for the review!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1039071</commentid>
    <comment_count>6</comment_count>
      <attachid>239161</attachid>
    <who name="Pratik Solanki">psolanki</who>
    <bug_when>2014-10-02 17:36:42 -0700</bug_when>
    <thetext>Comment on attachment 239161
Add a null check

View in context: https://bugs.webkit.org/attachment.cgi?id=239161&amp;action=review

&gt;&gt;&gt; Source/WebCore/ChangeLog:4
&gt;&gt;&gt; +        https://bugs.webkit.org/show_bug.cgi?id=137239
&gt;&gt; 
&gt;&gt; Please add the radar link as well.
&gt; 
&gt; Radar link is there in the line above the bugs.webkit.org URL. Thanks for the review!

Oh wow. How did I miss that? So used to seeing 3 lines that I assumed the radar link wasn&apos;t there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1039072</commentid>
    <comment_count>7</comment_count>
    <who name="">mitz</who>
    <bug_when>2014-10-02 17:37:58 -0700</bug_when>
    <thetext>Fixed in &lt;http://trac.webkit.org/r174252&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>239161</attachid>
            <date>2014-10-02 17:21:00 -0700</date>
            <delta_ts>2014-10-02 17:36:42 -0700</delta_ts>
            <desc>Add a null check</desc>
            <filename>bug-137239-20141002172101.patch</filename>
            <type>text/plain</type>
            <size>1441</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE3NDI1MCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBACisyMDE0LTEwLTAyICBEYW4gQmVy
bnN0ZWluICA8bWl0ekBhcHBsZS5jb20+CisKKyAgICAgICAgPHJkYXI6Ly9wcm9ibGVtLzE4NTMx
Mzk1PiBSRUdSRVNTSU9OIChyMTczMjcyKTogQ3Jhc2ggaW4gUmVzb3VyY2VSZXNwb25zZTo6cGxh
dGZvcm1TdWdnZXN0ZWRGaWxlbmFtZSgpIHdoZW4gY2FsbGVkIG9uIHRoZSBudWxsIHJlc3BvbnNl
CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMzcyMzkK
KworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9P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gUmV0YWluUHRyPENGU3RyaW5n
UmVmPiBzdWdnZXN0ZWRGaWxlbmFtZSA9IGFkb3B0Q0YoQ0ZVUkxSZXNwb25zZUNvcHlTdWdnZXN0
ZWRGaWxlbmFtZShtX2NmUmVzcG9uc2UuZ2V0KCkpKTsKICAgICByZXR1cm4gc3VnZ2VzdGVkRmls
ZW5hbWUuZ2V0KCk7CiB9Cg==
</data>
<flag name="review"
          id="263871"
          type_id="1"
          status="+"
          setter="psolanki"
    />
          </attachment>
      

    </bug>

</bugzilla>