Android actually does handle the UI as far as I know (it places a little lock 
icon) - and you can create additional chrome stylesheets to hide the items as 
well.

I am actually on that mentioned bug (440908) - and that would also be a 
solution…it’s actually the solution that I am currently using.  I’m just 
wondering if it might make more sense to handle when loading the mobile 
distribution itself, since that would allow you to use the artifact builds for 
the backend stuff (since there isn’t much interest in adding easy locking to 
the core gecko code base).

Since distributions can be packaged up within an APK itself, it’s a bit harder 
to bypass a distribution…which is why I thought it might make sense to put the 
settings locks in there instead.

-Nathan


> On Jan 28, 2016, at 4:52 PM, Ben Bucksch <[email protected]> wrote:
> 
> Hey Nathan,
> 
> Mike Kaply points to: https://bugzilla.mozilla.org/show_bug.cgi?id=440908
> 
> Please note that Locked Prefs need support from the UI side to disable or 
> hide the preference fields. I'm not sure Android is currently doing that, 
> either.
> 
> Personally, I'm not a fan of locked prefs.
> 
> Ben
> 
> 
> Nathan Toone wrote on 29.01.2016 00:05:
>> In a distribution’s “preferences.json” file, you can specify preferences 
>> that are added as default gecko preferences for the profile (i.e. those 
>> prefs that would appear in about:config).  For a distribution I’m working 
>> on, I’d like to additionally lock some of those preferences.  Currently, 
>> this has to be done by specifying an autoconfig file.  However, I’m 
>> wondering if it would be possible to add a section called 
>> “LockedPreferences” or something to that same distribution/preferences.json 
>> file that would add those preferences as locked prefs (i.e. the same 
>> behavior as specifying lockPref in the autoconfig.cfg file).  I’m willing to 
>> put in the work to add that functionality - but am wondering what thoughts 
>> others have on that behavior.
>> 
>> It seems to me that some distributions might like to be able to lock down 
>> their preferences - i.e. network settings or branding.
>> 
>> -Nathan
>> 
>> 
>> _______________________________________________
>> mobile-firefox-dev mailing list
>> [email protected]
>> https://mail.mozilla.org/listinfo/mobile-firefox-dev
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to