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

Issue 19269012: Don't persist HPKP if PrivacyMode is enabled. (Closed)

Created:
7 years, 5 months ago by mef
Modified:
5 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Don't persist HPKP if PrivacyMode is enabled. BUG=258667 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224269

Patch Set 1 : Don't persist HPKP if PrivacyMode is enabled. #

Patch Set 2 : Sync up to r213924 #

Patch Set 3 : Don't add dynamic state if Can't Set Cookies, don't apply dynamic state if Can't Get Cookies. #

Patch Set 4 : Fixed compilation error. #

Patch Set 5 : Changed ChromeResourceDispatcherHostDelegate::OnResponseStarted to use URLRequest::GetHSTSRedirect. #

Total comments: 9

Patch Set 6 : Move GetURLForCookies from WebSocketJob to SocketStream. #

Patch Set 7 : Disable URLRequestTestHTTP.ProcessPKP_PrivacyMode in chrome_frame_net_tests. #

Total comments: 4

Patch Set 8 : Fix comment. #

Total comments: 1

Patch Set 9 : Address codereview nit and fix compilation error in OFFICIAL_BUILD. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -110 lines) Patch
M chrome/browser/net/transport_security_persister_unittest.cc View 1 2 3 4 5 4 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -10 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_security_headers_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/transport_security_state.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M net/http/transport_security_state.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M net/http/transport_security_state_unittest.cc View 1 2 3 4 5 16 chunks +60 lines, -47 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 1 comment Download
M net/socket_stream/socket_stream.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 2 3 4 5 2 chunks +13 lines, -2 lines 0 comments Download
M net/socket_stream/socket_stream_job.cc View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -6 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 3 chunks +21 lines, -1 line 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +46 lines, -12 lines 0 comments Download
M net/websockets/websocket_job.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M net/websockets/websocket_job.cc View 1 2 3 4 5 4 chunks +5 lines, -12 lines 0 comments Download

Messages

Total messages: 46 (1 generated)
mef
Hi Chris & Ryan, please take a look on my change to disable persisting of ...
7 years, 5 months ago (2013-07-16 17:32:29 UTC) #1
palmer
I think this CL is good as far as it goes, but unfortunately sleevi and ...
7 years, 5 months ago (2013-07-16 18:19:34 UTC) #2
mef
On 2013/07/16 18:19:34, Chromium Palmer wrote: > I think this CL is good as far ...
7 years, 5 months ago (2013-07-16 18:28:15 UTC) #3
palmer
> - In privacy mode we shouldn't persist not only HPKP, but the entire > ...
7 years, 5 months ago (2013-07-16 18:38:07 UTC) #4
mef
On 2013/07/16 18:38:07, Chromium Palmer wrote: > > - In privacy mode we shouldn't persist ...
7 years, 5 months ago (2013-07-16 18:44:29 UTC) #5
Ryan Sleevi
On 2013/07/16 18:38:07, Chromium Palmer wrote: > > - In privacy mode we shouldn't persist ...
7 years, 5 months ago (2013-07-17 22:16:31 UTC) #6
palmer
> I (perhaps incorrectly) understand it to be the distinction between first > party/third-party requests. ...
7 years, 5 months ago (2013-07-17 22:58:36 UTC) #7
mef
Hi Ryan, I've introduced the notion of Privacy Mode to allow granular usage of channel ...
7 years, 5 months ago (2013-07-18 15:33:28 UTC) #8
mef
On 2013/07/17 22:58:36, Chromium Palmer wrote: > > In which case we should neither respect ...
7 years, 5 months ago (2013-07-18 15:35:51 UTC) #9
Ryan Sleevi
On 2013/07/18 15:33:28, mef wrote: > Hi Ryan, > > I've introduced the notion of ...
7 years, 5 months ago (2013-07-18 16:57:10 UTC) #10
mef
> > It is based on Dirk Balfanz's proposal here: > > > https://docs.google.com/a/google.com/document/d/1Tz9KEZwgQNWCGe6GnzpUbRxa1iK-_TyeDZgnEqNy6d4/edit#heading=h.odd2uehric6b > ...
7 years, 5 months ago (2013-07-23 16:10:08 UTC) #11
mef
Per conversation with Ryan: If you set aside privacy mode entirely cookies sent = use ...
7 years, 5 months ago (2013-07-23 19:45:18 UTC) #12
mef
Hi guys, PTAL. I've refactored the code to work according to following: cookies sent = ...
7 years, 5 months ago (2013-07-26 19:41:16 UTC) #13
palmer
https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream.cc#newcode1314 net/socket_stream/socket_stream.cc:1314: delegate_->CanGetCookies(this, url_), This stops requests from *using* dynamic state ...
7 years, 4 months ago (2013-07-29 21:44:49 UTC) #14
mef
On 2013/07/29 21:44:49, Chromium Palmer wrote: > https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream.cc#newcode1314 > net/socket_stream/socket_stream.cc:1314: delegate_->CanGetCookies(this, url_), > This stops ...
7 years, 4 months ago (2013-07-30 16:04:52 UTC) #15
Ryan Sleevi
On 2013/07/30 16:04:52, mef wrote: > On 2013/07/29 21:44:49, Chromium Palmer wrote: > > > ...
7 years, 4 months ago (2013-07-30 18:15:57 UTC) #16
mef
On 2013/07/30 18:15:57, Ryan Sleevi wrote: > On 2013/07/30 16:04:52, mef wrote: > > On ...
7 years, 4 months ago (2013-08-02 14:45:56 UTC) #17
palmer
LGTM
7 years, 4 months ago (2013-08-06 17:52:22 UTC) #18
mef1
thanks! On Tue, Aug 6, 2013 at 1:52 PM, <palmer@chromium.org> wrote: > LGTM > > ...
7 years, 4 months ago (2013-08-06 18:14:21 UTC) #19
Ryan Sleevi
https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream.cc#newcode1314 net/socket_stream/socket_stream.cc:1314: delegate_->CanGetCookies(this, url_), Are we sure that "url_" is correct ...
7 years, 4 months ago (2013-08-06 22:32:11 UTC) #20
mef
Hi, thank you for the review! Sorry for the delayed answer, I was preoccupied with ...
7 years, 4 months ago (2013-08-09 17:04:04 UTC) #21
Ryan Sleevi
https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream.cc#newcode1314 net/socket_stream/socket_stream.cc:1314: delegate_->CanGetCookies(this, url_), On 2013/08/09 17:04:05, mef wrote: > On ...
7 years, 4 months ago (2013-08-09 17:42:29 UTC) #22
mef
On 2013/08/09 17:42:29, Ryan Sleevi wrote: > https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream.cc > File net/socket_stream/socket_stream.cc (right): > > https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream.cc#newcode1314 ...
7 years, 4 months ago (2013-08-09 17:54:30 UTC) #23
mef
Sorry for the delay, PTAL. I've finally processed your concerns, and figured that we cannot ...
7 years, 3 months ago (2013-09-10 19:29:33 UTC) #24
mef
On 2013/09/10 19:29:33, mef wrote: > Sorry for the delay, PTAL. > > I've finally ...
7 years, 3 months ago (2013-09-13 21:31:36 UTC) #25
Ryan Sleevi
Sorry, I've unpaged a lot of this code, and haven't quite paged it back in. ...
7 years, 3 months ago (2013-09-13 22:14:48 UTC) #26
mef
Hi Ryan, thanks a lot for your comments! See my answers inline. thanks, -m https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream_job.cc ...
7 years, 3 months ago (2013-09-16 15:00:07 UTC) #27
Ryan Sleevi
LGTM, mod nit. https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream_job.cc File net/socket_stream/socket_stream_job.cc (right): https://codereview.chromium.org/19269012/diff/44001/net/socket_stream/socket_stream_job.cc#newcode33 net/socket_stream/socket_stream_job.cc:33: delegate->CanGetCookies(NULL, url), On 2013/09/16 15:00:08, mef ...
7 years, 3 months ago (2013-09-17 18:53:02 UTC) #28
mef
Ryan, thanks a lot! Now I would like to humbly ask for OWNER's approvals: mmenke@ ...
7 years, 3 months ago (2013-09-17 20:38:37 UTC) #29
mmenke
net_internals and transport_security_persister_unittest LGTM https://codereview.chromium.org/19269012/diff/112001/net/http/transport_security_state.h File net/http/transport_security_state.h (right): https://codereview.chromium.org/19269012/diff/112001/net/http/transport_security_state.h#newcode205 net/http/transport_security_state.h:205: // otherwise only static state ...
7 years, 3 months ago (2013-09-17 21:10:32 UTC) #30
erikwright (departed)
chrome_frame LGTM.
7 years, 3 months ago (2013-09-18 15:37:59 UTC) #31
mef
Thanks a lot to Matt and Erik! sky@ or jam@, could your OWNER-review chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc thanks, ...
7 years, 3 months ago (2013-09-19 20:20:22 UTC) #32
jam
On 2013/09/19 20:20:22, mef wrote: > Thanks a lot to Matt and Erik! > > ...
7 years, 3 months ago (2013-09-19 20:31:09 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mef@chromium.org/19269012/112001
7 years, 3 months ago (2013-09-20 00:06:09 UTC) #34
commit-bot: I haz the power
Change committed as 224269
7 years, 3 months ago (2013-09-20 03:33:45 UTC) #35
tkent
On 2013/09/20 03:33:45, I haz the power (commit-bot) wrote: > Change committed as 224269 Reverted ...
7 years, 3 months ago (2013-09-20 04:51:19 UTC) #36
mef
Hi Ryan, please review my change. Others: FYI and I'm open for suggestions. The commit ...
7 years, 3 months ago (2013-09-20 15:53:29 UTC) #37
mef
On 2013/09/20 15:53:29, mef wrote: > Hi Ryan, please review my change. > Others: FYI ...
7 years, 2 months ago (2013-10-08 20:55:27 UTC) #38
palmer
Also, be aware that you'll have to rebase and probably have conflicts after my refactor ...
6 years, 7 months ago (2014-05-07 00:05:58 UTC) #39
mef
Given 9 month gestation period of my CL any change is a good change. :-) ...
6 years, 7 months ago (2014-05-07 01:17:41 UTC) #40
palmer
Ping! Any movement on this one?
6 years, 2 months ago (2014-10-16 17:25:21 UTC) #41
mef
On 2014/10/16 17:25:21, Chromium Palmer wrote: > Ping! Any movement on this one? There isn't, ...
6 years, 2 months ago (2014-10-16 17:41:13 UTC) #42
palmer
> There isn't, but given that the sticking point is in > net/socket/ssl_client_socket_nss.cc and we ...
6 years, 2 months ago (2014-10-16 22:53:33 UTC) #43
palmer
agl, davidben, rsleevi: Can you give mef some guidance on this?
6 years, 2 months ago (2014-10-16 22:54:50 UTC) #45
agl
6 years, 2 months ago (2014-10-16 23:00:05 UTC) #46
The change description need to be much longer.

If the aim is not to use dynamic state in Incognito mode then hard coding "true"
to the pinning check doesn't meet that goal. It would still be possible to probe
whether dynamic entries are in the cache.

We do already have plumbing to get a bit from Incognito to the SSL layer because
we use it for sharding the cache. That path seems like the right way to separate
out dynamic pins in Incognito mode, assuming that's the aim.

Powered by Google App Engine
This is Rietveld 408576698