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

Issue 732741 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Not on Chrome anymore
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Blacklist is not enforced

Project Member Reported by nkostylev@chromium.org, Jun 13 2017

Issue description

Chrome Version: 58.0.3029.83 (Official build)
OS: Android 7.1 NDE49F

What steps will reproduce the problem?
(1) Define URLBlacklist=* and URLWhitelist *bbc.co.uk

What is the expected result?
Only BBC website is accessible, other URLs are blocked.

What happens instead?
Any URL is accessible

 

Comment 1 by bauerb@chromium.org, Jun 13 2017

Could you attach the full output of chrome://policy?

Comment 2 by bauerb@chromium.org, Jun 13 2017

Also, make sure you set the black- and whitelist as a list of strings. You can do that either by setting a String array containing "*", or a single String containing a JSON serialization of the list, i.e. "[\"*\"]".
>> Also, make sure you set the black- and whitelist as a list of strings.

They were set as a part of app restrictions, so that should not be a concern.
I am assuming URLBlacklist format should be different.

Not it is URLBlacklist=*

Comment 5 by bau...@google.com, Jun 13 2017

What mechanism/API do you use to set app restrictions?
I was using DPC > DPM.setApplicationRestrictions()
https://goo.gl/CncU5I

Ex: http://enterprise.google.com/android/experience
Status: WontFix (was: Assigned)
Turns out that was incorrect format I was setting.

That's that config that does work (tested on a device managed by http://enterprise.google.com/android/experience)

blacklist: ["*"]
whitelist: ["chrome://*", "bbc.co.uk"]

This will only allow bbc.co.uk (which does redirect to www.bbc.co.uk) and all chrome://* internal URLs.

Note: ["*"] blacklist does in fact block all chrome://* URLs
Screenshot_20170705-105739.png
114 KB View Download
Archiving the result of an offline discussion: If you translate policies from JSON to an Android Bundle, the JSON value should be ["*"]. Also, the asterisk only works as a full wildcard -- subdomains are matched by default (and you can prepend a period to _not_ match them).
Ah, yes. Didn't see your comment :)

Sign in to add a comment