Closed Bug 1305984 Opened 8 years ago Closed 8 years ago

First-run for restricted profiles is displayed on Guest Mode

Categories

(Firefox for Android Graveyard :: Family Friendly Browsing, defect, P1)

52 Branch
ARM
Android
defect

Tracking

(firefox49 unaffected, fennec+, firefox50 unaffected, firefox51 fixed, firefox52 verified)

RESOLVED FIXED
Firefox 52
Tracking Status
firefox49 --- unaffected
fennec + ---
firefox50 --- unaffected
firefox51 --- fixed
firefox52 --- verified

People

(Reporter: sflorean, Assigned: sebastian)

References

Details

(Whiteboard: [MobileAS])

Attachments

(2 files)

Environment: 
Device: Prestigio Grace X5 (Android 4.4.2);
Build: Nightly 52.0a1 (2016-09-27);

Steps to reproduce:
1. Launch Fennec and go to Menu -> Tools -> New Guest Session; 

Expected result:
Guest browsing is enabled with focus on Top Sites.

Actual result:
First-run for restricted profiles is displayed.
Please check the attachment.
I can see this on a Nexus 6P too.

https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/firstrun/FirstrunPager.java

This line:
> if (Restrictions.isUserRestricted(context)) {

should probably be:
> if (Restrictions.isRestrictedProfile(context)) {

Guest profiles are restricted too but we only want to show this for restricted (Android) profiles (= Family friendly browsing).
tracking-fennec: --- → ?
Assignee: nobody → s.kaspari
Status: NEW → ASSIGNED
tracking-fennec: ? → +
Comment on attachment 8798394 [details]
Bug 1305984 - Only show "family friendly browsing" first run for restricted profiles.

https://reviewboard.mozilla.org/r/83912/#review83534

LGTM If it works for you. I'm not very familiar with this stuff.
Attachment #8798394 - Flags: review?(gkruglov) → review+
Pushed by s.kaspari@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/09f5cb57521f
Only show "family friendly browsing" first run for restricted profiles. r=Grisha
Priority: -- → P1
Whiteboard: [MobileAS]
https://hg.mozilla.org/mozilla-central/rev/09f5cb57521f
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Verified as fixed in build 52.0a1 (2016-10-14);
Device: LG G4 (Android 5.1).
First-run for restricted profiles is not displayed on Guest Mode.
Iteration: --- → 1.6
Depends on: 1323408
Are we gonna push this in upper versions or will ride the train and it is wontfix for 51?
Flags: needinfo?(s.kaspari)
We uplifted the patch in bug 1323408 - The patch fixes this issue too. So we won't need to uplift this one.
Flags: needinfo?(s.kaspari)
Thanks Sebastian.
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: