Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Issue 615413002: [ServiceWorker] Don't pass DevTools related HTTP headers to the ServiceWorker (Closed)

Created:
6 years, 2 months ago by horo
Modified:
6 years, 2 months ago
Reviewers:
falken, eustas, vsevik
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, dmurph
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[ServiceWorker] Don't pass DevTools related HTTP headers to the ServiceWorker "X-DevTools-Request-Initiator" and "X-DevTools-Emulate-Network-Conditions-Client-Id" HTTP headers may be set by InspectorResourceAgent when the inspector window is open. This headers are removed by DevToolsNetworkTransaction before sending the request to the network. But when the request passed to the ServiceWorker these headers are not removed. This may cause accidental problems. BUG=419318 Committed: https://crrev.com/9accc09a59b1b5e6a2b40d8dace0a47e16ba4a12 Cr-Commit-Position: refs/heads/master@{#297807}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : incorporated falken's comment #

Total comments: 2

Patch Set 3 : remove space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
M chrome/browser/devtools/devtools_network_transaction.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 23 (7 generated)
horo
falken@ Could you please review this?
6 years, 2 months ago (2014-10-01 11:20:41 UTC) #3
falken
I'm not sure about this. I feel devtools should remove the header, not SW. Why ...
6 years, 2 months ago (2014-10-02 03:54:46 UTC) #4
horo
> I'm not sure about this. I feel devtools should remove the header, not SW. ...
6 years, 2 months ago (2014-10-02 04:52:15 UTC) #5
falken
Ah, that makes more sense now that I see the header is added by InspectorResourceAgent.cpp. ...
6 years, 2 months ago (2014-10-02 05:22:52 UTC) #6
horo
vsevik@ Could you please review this?
6 years, 2 months ago (2014-10-02 06:32:48 UTC) #8
horo
https://codereview.chromium.org/615413002/diff/40001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/615413002/diff/40001/content/browser/service_worker/service_worker_url_request_job.cc#newcode36 content/browser/service_worker/service_worker_url_request_job.cc:36: // kDevToolsEmulateNetworkConditionsClient Id defined in On 2014/10/02 05:22:52, falken ...
6 years, 2 months ago (2014-10-02 06:33:05 UTC) #9
vsevik
eustas@, could you please take a look?
6 years, 2 months ago (2014-10-02 08:07:40 UTC) #11
eustas
On 2014/10/02 08:07:40, vsevik wrote: > eustas@, could you please take a look? This patch ...
6 years, 2 months ago (2014-10-02 09:11:12 UTC) #12
eustas
lgtm
6 years, 2 months ago (2014-10-02 09:11:18 UTC) #13
vsevik
> This patch fixes consequences of our design error, not the problem itself. > Perfect ...
6 years, 2 months ago (2014-10-02 09:25:07 UTC) #14
horo
On 2014/10/02 09:25:07, vsevik wrote: > > This patch fixes consequences of our design error, ...
6 years, 2 months ago (2014-10-02 09:58:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/615413002/60001
6 years, 2 months ago (2014-10-02 09:59:10 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/4352)
6 years, 2 months ago (2014-10-02 10:07:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/615413002/60001
6 years, 2 months ago (2014-10-02 10:34:41 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:60001) as 3898f71d33270e916a9e9ccb3c6f2087b63ba58e
6 years, 2 months ago (2014-10-02 11:45:23 UTC) #22
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 11:46:18 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9accc09a59b1b5e6a2b40d8dace0a47e16ba4a12
Cr-Commit-Position: refs/heads/master@{#297807}

Powered by Google App Engine
This is Rietveld 408576698