<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@apple.com" title="Alex Christensen <achristensen@apple.com>"> <span class="fn">Alex Christensen</span></a>
</span></b>
<pre>Comment on <span class=""><a href="attachment.cgi?id=292632&action=diff" name="attach_292632" title="patch">attachment 292632</a> <a href="attachment.cgi?id=292632&action=edit" title="patch">[details]</a></span>
patch
View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=292632&action=review">https://bugs.webkit.org/attachment.cgi?id=292632&action=review</a>
<span class="quote">> Source/WebKit2/NetworkProcess/NetworkLoad.cpp:298
> +void NetworkLoad::notifyDidReceiveResponse(ResourceResponse&& response, ResponseCompletionHandler&& completionHandler)</span >
Let's just put this in didReceiveResponseNetworkSession with an if statement.
<span class="quote">> Source/WebKit2/NetworkProcess/NetworkLoad.cpp:327
> void NetworkLoad::didCompleteWithError(const ResourceError& error)
> {
> + if (m_throttle) {
> + m_throttle->completionError = error;
> + return;
> + }</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>