<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Resource Timing: Make PerformanceEntryList a sequence as per spec"
   href="https://bugs.webkit.org/show_bug.cgi?id=160963#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Resource Timing: Make PerformanceEntryList a sequence as per spec"
   href="https://bugs.webkit.org/show_bug.cgi?id=160963">bug 160963</a>
              from <span class="vcard"><a class="email" href="mailto:johan_jensen&#64;apple.com" title="Johan K. Jensen &lt;johan_jensen&#64;apple.com&gt;"> <span class="fn">Johan K. Jensen</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=160963#c2">comment #2</a>)
<span class="quote">&gt; &gt; Source/WebCore/page/Performance.cpp:92
&gt; &gt; -RefPtr&lt;PerformanceEntryList&gt; Performance::getEntries() const
&gt; &gt; +Vector&lt;RefPtr&lt;PerformanceEntry&gt;&gt; Performance::getEntries() const
&gt; 
&gt; Could these be Ref&lt;PerformanceEntry&gt;s?</span >
Some of the User Timing code uses PassRefPtr, so it should probably be updated in another patch.
<span class="quote">&gt; 
&gt; &gt; Source/WebCore/page/Performance.cpp:105
&gt; &gt; +    std::sort(entries.begin(), entries.end(), PerformanceEntry::startTimeCompareLessThan);
&gt; 
&gt; do we have to sort everything?</span >
Yes, per the spec we should sort them by start time. Entries gets added according to responseEnd.

(In reply to <a href="show_bug.cgi?id=160963#c3">comment #3</a>)
<span class="quote">&gt; &gt; LayoutTests/http/tests/performance/performance-resource-timing-entries-iterable-expected.txt:1
&gt; &gt; +PASS resources is an instance of Array
&gt; 
&gt; Would be nice if this test had a description.</span >
Ah, yeah.

(In reply to <a href="show_bug.cgi?id=160963#c4">comment #4</a>)
<span class="quote">&gt; &gt; Source/WebCore/page/Performance.h:67
&gt; &gt; +    Vector&lt;RefPtr&lt;PerformanceEntry&gt;&gt; getEntriesByType(const String&amp; entryType);
&gt; 
&gt; Why is this not const?</span >
Hm... Don’t see any reason why it isn’t.</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>