-
Devlin Cronin authored
For extensions that only request access to specific sites (e.g., an extension that only requests access to google.com and example.com), display a toggle-able list in the chrome://extensions page rather than a free-form entry field. The ability to grant all requested sites still exists via a "main" toggle, and disabling this allows the user to toggle individual sites. This logic is contained in the new HostPermissionsToggleList custom element. This is a usability improvement over the free-form entry, since with free-form entry it's not immediately obvious what the possible options are. Free-form entry is still used for extensions that request all sites (or all-sites like patterns, such as https://*.com), since (almost) any site entered is valid. Update and add tests for the same. Bug: 891803 Cq-Include-Trybots: luci.chromium.try:closure_compilation Change-Id: I99112966d323c403603d5f21c28ae33be8e506f0 Reviewed-on: https://chromium-review.googlesource.com/c/1284696 Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Reviewed-by:
Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#605150}
0ba08a46