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

Issue 1432573002: Adding <keygen> Content Setting (Android UI) (Closed)

Created:
5 years, 1 month ago by svaldez
Modified:
4 years, 11 months ago
CC:
Bernhard Bauer, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@keygen_ui
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding <keygen> Content Setting (Android UI) This adds Android UI to allow the user to change the Content Setting to block/allow keygen usage on a per-site basis. To trigger the exception, we also create a Content Exception on any site that uses a <keygen> element. BUG=514767 Committed: https://crrev.com/34a7682cd49f8fdfb6a0f715a6118076f9ad8224 Cr-Commit-Position: refs/heads/master@{#370416}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update UI strings. #

Total comments: 18

Patch Set 3 : Fixing up permissions. (Still needs to be tested) #

Total comments: 9

Patch Set 4 : More UI changes. #

Patch Set 5 : Adding KeygenInfo. #

Patch Set 6 : Rebase. #

Patch Set 7 : Fix upstream? #

Patch Set 8 : Fixing rebase issues. #

Patch Set 9 : Fixing from clankium . #

Patch Set 10 : Using ASK instead of BLOCK to trigger Android UI. #

Patch Set 11 : Fix rebase. #

Total comments: 1

Patch Set 12 : Adding site setting popup line. #

Patch Set 13 : Rebase? #

Patch Set 14 : Remove extraneous change. #

Patch Set 15 : Adding Keygen Tests (Probably broken) #

Patch Set 16 : Fixing android typos. #

Total comments: 13

Patch Set 17 : Fix tests. #

Patch Set 18 : Improve comment. #

Total comments: 1

Patch Set 19 : Better comment. #

Patch Set 20 : Rebase. #

Patch Set 21 : Rebase. #

Patch Set 22 : Fix rebase across multiple ancestors. #

Total comments: 14

Patch Set 23 : Changing tests. #

Patch Set 24 : Fix test. #

Patch Set 25 : Use alternative testing. #

Patch Set 26 : More fixes. #

Patch Set 27 : Rebase. #

Patch Set 28 : Simplify fragmentArgs. #

Total comments: 1

Patch Set 29 : Updating to use WebContents. #

Patch Set 30 : Fixing rebase. #

Patch Set 31 : Rebase. #

Patch Set 32 : Using code for icon. #

Patch Set 33 : Rebase. #

Patch Set 34 : Fixing GetOrigins. #

Patch Set 35 : y #

Patch Set 36 : Trying to do after rebase. #

Patch Set 37 : Temporary hack to figure out why the trybots fail. #

Patch Set 38 : More testing. #

Patch Set 39 : Trying wpb.\ #

Patch Set 40 : Fixing GSFO. #

Patch Set 41 : Log? #

Patch Set 42 : Incognito. #

Patch Set 43 : Add dcheck. #

Patch Set 44 : If then. #

Patch Set 45 : Skip CS. #

Patch Set 46 : Fix. #

Patch Set 47 : y #

Patch Set 48 : MORE. #

Patch Set 49 : Trying tested code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -7 lines) Patch
M chrome/android/java/res/xml/single_website_preferences.xml View 1 2 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/pageinfo/WebsiteSettingsPopup.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentSettingsResources.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +6 lines, -0 lines 0 comments Download
A + chrome/android/java/src/org/chromium/chrome/browser/preferences/website/KeygenInfo.java View 1 2 3 4 5 21 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 12 chunks +35 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java View 1 2 3 4 5 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePreferenceBridge.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +31 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 4 chunks +71 lines, -0 lines 0 comments Download
M chrome/browser/android/preferences/website_preference_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 39 40 41 43 44 45 46 47 48 2 chunks +39 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/website_settings_popup_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 69 (22 generated)
svaldez
5 years, 1 month ago (2015-11-03 15:38:29 UTC) #2
raymes
finnur@ are you a good person to review this?
5 years, 1 month ago (2015-11-05 02:09:12 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/1432573002/diff/1/chrome/android/java/strings/android_chrome_strings.grd File chrome/android/java/strings/android_chrome_strings.grd (right): https://codereview.chromium.org/1432573002/diff/1/chrome/android/java/strings/android_chrome_strings.grd#newcode526 chrome/android/java/strings/android_chrome_strings.grd:526: <message name="IDS_WEBSITE_SETTINGS_ADD_SITE_DESCRIPTION_KEYGEN" desc="The description for the allow Keygen for ...
5 years, 1 month ago (2015-11-05 11:21:32 UTC) #7
Finnur
Yes, I am one of probably two persons who is most intimately familiar with this ...
5 years, 1 month ago (2015-11-05 15:42:53 UTC) #8
svaldez
On 2015/11/05 15:42:53, Finnur wrote: > Yes, I am one of probably two persons who ...
5 years, 1 month ago (2015-11-05 17:12:42 UTC) #9
svaldez
https://codereview.chromium.org/1432573002/diff/1/chrome/android/java/strings/android_chrome_strings.grd File chrome/android/java/strings/android_chrome_strings.grd (right): https://codereview.chromium.org/1432573002/diff/1/chrome/android/java/strings/android_chrome_strings.grd#newcode526 chrome/android/java/strings/android_chrome_strings.grd:526: <message name="IDS_WEBSITE_SETTINGS_ADD_SITE_DESCRIPTION_KEYGEN" desc="The description for the allow Keygen for ...
5 years, 1 month ago (2015-11-05 17:40:52 UTC) #10
Finnur
> The goal is to have UI for the user to selectively enable/disable > the ...
5 years, 1 month ago (2015-11-05 20:44:41 UTC) #11
jochen (gone - plz use gerrit)
i'm not a good reviewer for any of this code, removing myself
5 years, 1 month ago (2015-11-06 05:43:13 UTC) #13
svaldez
Fixed up, however we aren't currently getting the fact that Blink has rendered a keygen ...
5 years, 1 month ago (2015-11-10 15:25:02 UTC) #14
Finnur
> Fixed up, however we aren't currently getting the > fact that Blink has rendered ...
5 years, 1 month ago (2015-11-11 10:25:45 UTC) #15
svaldez
https://codereview.chromium.org/1432573002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentSettingsResources.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentSettingsResources.java (right): https://codereview.chromium.org/1432573002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentSettingsResources.java#newcode62 chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentSettingsResources.java:62: return R.string.keygen_permission_title; On 2015/11/11 10:25:45, Finnur wrote: > This ...
5 years, 1 month ago (2015-11-19 17:50:25 UTC) #16
svaldez
On 2015/11/19 17:50:25, svaldez wrote: > https://codereview.chromium.org/1432573002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentSettingsResources.java > File > chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentSettingsResources.java > (right): > > ...
5 years ago (2015-12-01 20:11:32 UTC) #17
Finnur
Still needs a test, but we're getting to a point where my input is getting ...
5 years ago (2015-12-01 23:19:57 UTC) #18
svaldez
Started a thread with egm@ to figure out UX details. What's the *right* way of ...
5 years ago (2015-12-02 17:13:13 UTC) #20
svaldez
On 2015/12/02 17:13:13, svaldez wrote: > Started a thread with egm@ to figure out UX ...
5 years ago (2015-12-02 17:17:48 UTC) #21
newt (away)
Could you provide screenshots of the new UI on the bug?
5 years ago (2015-12-02 18:45:54 UTC) #22
svaldez
On 2015/12/02 18:45:54, newt wrote: > Could you provide screenshots of the new UI on ...
5 years ago (2015-12-02 19:11:00 UTC) #23
Finnur
> All the existing tests seem to depend on the the SiteSettingsCategory UI, which > ...
5 years ago (2015-12-02 23:16:13 UTC) #24
svaldez
Partially added tests. Since the testing requires the content setting to actually block keygen, but ...
5 years ago (2015-12-11 16:22:32 UTC) #25
Finnur
https://codereview.chromium.org/1432573002/diff/300001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java (right): https://codereview.chromium.org/1432573002/diff/300001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java#newcode89 chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java:89: PREF_PROTECTED_MEDIA_IDENTIFIER_PERMISSION, PREF_PUSH_NOTIFICATIONS_PERMISSION, Was this done by the git format ...
5 years ago (2015-12-11 17:53:06 UTC) #26
svaldez
https://codereview.chromium.org/1432573002/diff/300001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java (right): https://codereview.chromium.org/1432573002/diff/300001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java#newcode89 chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java:89: PREF_PROTECTED_MEDIA_IDENTIFIER_PERMISSION, PREF_PUSH_NOTIFICATIONS_PERMISSION, On 2015/12/11 17:53:05, Finnur wrote: > Was ...
5 years ago (2015-12-11 18:13:11 UTC) #27
Finnur
https://codereview.chromium.org/1432573002/diff/300001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java (right): https://codereview.chromium.org/1432573002/diff/300001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java#newcode133 chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java:133: return (Preferences) getInstrumentation().startActivitySync(intent); Ah, right, right. Serves me right ...
5 years ago (2015-12-11 18:29:29 UTC) #28
svaldez
On 2015/12/11 18:29:29, Finnur wrote: > https://codereview.chromium.org/1432573002/diff/300001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java > File > chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java > (right): > > ...
5 years ago (2015-12-11 19:07:43 UTC) #29
Finnur
https://codereview.chromium.org/1432573002/diff/300001/chrome/test/data/android/keygen.html File chrome/test/data/android/keygen.html (right): https://codereview.chromium.org/1432573002/diff/300001/chrome/test/data/android/keygen.html#newcode13 chrome/test/data/android/keygen.html:13: keygen = (window.location.search.indexOf('?key=MIIC') == 0) How this works should ...
5 years ago (2015-12-11 20:08:57 UTC) #30
svaldez
On 2015/12/11 20:08:57, Finnur wrote: > https://codereview.chromium.org/1432573002/diff/300001/chrome/test/data/android/keygen.html > File chrome/test/data/android/keygen.html (right): > > https://codereview.chromium.org/1432573002/diff/300001/chrome/test/data/android/keygen.html#newcode13 > ...
5 years ago (2015-12-11 20:55:18 UTC) #31
Finnur
https://codereview.chromium.org/1432573002/diff/340001/chrome/test/data/android/keygen.html File chrome/test/data/android/keygen.html (right): https://codereview.chromium.org/1432573002/diff/340001/chrome/test/data/android/keygen.html#newcode14 chrome/test/data/android/keygen.html:14: // We check for base64 'MIIC' to match the ...
5 years ago (2015-12-11 21:06:12 UTC) #32
svaldez
Updated.
5 years ago (2015-12-11 21:21:35 UTC) #33
Finnur
Thanks. Where does this leave us with this CL? You mentioned the test isn't (or ...
5 years ago (2015-12-11 22:05:03 UTC) #34
svaldez
On 2015/12/11 22:05:03, Finnur wrote: > Thanks. Where does this leave us with this CL? ...
5 years ago (2015-12-14 14:46:17 UTC) #35
newt (away)
https://codereview.chromium.org/1432573002/diff/420001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java (right): https://codereview.chromium.org/1432573002/diff/420001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java#newcode60 chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java:60: // Keygen permissions are per-origin. this needs to come ...
5 years ago (2015-12-15 00:10:01 UTC) #36
newt (away)
Also, please add some detail to the commit message.
5 years ago (2015-12-15 00:11:45 UTC) #37
svaldez
Fixed modulo testing fixes. https://codereview.chromium.org/1432573002/diff/420001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java (right): https://codereview.chromium.org/1432573002/diff/420001/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java#newcode60 chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java:60: // Keygen permissions are per-origin. ...
5 years ago (2015-12-15 21:45:57 UTC) #39
newt (away)
lgtm after question https://codereview.chromium.org/1432573002/diff/540001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java (right): https://codereview.chromium.org/1432573002/diff/540001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java#newcode270 chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java:270: website.setKeygenInfo(new KeygenInfo(origin, origin, false)); Should you ...
5 years ago (2015-12-17 21:00:27 UTC) #40
svaldez
On 2015/12/17 21:00:27, newt wrote: > lgtm after question > > https://codereview.chromium.org/1432573002/diff/540001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/website/SiteSettingsPreferencesTest.java > File > ...
5 years ago (2015-12-17 21:07:25 UTC) #41
svaldez
On 2015/12/17 21:07:25, svaldez wrote: > On 2015/12/17 21:00:27, newt wrote: > > lgtm after ...
5 years ago (2015-12-21 15:11:36 UTC) #42
svaldez
yfriedman: Could you take a quick look at the following file, we are just adding ...
5 years ago (2015-12-21 15:15:24 UTC) #44
Yaron
lgtm
5 years ago (2015-12-21 15:23:26 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432573002/600001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432573002/600001
4 years, 11 months ago (2016-01-05 22:30:06 UTC) #47
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/4456)
4 years, 11 months ago (2016-01-06 00:52:30 UTC) #49
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432573002/620001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432573002/620001
4 years, 11 months ago (2016-01-12 17:18:35 UTC) #51
commit-bot: I haz the power
Dry run: 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/157430) mac_chromium_compile_dbg_ng on ...
4 years, 11 months ago (2016-01-12 17:21:21 UTC) #53
commit-bot: I haz the power
This CL has an open dependency (Issue 1412523003 Patch 370001). Please resolve the dependency and ...
4 years, 11 months ago (2016-01-14 21:12:47 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432573002/660001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432573002/660001
4 years, 11 months ago (2016-01-14 21:14:59 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432573002/700001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432573002/700001
4 years, 11 months ago (2016-01-14 23:24:45 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432573002/960001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432573002/960001
4 years, 11 months ago (2016-01-20 16:29:36 UTC) #65
commit-bot: I haz the power
Committed patchset #49 (id:960001)
4 years, 11 months ago (2016-01-20 16:48:00 UTC) #67
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 16:49:16 UTC) #69
Message was sent while issue was closed.
Patchset 49 (id:??) landed as
https://crrev.com/34a7682cd49f8fdfb6a0f715a6118076f9ad8224
Cr-Commit-Position: refs/heads/master@{#370416}

Powered by Google App Engine
This is Rietveld 408576698