Closed
Bug 731318
Opened 13 years ago
Closed 10 years ago
Display response size before and after content decoding
Categories
(DevTools :: Netmonitor, defect)
DevTools
Netmonitor
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 38
People
(Reporter: msucan, Assigned: jryans)
References
Details
Attachments
(2 files, 1 obsolete file)
34.56 KB,
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
4.25 KB,
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
Another problem I bumped into this weekend with web app deployment and network logging: we need to display the response size.
Currently we display the reported Content-Length header coming from the server response, but if the response doesn't include the header, then the web developer has no way to check the response size.
Beyond that I needed to be able to tell the difference between the response size before content decoding and after (if there's gzip or deflate encoding).
Currently Dragonfly and Web Inspector display no size information if Content-Length is missing (or they don't do so in an obvious manner - I didn't find the values). Firebug displays the response body size before decoding, but it doesn't tell the user clearly if the value is before or after.
Reporter | ||
Comment 1•12 years ago
|
||
We now display the response size in the new netmonitor, but we do not say anything about content encoding.
Victor, how is the response size determined? Before or after decoding?
Component: Developer Tools: Console → Developer Tools: Netmonitor
Comment 2•12 years ago
|
||
(In reply to Mihai Sucan [:msucan] from comment #1)
> We now display the response size in the new netmonitor, but we do not say
> anything about content encoding.
>
> Victor, how is the response size determined? Before or after decoding?
I'm using the contentSize property of a responseContent packet.
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Victor Porof [:vp] from comment #2)
> (In reply to Mihai Sucan [:msucan] from comment #1)
> > We now display the response size in the new netmonitor, but we do not say
> > anything about content encoding.
> >
> > Victor, how is the response size determined? Before or after decoding?
>
> I'm using the contentSize property of a responseContent packet.
Hmm, this sounds like it is after decoding. We need to investigate this more.
Summary: Network panel needs to display response size → Display response size before and after content decoding
Updated•12 years ago
|
Priority: -- → P3
Comment 6•11 years ago
|
||
I wrote a bug report, then found this one, so I'll just paste it here and cancel the report:
Title:
------
Network monitor's "Size" column does not reflect gzipped size.
Body:
-----
The "Size" column in the Network Monitor does not take into consideration assets that are gzipped. Instead the size displayed is the actual size. "Size" should reflect the size of the asset coming downstream, not the actual size of the file. This is important for understanding the performance aspects of a site. For reference, both Firebug and Chrome DevTools do this.
Comment 10•11 years ago
|
||
This has been duped several times and is now also a pretty popular suggestion on uservoice:
http://ffdevtools.uservoice.com/forums/246087-firefox-developer-tools-ideas/suggestions/5896352-show-compressed-and-uncompressed-size-of-http-resp
( I've duped several feedback items into that one, so the otes there under-represent the interest :( )
Please consider bumping the priority; I also wonder if this could be a mentored bug.
Priority: P3 → --
Assignee | ||
Comment 11•10 years ago
|
||
Victor, does seem like generally the right idea?
Still needs:
* Hide column (or something) for older servers
* Tests
Comment 12•10 years ago
|
||
Comment on attachment 8531943 [details] [diff] [review]
Show transferred size in Net Monitor
Review of attachment 8531943 [details] [diff] [review]:
-----------------------------------------------------------------
Nice! r+ with test! Hiding columns can be done in a followup.
Attachment #8531943 -
Flags: feedback?(vporof) → feedback+
Assignee | ||
Comment 13•10 years ago
|
||
Hides columns when server support is missing, and adds tests.
Try: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=8beb93dbacd8
Attachment #8531943 -
Attachment is obsolete: true
Attachment #8532441 -
Flags: review?(vporof)
Comment 14•10 years ago
|
||
Comment on attachment 8532441 [details] [diff] [review]
Show transferred size in Net Monitor (v2)
Review of attachment 8532441 [details] [diff] [review]:
-----------------------------------------------------------------
r+ with issue below fixed.
::: browser/devtools/netmonitor/netmonitor-view.js
@@ +419,5 @@
> +
> + if (!NetMonitorController.supportsTransferredResponseSize) {
> + $("#requests-menu-transferred-header-box").hidden = true;
> + $("#requests-menu-item-template .requests-menu-transferred").hidden = true;
> + }
What happens after a navigation to a server that supports transferred response size? Are the columns permanently hidden in that case? How about hiding those does by default in xul, and then altering their visibility on tab navigation?
Attachment #8532441 -
Flags: review?(vporof) → review+
Comment 15•10 years ago
|
||
(In reply to Victor Porof [:vporof][:vp] from comment #14)
> Comment on attachment 8532441 [details] [diff] [review]
> Show transferred size in Net Monitor (v2)
>
Oh, now I realize that by server you mean devtools server. Land away!
Assignee | ||
Comment 16•10 years ago
|
||
Fixed timeline-ticks test issue.
Try: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=f4ecb288e283
Assignee | ||
Comment 17•10 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Mochitest-e10s-devtools was failing with this patch, so backed out in https://hg.mozilla.org/integration/fx-team/rev/22eb2228358f
https://treeherder.mozilla.org/ui/logviewer.html#?job_id=1386853&repo=fx-team
Flags: needinfo?(jryans)
Assignee | ||
Comment 19•10 years ago
|
||
(In reply to Wes Kocher (:KWierso) from comment #18)
> Mochitest-e10s-devtools was failing with this patch, so backed out in
> https://hg.mozilla.org/integration/fx-team/rev/22eb2228358f
>
> https://treeherder.mozilla.org/ui/logviewer.html#?job_id=1386853&repo=fx-team
*Shakes fist at e10s*! Thanks for the backout.
Might be a little while before I can get back to this.
Flags: needinfo?(jryans)
Assignee | ||
Comment 20•10 years ago
|
||
For e10s, we need to preserve the original |notificationCallbacks| on the channel, so that other interfaces like nsILoadContext are still accessible. So, I hold onto the original one and forward interface requests we can't respond to.
I'll fold this into the previous patch before landing.
Try (w/ e10s too): https://treeherder.mozilla.org/#/jobs?repo=try&revision=80c4614b74a5
Attachment #8534586 -
Flags: review?(vporof)
Assignee | ||
Updated•10 years ago
|
Attachment #8534586 -
Attachment description: 0002-Bug-731318-Transferred-size-for-e10s-too.-r-vporof.patch → Transferred size for e10s too
Comment 21•10 years ago
|
||
Comment on attachment 8534586 [details] [diff] [review]
Transferred size for e10s too
Review of attachment 8534586 [details] [diff] [review]:
-----------------------------------------------------------------
I think I understand this code.
Attachment #8534586 -
Flags: review?(vporof) → review+
Assignee | ||
Comment 22•10 years ago
|
||
Fixed debug build failures, green try: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=ef6f0ccfe296
Pushed combined patch: https://hg.mozilla.org/integration/fx-team/rev/455a5366c877
Comment 23•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 37
Assignee | ||
Comment 25•10 years ago
|
||
I've backed out this bug, as it exposes latent networking issues (see bug 1116867). Will land again when that is resolved.
remote: https://hg.mozilla.org/integration/fx-team/rev/8fe5a1d4052e
remote: https://hg.mozilla.org/integration/fx-team/rev/6174f981f675
Assignee | ||
Comment 26•10 years ago
|
||
Assignee | ||
Comment 27•10 years ago
|
||
Try looks good. Hopefully this can stay this time!
https://hg.mozilla.org/integration/fx-team/rev/2d8d90eaab6e
Whiteboard: [fixed-in-fx-team]
Comment 28•10 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Updated•10 years ago
|
Target Milestone: Firefox 37 → Firefox 38
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•