4 years, 5 months ago
(2016-07-18 02:24:52 UTC)
#5
Dry run: This issue passed the CQ dry run.
lshang
Description was changed from ========== Change ContentSettingsType's scoping type and hookup migration code change scoping ...
4 years, 5 months ago
(2016-07-18 02:54:37 UTC)
#6
Description was changed from
==========
Change ContentSettingsType's scoping type and hookup migration code
change scoping type
BUG=
==========
to
==========
Change ContentSettingsType's scoping type and hookup migration code
This is a follow up CL of https://codereview.chromium.org/1895993003/ and
https://codereview.chromium.org/2078893002/.
In this CL, the scoping type of content setting types are changed to origin
scoped so that new settings generated for these types affect origins only.
Also migration code is brought to take effect to deal with old domain scoped
settings.
BUG=604612
==========
Thanks Raymes, I've made this CL to depend on https://codereview.chromium.org/2158743002/. https://codereview.chromium.org/2075103002/diff/60001/components/content_settings/core/browser/host_content_settings_map.h File components/content_settings/core/browser/host_content_settings_map.h (right): https://codereview.chromium.org/2075103002/diff/60001/components/content_settings/core/browser/host_content_settings_map.h#newcode289 ...
4 years, 5 months ago
(2016-07-20 08:36:01 UTC)
#14
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/107154)
4 years, 5 months ago
(2016-07-20 09:07:00 UTC)
#16
4 years, 5 months ago
(2016-07-22 03:52:22 UTC)
#26
Dry run: This issue passed the CQ dry run.
raymes
lgtm https://codereview.chromium.org/2075103002/diff/160001/chrome/browser/content_settings/host_content_settings_map_unittest.cc File chrome/browser/content_settings/host_content_settings_map_unittest.cc (right): https://codereview.chromium.org/2075103002/diff/160001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode1359 chrome/browser/content_settings/host_content_settings_map_unittest.cc:1359: // Set the pref to its initial state. ...
4 years, 5 months ago
(2016-07-25 02:18:27 UTC)
#27
+msramek@, PTAL thanks! https://codereview.chromium.org/2075103002/diff/160001/chrome/browser/content_settings/host_content_settings_map_unittest.cc File chrome/browser/content_settings/host_content_settings_map_unittest.cc (right): https://codereview.chromium.org/2075103002/diff/160001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode1359 chrome/browser/content_settings/host_content_settings_map_unittest.cc:1359: // Set the pref to its ...
4 years, 5 months ago
(2016-07-25 04:56:43 UTC)
#31
4 years, 5 months ago
(2016-07-25 05:34:36 UTC)
#33
Dry run: This issue passed the CQ dry run.
msramek
I'd like you to re-add the part of the test that you removed (see my ...
4 years, 4 months ago
(2016-07-26 20:33:05 UTC)
#34
I'd like you to re-add the part of the test that you removed (see my comment),
but otherwise LGTM so that you don't lose a day iteration.
https://codereview.chromium.org/2075103002/diff/180001/chrome/browser/content...
File chrome/browser/content_settings/host_content_settings_map_unittest.cc
(right):
https://codereview.chromium.org/2075103002/diff/180001/chrome/browser/content...
chrome/browser/content_settings/host_content_settings_map_unittest.cc:1478: //
Migration is done on construction of HostContentSettingsMap.
Can we test this claim?
We can write directly to the preference first, then create HCSM. See how it's
done in e.g. CanonicalizeExceptionsUnicodeOnly.
https://codereview.chromium.org/2075103002/diff/180001/components/content_set...
File components/content_settings/core/browser/content_settings_registry.cc
(right):
https://codereview.chromium.org/2075103002/diff/180001/components/content_set...
components/content_settings/core/browser/content_settings_registry.cc:126:
WebsiteSettingsInfo::REQUESTING_ORIGIN_ONLY_SCOPE,
I'm wondering if this is going to cause some strange behavior.
Cookie visibility is scoped to eTLD+1. Content settings didn't respect that
until now either, since we were setting cookie exceptions for whatever domain
you're on even if it's a third- or lower-level domain. Blocking cookies by
default and enabling them for mail.google.com would still block you from gmail
because of cookies from accounts.google.com.
But we're widening the discrepancy, so maybe we'll see this kind of problems
more often.
lshang
The CQ bit was checked by lshang@chromium.org to run a CQ dry run
4 years, 4 months ago
(2016-07-27 06:00:04 UTC)
#35
https://codereview.chromium.org/2075103002/diff/180001/chrome/browser/content_settings/host_content_settings_map_unittest.cc File chrome/browser/content_settings/host_content_settings_map_unittest.cc (right): https://codereview.chromium.org/2075103002/diff/180001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode1478 chrome/browser/content_settings/host_content_settings_map_unittest.cc:1478: // Migration is done on construction of HostContentSettingsMap. On ...
4 years, 4 months ago
(2016-07-27 06:05:44 UTC)
#37
https://codereview.chromium.org/2075103002/diff/180001/chrome/browser/content...
File chrome/browser/content_settings/host_content_settings_map_unittest.cc
(right):
https://codereview.chromium.org/2075103002/diff/180001/chrome/browser/content...
chrome/browser/content_settings/host_content_settings_map_unittest.cc:1478: //
Migration is done on construction of HostContentSettingsMap.
On 2016/07/26 20:33:05, msramek wrote:
> Can we test this claim?
>
> We can write directly to the preference first, then create HCSM. See how it's
> done in e.g. CanonicalizeExceptionsUnicodeOnly.
Done.
https://codereview.chromium.org/2075103002/diff/180001/components/content_set...
File components/content_settings/core/browser/content_settings_registry.cc
(right):
https://codereview.chromium.org/2075103002/diff/180001/components/content_set...
components/content_settings/core/browser/content_settings_registry.cc:126:
WebsiteSettingsInfo::REQUESTING_ORIGIN_ONLY_SCOPE,
On 2016/07/26 20:33:05, msramek wrote:
> I'm wondering if this is going to cause some strange behavior.
>
> Cookie visibility is scoped to eTLD+1. Content settings didn't respect that
> until now either, since we were setting cookie exceptions for whatever domain
> you're on even if it's a third- or lower-level domain. Blocking cookies by
> default and enabling them for http://mail.google.com would still block you
from gmail
> because of cookies from http://accounts.google.com.
>
> But we're widening the discrepancy, so maybe we'll see this kind of problems
> more often.
That's a good point. I think we can give it a try, if user complains a lot about
cookies then we can change its scoping type back.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
4 years, 4 months ago
(2016-07-27 06:57:51 UTC)
#38
Description was changed from ========== Change ContentSettingsType's scoping type and hookup migration code This is ...
4 years, 4 months ago
(2016-07-27 07:10:51 UTC)
#43
Message was sent while issue was closed.
Description was changed from
==========
Change ContentSettingsType's scoping type and hookup migration code
This is a follow up CL of https://codereview.chromium.org/1895993003/ and
https://codereview.chromium.org/2078893002/.
In this CL, the scoping type of content setting types are changed to origin
scoped so that new settings generated for these types affect origins only.
Also migration code is brought to take effect to deal with old domain scoped
settings.
BUG=604612
==========
to
==========
Change ContentSettingsType's scoping type and hookup migration code
This is a follow up CL of https://codereview.chromium.org/1895993003/ and
https://codereview.chromium.org/2078893002/.
In this CL, the scoping type of content setting types are changed to origin
scoped so that new settings generated for these types affect origins only.
Also migration code is brought to take effect to deal with old domain scoped
settings.
BUG=604612
==========
commit-bot: I haz the power
Committed patchset #8 (id:200001)
4 years, 4 months ago
(2016-07-27 07:10:53 UTC)
#44
Message was sent while issue was closed.
Committed patchset #8 (id:200001)
commit-bot: I haz the power
Description was changed from ========== Change ContentSettingsType's scoping type and hookup migration code This is ...
4 years, 4 months ago
(2016-07-27 07:12:50 UTC)
#45
Message was sent while issue was closed.
Description was changed from
==========
Change ContentSettingsType's scoping type and hookup migration code
This is a follow up CL of https://codereview.chromium.org/1895993003/ and
https://codereview.chromium.org/2078893002/.
In this CL, the scoping type of content setting types are changed to origin
scoped so that new settings generated for these types affect origins only.
Also migration code is brought to take effect to deal with old domain scoped
settings.
BUG=604612
==========
to
==========
Change ContentSettingsType's scoping type and hookup migration code
This is a follow up CL of https://codereview.chromium.org/1895993003/ and
https://codereview.chromium.org/2078893002/.
In this CL, the scoping type of content setting types are changed to origin
scoped so that new settings generated for these types affect origins only.
Also migration code is brought to take effect to deal with old domain scoped
settings.
BUG=604612
Committed: https://crrev.com/ca0ff0335dfc0552e5ba76c820a92f506c4baf23
Cr-Commit-Position: refs/heads/master@{#408067}
==========
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/ca0ff0335dfc0552e5ba76c820a92f506c4baf23 Cr-Commit-Position: refs/heads/master@{#408067}
4 years, 4 months ago
(2016-07-27 07:12:52 UTC)
#46
Issue 2075103002: Change ContentSettingsType's scoping type and hookup migration code
(Closed)
Created 4 years, 6 months ago by lshang
Modified 4 years, 4 months ago
Reviewers: raymes, msramek
Base URL: https://chromium.googlesource.com/chromium/src.git@do_migration_after_sync
Comments: 18