<?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>207720</bug_id>
          
          <creation_ts>2020-02-13 14:06:47 -0800</creation_ts>
          <short_desc>Add missing call to completionHandler</short_desc>
          <delta_ts>2020-02-13 16:54:29 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=179641</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Keith Rollin">krollin</reporter>
          <assigned_to name="Keith Rollin">krollin</assigned_to>
          <cc>achristensen</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>japhet</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1618704</commentid>
    <comment_count>0</comment_count>
    <who name="Keith Rollin">krollin</who>
    <bug_when>2020-02-13 14:06:47 -0800</bug_when>
    <thetext>Bug 179641 (r225702) updated SubresourceLoader::willSendRequestInternal with a return call without first calling the completionHandler. Address this by adding the call to the completionHandler.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1618705</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-02-13 14:07:02 -0800</bug_when>
    <thetext>&lt;rdar://problem/59436915&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1618708</commentid>
    <comment_count>2</comment_count>
      <attachid>390686</attachid>
    <who name="Keith Rollin">krollin</who>
    <bug_when>2020-02-13 14:20:19 -0800</bug_when>
    <thetext>Created attachment 390686
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1618751</commentid>
    <comment_count>3</comment_count>
      <attachid>390686</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2020-02-13 15:33:11 -0800</bug_when>
    <thetext>Comment on attachment 390686
Patch

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

&gt; Source/WebCore/loader/SubresourceLoader.cpp:242
&gt; +                return completionHandler(WTFMove(newRequest));

If we reached terminal state, shouldn&apos;t we return completionHandler({ }); to not go through with the redirection?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1618763</commentid>
    <comment_count>4</comment_count>
      <attachid>390686</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-02-13 15:53:42 -0800</bug_when>
    <thetext>Comment on attachment 390686
Patch

Clearing flags on attachment: 390686

Committed r256569: &lt;https://trac.webkit.org/changeset/256569&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1618764</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-02-13 15:53:43 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1618779</commentid>
    <comment_count>6</comment_count>
      <attachid>390686</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-02-13 16:38:17 -0800</bug_when>
    <thetext>Comment on attachment 390686
Patch

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

&gt;&gt; Source/WebCore/loader/SubresourceLoader.cpp:242
&gt;&gt; +                return completionHandler(WTFMove(newRequest));
&gt; 
&gt; If we reached terminal state, shouldn&apos;t we return completionHandler({ }); to not go through with the redirection?

What Keith did seems consistent with other early return cases for error cases in this method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1618782</commentid>
    <comment_count>7</comment_count>
      <attachid>390686</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-02-13 16:43:09 -0800</bug_when>
    <thetext>Comment on attachment 390686
Patch

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

&gt; Source/WebCore/ChangeLog:15
&gt; +        No new tests -- it&apos;s not possible to control execution into the
&gt; +        affected code path.

Seems surprising. Why not? A limitation in our test machinery?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1618786</commentid>
    <comment_count>8</comment_count>
      <attachid>390686</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-02-13 16:54:29 -0800</bug_when>
    <thetext>Comment on attachment 390686
Patch

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

&gt;&gt; Source/WebCore/ChangeLog:15
&gt;&gt; +        affected code path.
&gt; 
&gt; Seems surprising. Why not? A limitation in our test machinery?

If I understand the code correctly, you&apos;d have to cancel the load just at the right time. Then since the load would be cancelled, I don&apos;t think there would be anything to observe from the web point-of-view. Since we fail to call the completion handler, the load simply will be hung on network process side I believe (likely until some timeout is reached), which again, would not be easily observable I believe.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>390686</attachid>
            <date>2020-02-13 14:20:19 -0800</date>
            <delta_ts>2020-02-13 15:53:42 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-207720-20200213142018.patch</filename>
            <type>text/plain</type>
            <size>2032</size>
            <attacher name="Keith Rollin">krollin</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZ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ndpbGxTZW5kUmVxdWVzdGludGVybmFsOiByZWFjaGVkIHRlcm1pbmFs
IHN0YXRlIChmcmFtZSA9ICVwLCBmcmFtZUxvYWRlciA9ICVwLCByZXNvdXJjZUlEID0gJWx1KSIs
IGZyYW1lKCksIGZyYW1lTG9hZGVyKCksIGlkZW50aWZpZXIoKSk7Ci0gICAgICAgICAgICAgICAg
cmV0dXJuOworICAgICAgICAgICAgICAgIHJldHVybiBjb21wbGV0aW9uSGFuZGxlcihXVEZNb3Zl
KG5ld1JlcXVlc3QpKTsKICAgICAgICAgICAgIH0KIAogICAgICAgICAgICAgUkVMRUFTRV9MT0df
SUZfQUxMT1dFRCgid2lsbFNlbmRSZXF1ZXN0aW50ZXJuYWw6IHJlc291cmNlIGxvYWQgY29tcGxl
dGVkIChmcmFtZSA9ICVwLCBmcmFtZUxvYWRlciA9ICVwLCByZXNvdXJjZUlEID0gJWx1KSIsIGZy
YW1lKCksIGZyYW1lTG9hZGVyKCksIGlkZW50aWZpZXIoKSk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>