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

Issue 2858643002: PS - Filtering activeTab URL (Closed)

Created:
3 years, 7 months ago by Ivan Šandrk
Modified:
3 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PS - Filtering activeTab URL In Public Sessions, apps and extensions are force-installed by admin policy so the user does not get a chance to review the permissions for these apps. This is not acceptable from a security standpoint, so we: - scrub the URL available to chrome.tabs.executeScript context (through activeTab permission) down to the origin. This change also causes the tab object passed to the [page|browser]Action.onClicked to be scrubbed for the given extension. TEST= unit_tests --gtest_filter=DeviceLocalAccountManagementPolicyProviderTest.IsWhitelisted unit_tests --gtest_filter=ExtensionTabUtilDelegateChromeOSTest.* BUG=717945 Review-Url: https://codereview.chromium.org/2858643002 Cr-Commit-Position: refs/heads/master@{#469342} Committed: https://chromium.googlesource.com/chromium/src/+/1296202771665ed3ecd53b31c16391258933cb08

Patch Set 1 #

Total comments: 9

Patch Set 2 : Pass extension to CreateTabObject, test helper #

Patch Set 3 : Forgot to update one test #

Patch Set 4 : ExtensionBuilder in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -28 lines) Patch
M chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/extensions/device_local_account_management_policy_provider_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/extension_tab_util_delegate_chromeos.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/extension_tab_util_delegate_chromeos.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/extension_tab_util_delegate_chromeos_unittest.cc View 1 2 3 2 chunks +43 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/extensions/permissions_updater_delegate_chromeos.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_action_api.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_action_api.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_action_runner.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/native_bindings_apitest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chromeos/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A chromeos/login/scoped_test_public_session_login_state.h View 1 1 chunk +24 lines, -0 lines 0 comments Download
A chromeos/login/scoped_test_public_session_login_state.cc View 1 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (31 generated)
Ivan Šandrk
Hey Devlin, Drew, ptal! https://codereview.chromium.org/2858643002/diff/1/chrome/browser/extensions/api/extension_action/extension_action_api.cc File chrome/browser/extensions/api/extension_action/extension_action_api.cc (right): https://codereview.chromium.org/2858643002/diff/1/chrome/browser/extensions/api/extension_action/extension_action_api.cc#newcode230 chrome/browser/extensions/api/extension_action/extension_action_api.cc:230: ExtensionTabUtil::PlatformSpecificFiltering(extension_action.extension_id(), Should I test this ...
3 years, 7 months ago (2017-05-03 13:00:51 UTC) #10
Devlin
Optional description nits: I personally prefer when CLs don't have "1/n", just because it seems ...
3 years, 7 months ago (2017-05-03 15:14:15 UTC) #11
Ivan Šandrk
On 2017/05/03 15:14:15, Devlin wrote: > Optional description nits: > > I personally prefer when ...
3 years, 7 months ago (2017-05-03 17:52:46 UTC) #15
Ivan Šandrk
Alexander, ptal at chromeos/login!
3 years, 7 months ago (2017-05-03 17:54:47 UTC) #17
Ivan Šandrk
Apparently I forgot to update one of the tests, that's fixed now. Ptal
3 years, 7 months ago (2017-05-03 19:46:27 UTC) #24
Alexander Alekseev
chromeos/login/ lgtm
3 years, 7 months ago (2017-05-04 01:19:29 UTC) #27
Andrew T Wilson (Slow)
lgtm, you might consider breaking out the refactoring from the functionality change though, since I'm ...
3 years, 7 months ago (2017-05-04 14:33:01 UTC) #28
Ivan Šandrk
On 2017/05/04 14:33:01, Andrew T Wilson (Slow) wrote: > lgtm, you might consider breaking out ...
3 years, 7 months ago (2017-05-04 14:52:53 UTC) #29
Devlin
Nice, LGTM! One more nit: it might be worth mentioning in the CL description that ...
3 years, 7 months ago (2017-05-04 15:08:39 UTC) #30
Ivan Šandrk
On 2017/05/04 15:08:39, Devlin wrote: > Nice, LGTM! > > One more nit: it might ...
3 years, 7 months ago (2017-05-04 15:15:36 UTC) #35
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/2858643002/60001
3 years, 7 months ago (2017-05-04 15:20:26 UTC) #39
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 15:27:47 UTC) #42
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/1296202771665ed3ecd53b31c163...

Powered by Google App Engine
This is Rietveld 408576698