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

Issue 2731083002: Stop pretending that a Flash setting of DETECT_IMPORTANT_CONTENT is ASK.

Created:
3 years, 9 months ago by lgarron
Modified:
3 years, 9 months ago
Reviewers:
tommycli, raymes
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop pretending that a Flash setting of DETECT_IMPORTANT_CONTENT is ASK. This restores the UI behaviour of showing "Detect" instead of "Ask" as the default setting for Flash. BUG=697238 -------------------------------- TEST=Following steps: 1) Visit https://permission.site 2) Click on the security indicator (lock icon) in the omnibox. 3) Check that the Flash setting is "Detect (by default)" instead of "Ask (by default)". [1] [1] Note: For Googlers, it might say "by policy" instead of "by default". That's okay, as long as it's "Detect (by policy)" instead of "Ask by policy".

Patch Set 1 #

Patch Set 2 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -13 lines) Patch
M chrome/browser/plugins/flash_permission_context.cc View 1 1 chunk +0 lines, -2 lines 4 comments Download
M chrome/browser/ui/website_settings/permission_menu_model.cc View 1 chunk +1 line, -3 lines 2 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.cc View 1 chunk +0 lines, -8 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (7 generated)
lgarron
raymes@, tommycli@, could you review?
3 years, 9 months ago (2017-03-04 00:16:02 UTC) #5
tommycli
On 2017/03/04 00:16:02, lgarron wrote: > raymes@, tommycli@, could you review? To confirm I understand ...
3 years, 9 months ago (2017-03-04 00:20:16 UTC) #7
lgarron
On 2017/03/04 at 00:20:16, tommycli wrote: > On 2017/03/04 00:16:02, lgarron wrote: > > raymes@, ...
3 years, 9 months ago (2017-03-04 00:58:58 UTC) #10
tommycli
On 2017/03/04 00:58:58, lgarron wrote: > On 2017/03/04 at 00:20:16, tommycli wrote: > > On ...
3 years, 9 months ago (2017-03-04 01:00:28 UTC) #11
raymes
3 thoughts: 1)I think that we should separate the behavioral changes of what content setting ...
3 years, 9 months ago (2017-03-05 23:55:40 UTC) #12
raymes
https://codereview.chromium.org/2731083002/diff/20001/chrome/browser/ui/website_settings/permission_menu_model.cc File chrome/browser/ui/website_settings/permission_menu_model.cc (right): https://codereview.chromium.org/2731083002/diff/20001/chrome/browser/ui/website_settings/permission_menu_model.cc#newcode54 chrome/browser/ui/website_settings/permission_menu_model.cc:54: // Once the feature flag is gone, migrate the ...
3 years, 9 months ago (2017-03-05 23:56:51 UTC) #13
raymes
On 2017/03/05 23:55:40, raymes wrote: > 3 thoughts: > 1)I think that we should separate ...
3 years, 9 months ago (2017-03-06 00:00:00 UTC) #14
tommycli
https://codereview.chromium.org/2731083002/diff/20001/chrome/browser/plugins/flash_permission_context.cc File chrome/browser/plugins/flash_permission_context.cc (left): https://codereview.chromium.org/2731083002/diff/20001/chrome/browser/plugins/flash_permission_context.cc#oldcode50 chrome/browser/plugins/flash_permission_context.cc:50: return CONTENT_SETTING_ASK; On 2017/03/05 23:55:40, raymes wrote: > I'm ...
3 years, 9 months ago (2017-03-06 19:10:26 UTC) #15
lgarron
https://codereview.chromium.org/2731083002/diff/20001/chrome/browser/plugins/flash_permission_context.cc File chrome/browser/plugins/flash_permission_context.cc (left): https://codereview.chromium.org/2731083002/diff/20001/chrome/browser/plugins/flash_permission_context.cc#oldcode50 chrome/browser/plugins/flash_permission_context.cc:50: return CONTENT_SETTING_ASK; On 2017/03/06 at 19:10:26, tommycli wrote: > ...
3 years, 9 months ago (2017-03-09 02:47:19 UTC) #16
raymes
3 years, 9 months ago (2017-03-09 03:01:07 UTC) #17
https://codereview.chromium.org/2731083002/diff/20001/chrome/browser/plugins/...
File chrome/browser/plugins/flash_permission_context.cc (left):

https://codereview.chromium.org/2731083002/diff/20001/chrome/browser/plugins/...
chrome/browser/plugins/flash_permission_context.cc:50: return
CONTENT_SETTING_ASK;
On 2017/03/09 02:47:19, lgarron wrote:
> On 2017/03/06 at 19:10:26, tommycli wrote:
> > On 2017/03/05 23:55:40, raymes wrote:
> > > I'm not sure if we want to do this? Won't this have potential behavioral
> > > implications? We just want to change the UI.
> > 
> > I agree. I missed that this was in FlashPermissionContext. I agree with
Raymes
> that this seems like it will have negative side effects.
> 
> Could you explain to me what those effects are?
> If the general behaviour is not ASK yet, I don't quite understand why
returning
> DETECT here is not alright. (Can we fix the call sites to interpret DETECT
> correctly?)

Ask means "show a prompt" in the permissions code, and that's what we want to
happen in this case. This actually happens to work because of the way the code
is written, but I don't think we should rely on that (which is why this test
doesn't fail). There is other code that assumes that ASK means show a prompt,
which is intuitive.

I think the right solution is to get rid of DETECT as an option which I hope
we'll be able to do soon.

Powered by Google App Engine
This is Rietveld 408576698