<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:yoav&#64;yoav.ws" title="Yoav Weiss &lt;yoav&#64;yoav.ws&gt;"> <span class="fn">Yoav Weiss</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Fix ResourceTiming XHR tests flakiness"
   href="https://bugs.webkit.org/show_bug.cgi?id=158019">bug 158019</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>achristensen&#64;apple.com, apavlov&#64;chromium.org, yoav&#64;yoav.ws
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Fix ResourceTiming XHR tests flakiness"
   href="https://bugs.webkit.org/show_bug.cgi?id=158019#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Fix ResourceTiming XHR tests flakiness"
   href="https://bugs.webkit.org/show_bug.cgi?id=158019">bug 158019</a>
              from <span class="vcard"><a class="email" href="mailto:yoav&#64;yoav.ws" title="Yoav Weiss &lt;yoav&#64;yoav.ws&gt;"> <span class="fn">Yoav Weiss</span></a>
</span></b>
        <pre>This should fix the test flakiness observed in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - REGRESSION (r200887): LayoutTest http/tests/performance/performance-resource-timing-cached-entries.html is flaky"
   href="show_bug.cgi?id=157816">https://bugs.webkit.org/show_bug.cgi?id=157816</a>

It also removes the XHR-specific treatment that I added in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ResourceTiming entries for cached resources and XHR"
   href="show_bug.cgi?id=157669">https://bugs.webkit.org/show_bug.cgi?id=157669</a> as it is not required.

It seems like the ResourceTiming entries are added in CachedResourceLoader::loadDone only after the onload event for the XHR is running. I've opened a related spec issue to see what the correct behavior here should be: <a href="https://github.com/w3c/resource-timing/issues/55">https://github.com/w3c/resource-timing/issues/55</a></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>