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

Issue 2413683005: [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only (Closed)

Created:
4 years, 2 months ago by raymes
Modified:
4 years, 2 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org, jam, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only Currently the flash permission prompt doesn't work with an enterprise policy set to ASK. The reason is that content settings that are stored as a result of answering the prompt aren't honored because they are overriden by the enterprise default. This CL changes that, such that when enterprise policy is enabled, accepting the permission prompt will allow flash on that origin for the duration of the next page load only. After the prompt is accepted, the page will automatically be refreshed, we don't revoke access at this point, but any future navigations of the page will cause permission to be revoked from the origin. Note that because permission is granted on a per-origin basis, other frames open to the same origin will also have access during the period of the grant. This can't be avoided right now due to the way plugin permission checks work (the WebConents isn't always available at the time of the check). BUG=654148 Committed: https://crrev.com/4f6714cc01b08469c748536cc70d1fd022863217 Cr-Commit-Position: refs/heads/master@{#425873}

Patch Set 1 #

Patch Set 2 : [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only #

Patch Set 3 : [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only #

Total comments: 20

Patch Set 4 : [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only #

Patch Set 5 : [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only #

Patch Set 6 : [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only #

Patch Set 7 : [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only #

Total comments: 6

Patch Set 8 : [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only #

Patch Set 9 : [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only #

Patch Set 10 : [HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -47 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/plugins/chrome_plugin_service_filter.cc View 1 2 3 4 5 6 7 8 9 5 chunks +26 lines, -17 lines 0 comments Download
M chrome/browser/plugins/chrome_plugin_service_filter_unittest.cc View 1 2 3 4 5 6 3 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/plugins/flash_permission_context.cc View 1 2 3 5 chunks +36 lines, -7 lines 0 comments Download
A chrome/browser/plugins/flash_temporary_permission_tracker.h View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/plugins/flash_temporary_permission_tracker.cc View 1 2 3 4 5 6 7 8 1 chunk +139 lines, -0 lines 0 comments Download
A chrome/browser/plugins/flash_temporary_permission_tracker_factory.h View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/plugins/flash_temporary_permission_tracker_factory.cc View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/plugins/flash_temporary_permission_tracker_unittest.cc View 1 2 3 1 chunk +104 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_utils.cc View 1 2 3 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
raymes
Bernhard, would you be able to take a first pass over this to review the ...
4 years, 2 months ago (2016-10-13 12:38:13 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/2413683005/diff/40001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2413683005/diff/40001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode247 chrome/browser/plugins/chrome_plugin_service_filter.cc:247: context_info_it->second->profile) Wait, this is being called on the IO ...
4 years, 2 months ago (2016-10-13 13:38:57 UTC) #3
raymes
Thanks Bernhard. https://codereview.chromium.org/2413683005/diff/40001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2413683005/diff/40001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode247 chrome/browser/plugins/chrome_plugin_service_filter.cc:247: context_info_it->second->profile) On 2016/10/13 13:38:56, Bernhard Bauer wrote: ...
4 years, 2 months ago (2016-10-14 01:49:17 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/2413683005/diff/40001/chrome/browser/plugins/flash_temporary_permission_tracker.cc File chrome/browser/plugins/flash_temporary_permission_tracker.cc (right): https://codereview.chromium.org/2413683005/diff/40001/chrome/browser/plugins/flash_temporary_permission_tracker.cc#newcode44 chrome/browser/plugins/flash_temporary_permission_tracker.cc:44: granted_origins_.insert(std::make_pair( On 2016/10/14 01:49:17, raymes wrote: > On 2016/10/13 ...
4 years, 2 months ago (2016-10-14 11:02:25 UTC) #9
raymes
Thanks! https://codereview.chromium.org/2413683005/diff/40001/chrome/browser/plugins/flash_temporary_permission_tracker.cc File chrome/browser/plugins/flash_temporary_permission_tracker.cc (right): https://codereview.chromium.org/2413683005/diff/40001/chrome/browser/plugins/flash_temporary_permission_tracker.cc#newcode44 chrome/browser/plugins/flash_temporary_permission_tracker.cc:44: granted_origins_.insert(std::make_pair( On 2016/10/14 11:02:25, Bernhard Bauer wrote: > ...
4 years, 2 months ago (2016-10-15 03:51:10 UTC) #12
Bernhard Bauer
LGTM!
4 years, 2 months ago (2016-10-17 16:06:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413683005/160001
4 years, 2 months ago (2016-10-17 22:38:46 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/317732)
4 years, 2 months ago (2016-10-18 00:17:21 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413683005/180001
4 years, 2 months ago (2016-10-18 01:28:36 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-10-18 02:52:58 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 02:55:00 UTC) #29
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/4f6714cc01b08469c748536cc70d1fd022863217
Cr-Commit-Position: refs/heads/master@{#425873}

Powered by Google App Engine
This is Rietveld 408576698