New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 698905 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

DevTools should not send X-Devtools-Emulate-Network-Conditions-Client-Id header

Reported by anilka...@gmail.com, Mar 7 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. Use DevTools API (json or ws endpoint) to load https://httpbin.org/get (which just emits the request headers)

2. Check the request headers for the presence of X-Devtools-Emulate-Network-Conditions-Client-Id

What is the expected behavior?
X-Devtools-Emulate-Network-Conditions-Client-Id header shouldn't be sent, and not be visible in the httpbin test above

What went wrong?
X-Devtools-Emulate-Network-Conditions-Client-Id header is sent, and it's visible in the httpbin test above

Did this work before? N/A 

Chrome version: 57.0.2987.88  Channel: beta
OS Version: Ubuntu 16.04.1 LTS
Flash Version: 

Seems like this issue is related to past one: #395966

 
Labels: Needs-Triage-M57
Labels: -Needs-Triage-M57 TE-NeedsTriageHelp
This issue seems to be out of TE-scope. Hence, marking label TE-NeedsTriageHelp for further investigation.

Thanks...!!
Cc: dgozman@chromium.org
Owner: allada@chromium.org
Status: Assigned (was: Unconfirmed)
Looking at https://bugs.chromium.org/p/chromium/issues/detail?id=395966#c27 it appears this is still an open issue. Is that right, dgozman, allada?
Labels: Needs-Feedback
Do you use Chrome or Content shell? I think Chrome should not do this. When I test manually in Chrome with DevTools open, I don't see the header in question.
@dgozman: I tested it on Ubuntu Linux and Chrome with --headless argument or the headless_shell, via CDP ToT.
Cc: alexclarke@chromium.org
Labels: -Needs-Feedback Proj-Headless
Alex, could this be headless-specific? Do we run the code in DevToolsNetworkTransaction to remove the headers there?
Cc: -alexclarke@chromium.org
Owner: alexclarke@chromium.org
Looks like Headless isn't removing this header and it should.  I'll get this fixed.
Status: Fixed (was: Assigned)
That should do it.
Thanks guys! I'm guessing this has made it to the tip-of-tree, so I can probably use a dev/canary channel build to test it out?
According to https://omahaproxy.appspot.com/ this made it into 59.0.3041.0

Sign in to add a comment