Closed
Bug 1471899
Opened 6 years ago
Closed 3 years ago
HAR missing response content size without choosing netmonitor
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: peter, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webpagetest])
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Steps to reproduce: Using the https://github.com/devtools-html/har-export-trigger/ together with FF 61 works great when you have devtools open and chose the netmonitor tab. If the netmonitor tab isn't chosen, the HAR file is (always?) not valid, since it missed content size of one or more requests. Here's a gist with a HAR that misses log.entries[0].response.content.size https://gist.github.com/soulgalore/19f68eeee12f20fce45d1ba1995ff8a7 I tried a couple of different URLs and always get the same result with one or more responses missing the content size.
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0 Build ID: 20180621125625 I tested this issue on Mac OS X 10.13 with Firefox Release 61.0 using the file https://github.com/devtools-html/har-export-trigger/ from description and the STR provided in the link. The following error is displayed in the Browser Console: No matching message handler for the given recipient. MessageChannel.jsm:924 _handleMessage/</< resource://gre/modules/MessageChannel.jsm:924:11 I am assigning a component to this issue in order to involve the development team and get an opinion on this.
Updated•6 years ago
|
Reporter | ||
Comment 2•6 years ago
|
||
Any change this can get a little love? It's not super important since it works by just choosing the tab. If there's another solution (for the future) where you don't need to open the devtools at all, that's more important for me (since it will be cleaner to integrate).
Whiteboard: [webpagetest]
Comment 3•3 years ago
•
|
||
I tested this and it seems to be working for me:
Here is what I've done
- Install
HAR Export Trigger
extension from: https://addons.mozilla.org/en-US/firefox/addon/har-export-trigger/ - Load HAR Test page: http://softwareishard.com/test/harexporttrigger/
- Open DevTools Toolbox - the Network panel doesn't have to be selected
- Reload the page so, some HTTP requests are collected
- Click the
getHar
button on the page - HAR (JSON) text should be available in a
<textarea>
element below the button - Copy paste the JSON to http://softwareishard.com/har/viewer/ and press
Preview
button - The JSON is properly parsed and details rendered on the page.
What am I doing wrong?
Peter, I am happy to fix this. What should I do to reproduce the issue?
Flags: needinfo?(peter)
Reporter | ||
Comment 4•3 years ago
|
||
I've seen that I've disabled choosing the tab in 2-3 years ago in Browsertime, where I added a comment in the code that its not needed anymore, so I guess it somehow got fixed or I was wrong:
https://github.com/sitespeedio/browsertime/blob/main/lib/firefox/webdriver/builder.js#L110-L112
I think you can close this.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•