DevTools: requestIntercepted and requestWillBeSent disagree on Referer header
Reported by
sebast...@madumbo.com,
Oct 23 2017
|
||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Steps to reproduce the problem: 1. Connect to chrome instance with devtools protocol. 2. Set Network.setRequestInterception(true) (https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-setRequestInterception) 3. Watch the requests with Network.continueInterceptedRequest, they lost their Referer header. What is the expected behavior? Requests should have the Referer header. What went wrong? You can find more informations on the corresponding issue in Puppeteer https://github.com/GoogleChrome/puppeteer/issues/469. Some explanations are given there: https://github.com/GoogleChrome/puppeteer/issues/469#issuecomment-324171034 Did this work before? N/A Chrome version: 61.0.3163.100 Channel: stable OS Version: 16.04 Flash Version:
,
Dec 1 2017
Issue is not specific to Linux, I'm seeing same issue on Windows 7
,
Jan 22 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/2388c8d227803fd042be5290edd5a57b9898e0bf commit 2388c8d227803fd042be5290edd5a57b9898e0bf Author: Andrey Kosyakov <caseq@chromium.org> Date: Mon Jan 22 20:02:35 2018 DevTools: fix Referer header handling in net interceptor Bug: 777392 Change-Id: Ia5b000dcdb7ed78146a063a19ed982f01a83232f Reviewed-on: https://chromium-review.googlesource.com/877509 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Reviewed-by: Andrey Lushnikov <lushnikov@chromium.org> Commit-Queue: Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/master@{#530961} [modify] https://crrev.com/2388c8d227803fd042be5290edd5a57b9898e0bf/content/browser/devtools/devtools_url_interceptor_request_job.cc [modify] https://crrev.com/2388c8d227803fd042be5290edd5a57b9898e0bf/content/browser/devtools/devtools_url_interceptor_request_job.h [modify] https://crrev.com/2388c8d227803fd042be5290edd5a57b9898e0bf/content/browser/devtools/protocol/network_handler.cc [add] https://crrev.com/2388c8d227803fd042be5290edd5a57b9898e0bf/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-referer-expected.txt [add] https://crrev.com/2388c8d227803fd042be5290edd5a57b9898e0bf/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-referer.js
,
Feb 7 2018
|
||
►
Sign in to add a comment |
||
Comment 1 by dgozman@chromium.org
, Oct 23 2017Status: Assigned (was: Unconfirmed)
Summary: DevTools: requestIntercepted and requestWillBeSent disagree on Referer header (was: DevTools protocol interception setRequestInterception strips the Referer header.)