From af19fae1d6ba78da52344b8cabae6de06fe8115d Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Tue, 5 Mar 2019 22:59:22 +0000 Subject: [PATCH] Bug 1529394 pref 'on' incognito not_allowed r=kmag Differential Revision: https://phabricator.services.mozilla.com/D21302 --HG-- extra : moz-landing-system : lando --- modules/libpref/init/StaticPrefList.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/libpref/init/StaticPrefList.h b/modules/libpref/init/StaticPrefList.h index 6af9ac6297a3..fff14bfc8153 100644 --- a/modules/libpref/init/StaticPrefList.h +++ b/modules/libpref/init/StaticPrefList.h @@ -530,11 +530,18 @@ VARCACHE_PREF( // Extension prefs //--------------------------------------------------------------------------- +#ifdef ANDROID +// Private browsing opt-in is only supported on Firefox desktop. +# define PREF_VALUE true +#else +# define PREF_VALUE false +#endif VARCACHE_PREF( "extensions.allowPrivateBrowsingByDefault", extensions_allowPrivateBrowsingByDefault, - bool, true + bool, PREF_VALUE ) +#undef PREF_VALUE //--------------------------------------------------------------------------- // Full-screen prefs