On Nov 21, 2013, at 9:51 AM, Jens Ansorg <jens.ans...@gmail.com> wrote:

> hi,
> 
> with normal firefox browser we set a few lines in prefs.js to allow 
> NTLM/Kerberos authentication in a Microsoft environment. 
> 
> With FirefoxOS or Firefox standalone Web Apps I cannot figure out how to 
> specify the necessary configuration. 
> 
> Does this belong into *.webapp? Can I supply a prefs.js and where to put it? 

Hi Jens.
Custom prefs are not something that Firefox OS users can edit the same way 
desktop users can edit. I.E. there is no "void your warranty" about:config 
screen for editing prefs. Also, Firefox OS users who wish to modify their prefs 
need a rooted device which many operators are not providing.

With that caveat out of the way, there are a couple ways to do it.

You could build your own Firefox OS and add gaia/build/custom-prefs.js as 
described here 
https://developer.mozilla.org/en-US/Firefox_OS/Customization_with_the_.userconfig_file

You could pull and push a custom prefs js file onto a rooted device. The 
commands for that are something like:
adb shell "stop b2g"
adb push profile/user.js /data/local/
adb reboot
Here is an example of pushing custom payment prefs to a device: 
https://webpay.readthedocs.org/en/latest/use_hosted_webpay.html#setting-up-a-b2g-device

If you want to push custom prefs to the Firefox OS Simulator it's tricky. Some 
info: https://github.com/mozilla/r2d2b2g/issues/142 You'd basically need to 
build your own simulator and edit this 
https://github.com/mozilla/r2d2b2g/blob/master/prosthesis/defaults/preferences/prefs.js

> 
> Thanks
> _______________________________________________
> dev-webapps mailing list
> dev-webapps@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-webapps

_______________________________________________
dev-webapps mailing list
dev-webapps@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to