<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Inconsistencies in main resource load delegates when loading from history"
   href="https://bugs.webkit.org/show_bug.cgi?id=150927#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Inconsistencies in main resource load delegates when loading from history"
   href="https://bugs.webkit.org/show_bug.cgi?id=150927">bug 150927</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=150927#c12">comment #12</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=264862&amp;action=diff" name="attach_264862" title="Updated patch">attachment 264862</a> <a href="attachment.cgi?id=264862&amp;action=edit" title="Updated patch">[details]</a></span>
&gt; Updated patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=264862&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=264862&amp;action=review</a>
&gt; 
&gt; &gt; LayoutTests/ChangeLog:9
&gt; &gt; +        Add test to check that load delegates are the same when loading
&gt; &gt; +        from history with the page cache enabled and disabled.
&gt; 
&gt; Why is this right? There is no loading when restoring a page from page
&gt; cache, so it's not clear to me why delegates should be the same.
&gt; 
&gt; Also, the behavior is different when restoring in that all state is
&gt; preserved.</span >

Also when restoring from page cache there isn't any response form the server nor data received and we call those delegates to notify the API layer about it. So, if we do call the delegates why not being consistent? It doesn't make much sense to me that the load is committed but there's no main resource loading at all. Ideally, from the API layer point of view, restoring from the cache should be transparent, like it is when loading from the disk cache, for example.</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>