<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&#64;apple.com" title="Yongjun Zhang &lt;yongjun_zhang&#64;apple.com&gt;"> <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">&gt; Comment on <span class=""><a href="attachment.cgi?id=255810&amp;action=diff" name="attach_255810" title="Patch v2.">attachment 255810</a> <a href="attachment.cgi?id=255810&amp;action=edit" title="Patch v2.">[details]</a></span>
&gt; Patch v2.
&gt; 
&gt; I don’t know which state transitions are possible. Is it a concern that the
&gt; outcomes of the following transitions are different?
&gt; Foreground -&gt; Suspended -&gt; Background
&gt; Foreground -&gt; 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">&gt; 
&gt; Is it a concern that this transition will fail to restore the state?
&gt; Foreground -&gt; Suspended -&gt; Background -&gt; Suspended -&gt; Foreground
&gt; (because on the second entry into Suspended, m_hasNetworkRequestsOnSuspended
&gt; will change to false)</span >

Again, this ties to whether Suspended -&gt; 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>