If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Restricted Profiles: Change behavior of isUserRestricted()

RESOLVED WONTFIX

Status

()

Firefox for Android
General
RESOLVED WONTFIX
2 years ago
2 years ago

People

(Reporter: sebastian, Unassigned, Mentored)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
Follow-up from bug 1181660.

Currently we assume the user is using a restricted profile whenever we find a restriction in the system's list of restrictions (getUserRestrictions()). As soon as bug 1180653 lands we will store our restrictions in the user manager too. After that we can check getApplicationRestrictions() to see if our app is restricted and then assume the profile is restricted.
(Reporter)

Comment 1

2 years ago
Additionally we could think of making isUserRestricted() not accessible from other class. Instead callers should ask for a specific restriction instead of implementing their own logic.
Blocks: 1205615
No longer blocks: 1125710
(Reporter)

Comment 2

2 years ago
We now have (and will have) code that should not run for restricted profiles (no matter what restrictions are in place).
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.