<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web page doesn't update its loading state when web process becomes suspended if there are pending network requests (XHR)."
href="https://bugs.webkit.org/show_bug.cgi?id=146439#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Web page doesn't update its loading state when web process becomes suspended if there are pending network requests (XHR)."
href="https://bugs.webkit.org/show_bug.cgi?id=146439">bug 146439</a>
from <span class="vcard"><a class="email" href="mailto:yongjun_zhang@apple.com" title="Yongjun Zhang <yongjun_zhang@apple.com>"> <span class="fn">Yongjun Zhang</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=146439#c7">comment #7</a>)
<span class="quote">> Comment on <span class=""><a href="attachment.cgi?id=255810&action=diff" name="attach_255810" title="Patch v2.">attachment 255810</a> <a href="attachment.cgi?id=255810&action=edit" title="Patch v2.">[details]</a></span>
> Patch v2.
>
> I don’t know which state transitions are possible. Is it a concern that the
> outcomes of the following transitions are different?
> Foreground -> Suspended -> Background
> Foreground -> Background</span >
I could be wrong, but based on code inspection and my own test, I didn't find a scenario where the web process could go from Suspended to Background.
<span class="quote">>
> Is it a concern that this transition will fail to restore the state?
> Foreground -> Suspended -> Background -> Suspended -> Foreground
> (because on the second entry into Suspended, m_hasNetworkRequestsOnSuspended
> will change to false)</span >
Again, this ties to whether Suspended -> Background transition is possible.
Thanks for the review! I will fix the typo on commit.</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>