<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>227393</bug_id>
          
          <creation_ts>2021-06-25 03:04:56 -0700</creation_ts>
          <short_desc>ResourceTiming `transferSize` implementation should expose revalidation state</short_desc>
          <delta_ts>2021-07-02 03:05:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoav Weiss">yoav</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1772608</commentid>
    <comment_count>0</comment_count>
    <who name="Yoav Weiss">yoav</who>
    <bug_when>2021-06-25 03:04:56 -0700</bug_when>
    <thetext>As discussed on the WebPerf WG call [1], the experimental `transferSize` implementation [2] should align to the spec [3] and well as the outstanding relevant PR [4], and expose:
* The encodedBodySize + 300 for resources that were fetched over the network
* 0 for resources that were fetched from the cache
* 300 for resources that were successfully revalidated over the network, and their body was then delivered from cache.

[1] https://docs.google.com/document/d/10dz_7QM5XCNsGeI63R864lF9gFqlqQD37B4q8Q46LMM/edit?pli=1#heading=h.gkilfdieaqp
[2] https://github.com/WebKit/WebKit/blob/b5cd1015460639460f55ae4b05bc90ff4ea5125e/Source/WebCore/page/PerformanceResourceTiming.cpp#L246
[3] https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-transfersize
[4] https://github.com/w3c/resource-timing/pull/272</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774400</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-02 03:05:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/80074642&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>