New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 830670 link

Starred by 2 users

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature



Sign in to add a comment

Use BundleArray instead of JSON for Android app restrictions

Project Member Reported by faoustin@google.com, Apr 9 2018

Issue description

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.
 
Cc: bauerb@chromium.org
Labels: Enterprise-Triaged

Sign in to add a comment