<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Add resource timing model with timing information"
   href="https://bugs.webkit.org/show_bug.cgi?id=161314">bug 161314</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;">Attachment #287280 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Add resource timing model with timing information"
   href="https://bugs.webkit.org/show_bug.cgi?id=161314#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Add resource timing model with timing information"
   href="https://bugs.webkit.org/show_bug.cgi?id=161314">bug 161314</a>
              from <span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=287280&amp;action=diff" name="attach_287280" title="Patch">attachment 287280</a> <a href="attachment.cgi?id=287280&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=287280&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=287280&amp;action=review</a>

r=me, though please double check with earlier iOS devices to make sure things still work there.

<span class="quote">&gt; Source/WebInspectorUI/ChangeLog:31
&gt; +        Update timing object with info on from response.</span >

Typo: &quot;on from response&quot;

<span class="quote">&gt; Source/WebInspectorUI/UserInterface/Main.html:355
&gt; +    &lt;script src=&quot;Models/ResourceTimingData.js&quot;&gt;&lt;/script&gt;</span >

Style: Alphabetical order. Even though &quot;Resource&quot; uses &quot;ResourceTimingData&quot; the order is fine because neither are actually used until after all scripts have loaded.

<span class="quote">&gt; Source/WebInspectorUI/UserInterface/Models/Resource.js:475
&gt;          this._responseHeadersSize = String(this._statusCode).length + this._statusText.length + 12; // Extra length is for &quot;HTTP/1.1 &quot;, &quot; &quot;, and &quot;\r\n&quot;.</span >

Gosh, just noticed this wouldn't work for HTTP/2. Nothing you need to change.

<span class="quote">&gt; Source/WebInspectorUI/UserInterface/Models/Resource.js:579
&gt; +        this._timingData._responseEnd = elapsedTime || NaN;</span >

Setting a private member like this is sketchy. Normally we would create some public method on ResourceTimingData and call here it. Something like:

    markResponseEndTime(responseEnd)

<span class="quote">&gt; Source/WebInspectorUI/UserInterface/Models/ResourceTimelineRecord.js:55
&gt; -        return this._resource.requestSentTimestamp;
&gt; +        return this._resource.timingData.startTime;</span >

Same thing here.

<span class="quote">&gt; Source/WebInspectorUI/UserInterface/Models/ResourceTimingData.js:68
&gt; +    // Static</span >

Style: Static methods, like this, normally go above the Public block.

<span class="quote">&gt; LayoutTests/http/tests/inspector/network/resource-timing.html:11
&gt; +function resolve(url) {
&gt; +    let a = document.createElement('a');
&gt; +    a.href = url;
&gt; +    return a.href;
&gt; +}</span >

This function doesn't appear to be used. Drop it?

<span class="quote">&gt; LayoutTests/http/tests/inspector/network/resource-timing.html:13
&gt; +function createRequest()
&gt; +{</span >

Nit: My style in tests would be to put this brace on the same line as the function name because it is outside of the test() function. But I may be the only one that uses this style.

<span class="quote">&gt; LayoutTests/http/tests/inspector/network/resource-timing.html:21
&gt; +    let suite = InspectorTest.createAsyncSuite(&quot;ResourceTiming&quot;);</span >

Lets name this after the model object &quot;ResourceTimingData&quot;.</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>