<?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>124367</bug_id>
          
          <creation_ts>2013-11-14 09:29:50 -0800</creation_ts>
          <short_desc>[ASAN] WebKit2: Remove calls to dead DownloadAuthenticationClient code</short_desc>
          <delta_ts>2013-11-18 11:42:10 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Farler">dfarler</reporter>
          <assigned_to name="David Farler">dfarler</assigned_to>
          <cc>andersca</cc>
    
    <cc>beidson</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>950718</commentid>
    <comment_count>0</comment_count>
    <who name="David Farler">dfarler</who>
    <bug_when>2013-11-14 09:29:50 -0800</bug_when>
    <thetext>To unblock ASAN builds, remove the following dead calls:

Undefined symbols for architecture x86_64:
  &quot;WebKit::Download::cancelAuthenticationChallenge(WebCore::AuthenticationChallenge const&amp;)&quot;, referenced from:
      WebKit::DownloadAuthenticationClient::receivedCancellation(WebCore::AuthenticationChallenge const&amp;) in DownloadAuthenticationClient.o
  &quot;WebKit::Download::continueWithoutCredential(WebCore::AuthenticationChallenge const&amp;)&quot;, referenced from:
      WebKit::DownloadAuthenticationClient::receivedRequestToContinueWithoutCredential(WebCore::AuthenticationChallenge const&amp;) in DownloadAuthenticationClient.o
  &quot;WebKit::Download::useCredential(WebCore::AuthenticationChallenge const&amp;, WebCore::Credential const&amp;)&quot;, referenced from:
      WebKit::DownloadAuthenticationClient::receivedCredential(WebCore::AuthenticationChallenge const&amp;, WebCore::Credential const&amp;) in DownloadAuthenticationClient.o

I believe we’ve seen this before but the solution was to just remove the dead code altogether. To speed things along, I’d like to just remove the calls to nowhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>950732</commentid>
    <comment_count>1</comment_count>
      <attachid>216954</attachid>
    <who name="David Farler">dfarler</who>
    <bug_when>2013-11-14 09:50:18 -0800</bug_when>
    <thetext>Created attachment 216954
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951012</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2013-11-15 02:53:45 -0800</bug_when>
    <thetext>Why aren&apos;t these methods implemented in Source/WebKit2/Shared/Downloads/mac/DownloadMac.mm?

Odd, all three are only implemented in Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp currently…as notImplemented().  LOL!

Seems like we need to pull this thread a little more to see what other code can simply be removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951066</commentid>
    <comment_count>3</comment_count>
    <who name="David Farler">dfarler</who>
    <bug_when>2013-11-15 07:41:40 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Why aren&apos;t these methods implemented in Source/WebKit2/Shared/Downloads/mac/DownloadMac.mm?
&gt; 
&gt; Odd, all three are only implemented in Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp currently…as notImplemented().  LOL!
&gt; 
&gt; Seems like we need to pull this thread a little more to see what other code can simply be removed.

I had filed this to originally unblock the builds:
https://bugs.webkit.org/show_bug.cgi?id=119667

But since the stale code is more widespread, we can use that to explore removing more. I just wanted to clean up the patched codebase on the ASAN builder to keep builds going.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951239</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2013-11-15 15:35:36 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Why aren&apos;t these methods implemented in Source/WebKit2/Shared/Downloads/mac/DownloadMac.mm?
&gt; &gt; 
&gt; &gt; Odd, all three are only implemented in Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp currently…as notImplemented().  LOL!
&gt; &gt; 
&gt; &gt; Seems like we need to pull this thread a little more to see what other code can simply be removed.
&gt; 
&gt; I had filed this to originally unblock the builds:
&gt; https://bugs.webkit.org/show_bug.cgi?id=119667
&gt; 
&gt; But since the stale code is more widespread, we can use that to explore removing more. I just wanted to clean up the patched codebase on the ASAN builder to keep builds going.

Okay, makes sense to me.  Need a WebKit2 reviewer to stamp this, though, even though it&apos;s not an architectural change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951284</commentid>
    <comment_count>5</comment_count>
      <attachid>216954</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-11-15 17:01:22 -0800</bug_when>
    <thetext>Comment on attachment 216954
Patch

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

Anders may know more about the history of this code.

It would be very much worth it to delete as much as possible.

&gt; Source/WebKit2/Shared/Downloads/DownloadAuthenticationClient.cpp:-45
&gt; -    if (!m_download)
&gt; -        return;
&gt; -    m_download-&gt;useCredential(challenge, credential);

Please add a fixme referencing https://bugs.webkit.org/show_bug.cgi?id=119667

// FIXME (119667): This can probably be just removed.

&gt; Source/WebKit2/Shared/Downloads/DownloadAuthenticationClient.cpp:-52
&gt; -    if (!m_download)
&gt; -        return;
&gt; -    m_download-&gt;continueWithoutCredential(challenge);

Ditto.

&gt; Source/WebKit2/Shared/Downloads/DownloadAuthenticationClient.cpp:-59
&gt; -    if (!m_download)
&gt; -        return;
&gt; -    m_download-&gt;cancelAuthenticationChallenge(challenge);

Ditto.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951721</commentid>
    <comment_count>6</comment_count>
    <who name="David Farler">dfarler</who>
    <bug_when>2013-11-18 11:42:10 -0800</bug_when>
    <thetext>Committed r159441: &lt;http://trac.webkit.org/changeset/159441&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>216954</attachid>
            <date>2013-11-14 09:50:18 -0800</date>
            <delta_ts>2013-11-15 17:01:22 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-124367-20131114095017.patch</filename>
            <type>text/plain</type>
            <size>2421</size>
            <attacher name="David Farler">dfarler</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTU5Mjg4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggYjAzNGJhYWE3NDQxODM0
ODAzM2Q2MWU0ZWM4ZTM4ZTU2NGQ0NzA0OC4uODgzZGJlODZlOGMyNjA2MmFjZTAxMTFlNDI2NzFj
ODE4ZDg2ZmIxMyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE5IEBACisyMDEzLTExLTE0ICBEYXZp
ZCBGYXJsZXIgIDxkZmFybGVyQGFwcGxlLmNvbT4KKworICAgICAgICBbQVNBTl0gV2ViS2l0Mjog
UmVtb3ZlIGNhbGxzIHRvIGRlYWQgRG93bmxvYWRBdXRoZW50aWNhdGlvbkNsaWVudCBjb2RlCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMjQzNjcKKwor
IC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VudGljYXRpb25DaGFsbGVuZ2UmIGNoYWxsZW5nZSkKIHsKLSAgICBpZiAoIW1fZG93
bmxvYWQpCi0gICAgICAgIHJldHVybjsKLSAgICBtX2Rvd25sb2FkLT5jb250aW51ZVdpdGhvdXRD
cmVkZW50aWFsKGNoYWxsZW5nZSk7CiB9CiAKIHZvaWQgRG93bmxvYWRBdXRoZW50aWNhdGlvbkNs
aWVudDo6cmVjZWl2ZWRDYW5jZWxsYXRpb24oY29uc3QgQXV0aGVudGljYXRpb25DaGFsbGVuZ2Um
IGNoYWxsZW5nZSkKIHsKLSAgICBpZiAoIW1fZG93bmxvYWQpCi0gICAgICAgIHJldHVybjsKLSAg
ICBtX2Rvd25sb2FkLT5jYW5jZWxBdXRoZW50aWNhdGlvbkNoYWxsZW5nZShjaGFsbGVuZ2UpOwog
fQogCiB9IC8vIG5hbWVzcGFjZSBXZWJLaXQK
</data>
<flag name="review"
          id="240008"
          type_id="1"
          status="+"
          setter="ap"
    />
    <flag name="commit-queue"
          id="240183"
          type_id="3"
          status="-"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>