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

Issue 8997012: Make incognito windows not inherit HSTS state from the main profile. (Closed)

Created:
9 years ago by agl
Modified:
8 years, 11 months ago
Reviewers:
wtc, Miranda Callahan
CC:
chromium-reviews, jochen (gone - plz use gerrit), jschuh
Visibility:
Public.

Description

Make incognito windows not inherit HSTS state from the main profile. The dynamic HSTS state is loaded by the TransportSecurityPersister. By moving it up into profile_impl (which isn't shared by Incognito profiles), the Incognito profiles don't ever load dynamic state. BUG=104935 TEST=Inject an HSTS entry for a non-HTTPS site in the main profile using about:net-internals. Open an incognito window and verify that you can still access the HTTP site. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116685

Patch Set 1 #

Patch Set 2 : ... #

Total comments: 2

Patch Set 3 : g try #

Total comments: 3

Patch Set 4 : ... #

Patch Set 5 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
agl
(This is at the request of the Tor folks.)
9 years ago (2011-12-19 18:22:01 UTC) #1
agl
poke :)
9 years ago (2011-12-20 19:43:06 UTC) #2
palmer
I am ambivalent about the semantics of the change. I understand the problem it solves, ...
9 years ago (2011-12-20 20:08:05 UTC) #3
wtc
http://codereview.chromium.org/8997012/diff/2001/chrome/browser/profiles/off_the_record_profile_io_data.h File chrome/browser/profiles/off_the_record_profile_io_data.h (right): http://codereview.chromium.org/8997012/diff/2001/chrome/browser/profiles/off_the_record_profile_io_data.h#newcode113 chrome/browser/profiles/off_the_record_profile_io_data.h:113: mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; Can we just use the transport_security_state_ ...
9 years ago (2011-12-20 22:14:42 UTC) #4
agl
I've addressed wtc's comment, but there is a design decision here: should incognito use HSTS ...
8 years, 11 months ago (2012-01-03 20:29:50 UTC) #5
palmer
> On the "no" side: it prevent's HSTS-cookies from linking normal and incognito > profiles. ...
8 years, 11 months ago (2012-01-03 22:24:52 UTC) #6
wtc
Patch Set 3 LGTM. I am fine with the design decision made by this CL. ...
8 years, 11 months ago (2012-01-04 23:51:28 UTC) #7
wtc
On 2012/01/03 22:24:52, Chris P. wrote: > > There's been an on-going thread/argument/rumination about whether ...
8 years, 11 months ago (2012-01-04 23:56:39 UTC) #8
wtc
agl: you may want to reword the CL's commit message. It's not clear to me ...
8 years, 11 months ago (2012-01-06 01:23:20 UTC) #9
agl
On 2012/01/06 01:23:20, wtc wrote: > agl: you may want to reword the CL's commit ...
8 years, 11 months ago (2012-01-06 16:14:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agl@chromium.org/8997012/22001
8 years, 11 months ago (2012-01-06 16:14:16 UTC) #11
commit-bot: I haz the power
Presubmit check for 8997012-22001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-06 16:14:19 UTC) #12
agl
(Throwing to Miranda for OWNERS approval.)
8 years, 11 months ago (2012-01-06 16:20:28 UTC) #13
Miranda Callahan
On 2012/01/06 16:20:28, agl wrote: > (Throwing to Miranda for OWNERS approval.) LGTM for profiles/* ...
8 years, 11 months ago (2012-01-06 16:30:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agl@chromium.org/8997012/22001
8 years, 11 months ago (2012-01-06 17:02:43 UTC) #15
commit-bot: I haz the power
Change committed as 116685
8 years, 11 months ago (2012-01-06 18:21:12 UTC) #16
wtc
I have one last question. Thanks. http://codereview.chromium.org/8997012/diff/9001/chrome/browser/profiles/off_the_record_profile_io_data.cc File chrome/browser/profiles/off_the_record_profile_io_data.cc (right): http://codereview.chromium.org/8997012/diff/9001/chrome/browser/profiles/off_the_record_profile_io_data.cc#newcode163 chrome/browser/profiles/off_the_record_profile_io_data.cc:163: main_context->set_transport_security_state(transport_security_state_.get()); One reason ...
8 years, 11 months ago (2012-01-06 18:45:52 UTC) #17
agl
8 years, 11 months ago (2012-01-06 19:08:47 UTC) #18
http://codereview.chromium.org/8997012/diff/9001/chrome/browser/profiles/off_...
File chrome/browser/profiles/off_the_record_profile_io_data.cc (right):

http://codereview.chromium.org/8997012/diff/9001/chrome/browser/profiles/off_...
chrome/browser/profiles/off_the_record_profile_io_data.cc:163:
main_context->set_transport_security_state(transport_security_state_.get());
On 2012/01/06 18:45:52, wtc wrote:
> Is main_context not the URL request context of the main
> profile?

I don't believe so. There's a main_context (a.k.a. main_request_context_) per
profile, which means that it's specific to the Incognito profile.

It's "main" simply in contrast to the extensions request context (which is also
profile specific.) It's not "main" as in "main profile".

Powered by Google App Engine
This is Rietveld 408576698