Several Android app restrictions for Chrome take a complex JSON for value, while it would be preferable to use BundleArray instead, so the admin consoles can generate a friendly UI for the internal structure of the restriction.
For example ManagedBookmarks take a JSON like:
[{"url": "google.com", "name": "Google"}, {"url": "youtube.com", "name": "Youtube"}]
If this restriction was exposed as a BundleArray it would allow admin consoles to show a friendly UI like:
- Bookmark 1
- Name: ...
- URL: ...
- Bookmark 2
- Name: ...
- URL: ...
Affected restrictions are:
URLWhitelist
URLBlacklist
DefaultSearchProviderAlternateURLs
CookiesAllowedForUrls
CookiesBlockedForUrls
CookiesSessionOnlyForUrls
ImagesAllowedForUrls
ImagesBlockedForUrls
JavaScriptAllowedForUrls
JavaScriptBlockedForUrls
PluginsAllowedForUrls
PluginsBlockedForUrls
PopupsAllowedForUrls
PopupsBlockedForUrls
CertificateTransparencyEnforcementDisabledForUrls
RestrictAccountsToPatterns
ManagedBookmarks
To allow a smooth transition Chrome could expose BundleArray in app_restrictions.xml (file used by admin consoles) but accept both JSON and BundleArray.
Comment 1 by poromov@chromium.org
, Apr 12 2018Labels: Enterprise-Triaged