New issue
Advanced search Search tips

Issue 686474 link

Starred by 4 users

Issue metadata

Status: Archived
Owner: ----
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Cannot get network traffic using extensions API

Reported by nn1436...@gmail.com, Jan 28 2017

Issue description

UserAgent: 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
 
Labels: Needs-Triage-M56

Comment 2 by tkent@chromium.org, Jan 30 2017

Components: -Blink Platform>Extensions>API
Cc: rbasuvula@chromium.org
Labels: TE-NeedsTriageHelp
This looks like out of scope for TE, hence adding the respective label for it to  triage further.

Comment 4 by woxxom@gmail.com, 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/

Comment 5 by nn1436...@gmail.com, Jan 31 2017

chrome.debbuger is not an option since it requires user interaction.
I just want a small extension which counts traffic.
chrome.debugger requires user interaction? Did you test it?

Comment 7 by nn1436...@gmail.com, Jan 31 2017

It displays a small notification which is not acceptable for me.

Comment 8 by woxxom@gmail.com, 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.

Comment 9 by nn1436...@gmail.com, 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.

Comment 10 by woxxom@gmail.com, 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. 
I want also the request size, not only response.
Project Member

Comment 12 by sheriffbot@chromium.org, Feb 12 2018

Status: Archived (was: Unconfirmed)
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