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

Issue 1417173010: Adding <keygen> Content Setting (core) (Closed)

Created:
5 years, 1 month ago by svaldez
Modified:
5 years, 1 month ago
CC:
asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, jochen+watch_chromium.org, markusheintz_, mlamouri+watch-test-runner_chromium.org, msramek+watch_chromium.org, raymes+watch_chromium.org, Bernhard Bauer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding <keygen> Content Setting (core) Adding the KEYGEN content setting type and core functionality. --- The purpose of the content setting is to disable <keygen> usage by default, while allowing user and enterprise settings to selectively enable <keygen>. This is early UI gating prior to the deprecation of <keygen>. From UX discussions, we'd like to use a Page Action presented on the form rendering in order to allow the user to change the key generation settings of the page. The content setting will then determine whether the OnKeygen call actually runs the crypto to generate and store the keys. blink-dev Thread: https://groups.google.com/a/chromium.org/d/msg/blink-dev/pX5NbX0Xack/kmHsyMGJZAMJ --- BUG=514767 Committed: https://crrev.com/4d3f6bf5aeed76f36cf5982718be9e8bc6cc33ee Cr-Commit-Position: refs/heads/master@{#359950}

Patch Set 1 #

Patch Set 2 : Removing test_runner. #

Total comments: 6

Patch Set 3 : Removing keygen_rules. #

Total comments: 6

Patch Set 4 : Fixing metrics owner and test ordering. #

Total comments: 4

Patch Set 5 : Fix histograms. #

Patch Set 6 : Fix typos. #

Total comments: 10

Patch Set 7 : Fixing tests. #

Patch Set 8 : Rebase. #

Total comments: 4

Patch Set 9 : Moving actions.xml. #

Patch Set 10 : Fixing ContentSetting Register. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -4 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 1 2 3 4 5 6 5 chunks +48 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings_unittest.cc View 1 2 3 4 chunks +8 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_default_provider.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_policy_provider.cc View 1 2 3 4 5 6 8 chunks +16 lines, -3 lines 0 comments Download
M components/content_settings/core/browser/content_settings_registry.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings_types.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/common/pref_names.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M components/content_settings/core/common/pref_names.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (10 generated)
svaldez
5 years, 1 month ago (2015-11-03 15:38:21 UTC) #2
jochen (gone - plz use gerrit)
which parts do you want me to review?
5 years, 1 month ago (2015-11-05 01:16:11 UTC) #3
raymes
https://codereview.chromium.org/1417173010/diff/20001/components/content_settings/core/browser/content_settings_policy_provider.cc File components/content_settings/core/browser/content_settings_policy_provider.cc (right): https://codereview.chromium.org/1417173010/diff/20001/components/content_settings/core/browser/content_settings_policy_provider.cc#newcode45 components/content_settings/core/browser/content_settings_policy_provider.cc:45: CONTENT_SETTINGS_TYPE_KEYGEN, CONTENT_SETTING_ALLOW}, Do we really want to add enterprise ...
5 years, 1 month ago (2015-11-05 03:15:47 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/1417173010/diff/20001/components/content_settings/core/browser/content_settings_policy_provider.cc File components/content_settings/core/browser/content_settings_policy_provider.cc (right): https://codereview.chromium.org/1417173010/diff/20001/components/content_settings/core/browser/content_settings_policy_provider.cc#newcode45 components/content_settings/core/browser/content_settings_policy_provider.cc:45: CONTENT_SETTINGS_TYPE_KEYGEN, CONTENT_SETTING_ALLOW}, On 2015/11/05 03:15:47, raymes wrote: > Do ...
5 years, 1 month ago (2015-11-05 03:27:47 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/1417173010/diff/20001/components/content_settings/core/common/content_settings.h File components/content_settings/core/common/content_settings.h (right): https://codereview.chromium.org/1417173010/diff/20001/components/content_settings/core/common/content_settings.h#newcode59 components/content_settings/core/common/content_settings.h:59: ContentSettingsForOneType keygen_rules; You only need these rules for content ...
5 years, 1 month ago (2015-11-05 11:20:14 UTC) #8
svaldez
https://codereview.chromium.org/1417173010/diff/20001/components/content_settings/core/common/content_settings.h File components/content_settings/core/common/content_settings.h (right): https://codereview.chromium.org/1417173010/diff/20001/components/content_settings/core/common/content_settings.h#newcode59 components/content_settings/core/common/content_settings.h:59: ContentSettingsForOneType keygen_rules; On 2015/11/05 11:20:14, Bernhard Bauer wrote: > ...
5 years, 1 month ago (2015-11-05 16:30:26 UTC) #9
msramek
https://codereview.chromium.org/1417173010/diff/40001/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/1417173010/diff/40001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode59 chrome/browser/content_settings/host_content_settings_map_unittest.cc:59: EXPECT_EQ(CONTENT_SETTING_BLOCK, nit: Please keep the same ordering as in ...
5 years, 1 month ago (2015-11-05 17:07:09 UTC) #11
svaldez
https://codereview.chromium.org/1417173010/diff/40001/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/1417173010/diff/40001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode59 chrome/browser/content_settings/host_content_settings_map_unittest.cc:59: EXPECT_EQ(CONTENT_SETTING_BLOCK, On 2015/11/05 17:07:09, msramek wrote: > nit: Please ...
5 years, 1 month ago (2015-11-05 17:37:51 UTC) #12
Bernhard Bauer
LGTM w/ nits: https://codereview.chromium.org/1417173010/diff/60001/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/1417173010/diff/60001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode839 chrome/browser/content_settings/host_content_settings_map_unittest.cc:839: // Remove managed-default-content-settings-preferences. Nit: there are ...
5 years, 1 month ago (2015-11-06 11:36:53 UTC) #13
svaldez
https://codereview.chromium.org/1417173010/diff/60001/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/1417173010/diff/60001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode839 chrome/browser/content_settings/host_content_settings_map_unittest.cc:839: // Remove managed-default-content-settings-preferences. On 2015/11/06 11:36:53, Bernhard Bauer wrote: ...
5 years, 1 month ago (2015-11-06 14:40:45 UTC) #14
msramek
https://codereview.chromium.org/1417173010/diff/100001/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/1417173010/diff/100001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode183 chrome/browser/content_settings/host_content_settings_map_unittest.cc:183: EXPECT_EQ(CONTENT_SETTING_BLOCK, nit: This test would be better if you ...
5 years, 1 month ago (2015-11-06 16:56:15 UTC) #15
svaldez
https://codereview.chromium.org/1417173010/diff/100001/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/1417173010/diff/100001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode183 chrome/browser/content_settings/host_content_settings_map_unittest.cc:183: EXPECT_EQ(CONTENT_SETTING_BLOCK, On 2015/11/06 16:56:15, msramek wrote: > nit: This ...
5 years, 1 month ago (2015-11-06 21:30:07 UTC) #16
msramek
LGTM
5 years, 1 month ago (2015-11-09 10:51:34 UTC) #17
svaldez
Hi, This is part of a set of CLs to add a key generation content ...
5 years, 1 month ago (2015-11-11 15:33:06 UTC) #19
jwd
https://codereview.chromium.org/1417173010/diff/140001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1417173010/diff/140001/tools/metrics/actions/actions.xml#newcode9412 tools/metrics/actions/actions.xml:9412: <action name="Options_DefaultKeygenSettingChanged"> How/where does this get logged?
5 years, 1 month ago (2015-11-11 19:21:15 UTC) #20
svaldez
https://codereview.chromium.org/1417173010/diff/140001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1417173010/diff/140001/tools/metrics/actions/actions.xml#newcode9412 tools/metrics/actions/actions.xml:9412: <action name="Options_DefaultKeygenSettingChanged"> On 2015/11/11 19:21:15, Jesse Doherty wrote: > ...
5 years, 1 month ago (2015-11-11 20:26:27 UTC) #21
jwd
https://codereview.chromium.org/1417173010/diff/140001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1417173010/diff/140001/tools/metrics/actions/actions.xml#newcode9412 tools/metrics/actions/actions.xml:9412: <action name="Options_DefaultKeygenSettingChanged"> On 2015/11/11 20:26:27, svaldez wrote: > On ...
5 years, 1 month ago (2015-11-11 22:07:24 UTC) #22
svaldez
https://codereview.chromium.org/1417173010/diff/140001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1417173010/diff/140001/tools/metrics/actions/actions.xml#newcode9412 tools/metrics/actions/actions.xml:9412: <action name="Options_DefaultKeygenSettingChanged"> On 2015/11/11 22:07:24, Jesse Doherty wrote: > ...
5 years, 1 month ago (2015-11-12 18:02:59 UTC) #23
jwd
Metics LGTM
5 years, 1 month ago (2015-11-12 19:24:27 UTC) #24
davidben
content lgtm. (Didn't look closely at the rest. I'm assuming someone else did the primary ...
5 years, 1 month ago (2015-11-16 21:23:59 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417173010/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417173010/160001
5 years, 1 month ago (2015-11-16 21:25:43 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/136965) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-16 21:38:19 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417173010/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417173010/180001
5 years, 1 month ago (2015-11-16 21:54:07 UTC) #33
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 1 month ago (2015-11-16 23:14:54 UTC) #34
commit-bot: I haz the power
5 years, 1 month ago (2015-11-16 23:15:49 UTC) #35
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/4d3f6bf5aeed76f36cf5982718be9e8bc6cc33ee
Cr-Commit-Position: refs/heads/master@{#359950}

Powered by Google App Engine
This is Rietveld 408576698