<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add support for introducing simulated latency in network process"
   href="https://bugs.webkit.org/show_bug.cgi?id=163902#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add support for introducing simulated latency in network process"
   href="https://bugs.webkit.org/show_bug.cgi?id=163902">bug 163902</a>
              from <span class="vcard"><a class="email" href="mailto:achristensen&#64;apple.com" title="Alex Christensen &lt;achristensen&#64;apple.com&gt;"> <span class="fn">Alex Christensen</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=292632&amp;action=diff" name="attach_292632" title="patch">attachment 292632</a> <a href="attachment.cgi?id=292632&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=292632&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=292632&amp;action=review</a>

<span class="quote">&gt; Source/WebKit2/NetworkProcess/NetworkLoad.cpp:298
&gt; +void NetworkLoad::notifyDidReceiveResponse(ResourceResponse&amp;&amp; response, ResponseCompletionHandler&amp;&amp; completionHandler)</span >

Let's just put this in didReceiveResponseNetworkSession with an if statement.

<span class="quote">&gt; Source/WebKit2/NetworkProcess/NetworkLoad.cpp:327
&gt;  void NetworkLoad::didCompleteWithError(const ResourceError&amp; error)
&gt;  {
&gt; +    if (m_throttle) {
&gt; +        m_throttle-&gt;completionError = error;
&gt; +        return;
&gt; +    }</span >

What if there's an error before we receive the response?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>