mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1536866 - Hide enter guest session option from the menu. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D24212 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
741672fb85
commit
033681c09c
@ -3427,10 +3427,12 @@ public class BrowserApp extends GeckoApp
|
||||
|
||||
charEncoding.setVisible(GeckoPreferences.getCharEncodingState());
|
||||
|
||||
// Bug - 1536866. We are hiding the enter guest mode option but we need to leave the exit option available
|
||||
// for users that are currently using it.
|
||||
if (getProfile().inGuestMode()) {
|
||||
exitGuestMode.setVisible(true);
|
||||
} else {
|
||||
enterGuestMode.setVisible(true);
|
||||
enterGuestMode.setVisible(false);
|
||||
}
|
||||
|
||||
if (!Restrictions.isAllowed(this, Restrictable.GUEST_BROWSING)) {
|
||||
|
Loading…
Reference in New Issue
Block a user