WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
75555
Web Inspector: misreported total page size of pages loading resources as data URIs
https://bugs.webkit.org/show_bug.cgi?id=75555
Summary
Web Inspector: misreported total page size of pages loading resources as data...
Joshua Cody
Reported
2012-01-04 09:33:43 PST
When embedding a data URI in a CSS file, the file size of said data URI is added as an inline resource in the "Network" tab and to the total weight of the CSS file, thus, it'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.
Attachments
Add attachment
proposed patch, testcase, etc.
Timothy Hatcher
Comment 1
2012-01-04 10:16:17 PST
Good point! I suspect this is true for any data URL that comes originally as part of another resource. We probially shouldn't count data URLs in the total since they either are already counted in another resource or were generated by JavaScript after the load.
Joshua Cody
Comment 2
2012-01-05 07:10:00 PST
Not sure if I mistyped the title or if it was changed, but this isn't only an issue with Typekit fonts. The place I first saw it was loading an image via a data URI in CSS.
Alexander Pavlov (apavlov)
Comment 3
2012-01-26 02:53:39 PST
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 "host" resource size. It isn'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!
Alexander Pavlov (apavlov)
Comment 4
2013-02-03 03:40:50 PST
@Joshua Cody: the URL you reference is no longer available. Could you set up a similar test case on a publicly available server?
Brian Burg
Comment 5
2014-12-12 14:38:18 PST
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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug