DescriptionPS - 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 #Messages
Total messages: 43 (31 generated)
|