Issue metadata
Sign in to add a comment
|
Incorrect value for encodedDataLength
Reported by
mem...@lenglet.name,
Oct 18 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0 Steps to reproduce the problem: Watch the Chrome WebDevTools protocol and the net-internal logs: 1. Start Chrome with remote protocol opened: `open -a "Google Chrome Canary" --args --remote-debugging-port=9222 http://example.com` 2. Open in an other browser: `open -a "Google Chrome" --args http://localhost:9222/` 3. Select the corresponding page 4. Inspect the webdev tool page and open the network tab 5. Disable the cache 6. Select the Network request entry start with `ws://localhost:9222/devtools/page/` and open the "Frames" tab panel 7. In parallel open in Canary a new tab `chrome://net-internals/#events` What is the expected behavior? The value of the field `frame.params.encodedDataLength` in the `Network.loadingFinished` frame should be 934 bytes: 328 (`frame.params.response.headersText.length` from `Network.responseReceived` frame) + 606 bytes (the response body size) What went wrong? The value of the field `frame.params.encodedDataLength` in the `Network.loadingFinished` frame is equal to 1598 bytes It's the value of headers + unzipped body content (dataLength) Did this work before? N/A Chrome version: 64.0.3242.0 (Build officiel) canary (64 bits) Channel: canary OS Version: OS X 10.12 Flash Version: Shockwave Flash 27.0 r0 - frames_crumbs.log contains few frames of Chrome WebDevTools protocol - net-internal_request.log contains the log entry where the interesting parts are: ------------ ... t=1858 [st=79] HTTP_TRANSACTION_READ_RESPONSE_HEADERS --> HTTP/1.1 200 OK ... ... t=1859 [st=80] URL_REQUEST_FILTERS_SET --> filters = "GZIP" ... t=1860 [st=81] URL_REQUEST_JOB_BYTES_READ --> byte_count = 606 t=1860 [st=81] URL_REQUEST_JOB_FILTERED_BYTES_READ --> byte_count = 1270 ... ------------ - WebDevTools_network.png is a screenshot of WebDevTools network tab where the result are displayed incorrectly, because the WebDevTools protocol provide the wrong information
,
Oct 18 2017
,
Oct 18 2017
To be exact we should also add the "empty line" https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_message: The value of the field `frame.params.encodedDataLength` in the `Network.loadingFinished` frame should be 934 bytes: 328 (`frame.params.response.headersText.length` from `Network.responseReceived` frame) + 2 ("\r\n") + 606 bytes (the response body size)
,
Oct 23 2017
I think this is another manifestation of issue 763700 . |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by mem...@lenglet.name
, Oct 18 2017