Cannot get network traffic using extensions API
Reported by
nn1436...@gmail.com,
Jan 28 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:51.0) Gecko/20100101 Firefox/51.0 Steps to reproduce the problem: There is no API which allows me to get network traffic for the page. What is the expected behavior? Have such API. If devtools can show traffic, extension should be able to get it too. What went wrong? No API for network traffic. Did this work before? N/A Chrome version: 56 Channel: n/a OS Version: 10.0 Flash Version: Shockwave Flash 24.0 r0
,
Jan 30 2017
,
Jan 30 2017
This looks like out of scope for TE, hence adding the respective label for it to triage further.
,
Jan 30 2017
Devtools attaches to the page as a debugger. Extensions can do it too: see chrome.debugger API documentation [1] and the debugger protocol documentation [2], specifically Network domain that allows extensions get the original network traffic data. [1]: https://developer.chrome.com/extensions/debugger [2]: https://chromedevtools.github.io/debugger-protocol-viewer/
,
Jan 31 2017
chrome.debbuger is not an option since it requires user interaction. I just want a small extension which counts traffic.
,
Jan 31 2017
chrome.debugger requires user interaction? Did you test it?
,
Jan 31 2017
It displays a small notification which is not acceptable for me.
,
Jan 31 2017
This feature request may be considered a duplicate of issue 487422 "WebRequest API: allow extensions to read response body". Star that issue. If it'll be implemented you could easily do what you want.
,
Jan 31 2017
It's not the same. Response body can be unzipped. I want the network traffic, not the size of request/response before compression.
,
Jan 31 2017
Okay, so this issue expands on issue 487422 suggesting that the actually transmitted response size should also be exposed in the webRequest API. I think it's worth mentioning this nice idea in a comment to that main issue.
,
Jan 31 2017
I want also the request size, not only response.
,
Feb 12 2018
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
||||
►
Sign in to add a comment |
||||
Comment 1 by nyerramilli@chromium.org
, Jan 29 2017