<?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>75555</bug_id>
          
          <creation_ts>2012-01-04 09:33:43 -0800</creation_ts>
          <short_desc>Web Inspector: misreported total page size of pages loading resources as data URIs</short_desc>
          <delta_ts>2014-12-12 14:38:18 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://joshuacody.net/public/data-uri-test/index.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Joshua Cody">josh</reporter>
          <assigned_to name="Alexander Pavlov (apavlov)">apavlov</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>mathias</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>529570</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Cody">josh</who>
    <bug_when>2012-01-04 09:33:43 -0800</bug_when>
    <thetext>When embedding a data URI in a CSS file, the file size of said data URI is added as an inline resource in the &quot;Network&quot; tab and to the total weight of the CSS file, thus, it&apos;s counted twice. This is particularly evident in the misreported total page size of pages loading Typekit fonts, which injects a CSS file with fonts represented as data URIs. Thus the file size is say, 102kb, and the inspector reports another 100kb of fonts as inlined resources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>529587</commentid>
    <comment_count>1</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2012-01-04 10:16:17 -0800</bug_when>
    <thetext>Good point! I suspect this is true for any data URL that comes originally as part of another resource. We probially shouldn&apos;t count data URLs in the total since they either are already counted in another resource or were generated by JavaScript after the load.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530266</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Cody">josh</who>
    <bug_when>2012-01-05 07:10:00 -0800</bug_when>
    <thetext>Not sure if I mistyped the title or if it was changed, but this isn&apos;t only an issue with Typekit fonts. The place I first saw it was loading an image via a data URI in CSS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>543002</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2012-01-26 02:53:39 -0800</bug_when>
    <thetext>The proposed straightforward solution is arguable, since deliberate subtraction of inlined data: URI resource sizes may entail unexpected results elsewhere. For example, we might calculate the network speed based on the &quot;host&quot; resource size. It isn&apos;t going to be too reliable if we divide the 2kb CSS resource size (rather than 102kb, as stated in the original post) by the transfer time.

Pavel and other involved folks may have an opinion, too. Please speak up!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>823810</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2013-02-03 03:40:50 -0800</bug_when>
    <thetext>@Joshua Cody: the URL you reference is no longer available. Could you set up a similar test case on a publicly available server?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1055287</commentid>
    <comment_count>5</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-12-12 14:38:18 -0800</bug_when>
    <thetext>Closing as invalid, as this bug pertains to the old inspector UI and/or its tests.
Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>