Joel Sanderi wrote:
> 
> Thank you all for the help, we have now managed to enable our add-on silently.
> 
> Our developers have a follow-up question though:
> 
> Is the setting “general.config.obscure_value” still a thing in FF 57? The 
> linked document pages specify it in the examples, but the only reference we 
> can find to the actual setting is in the archived section: 
> https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Automatic_Mozilla_Configurator/Locked_config_settings
> 
> Even setting it explicitly to 1 in autoconfig.js seems to have no effect on 
> the file specified with “general.config.filename”.
> 
> If it is a thing, where do we find the documentation on how it actually works 
> and how to decode/encode the file so that we can modify it?

The default value of general.config.obscure_value is 13 - which means 
firefox will 'unobscure' the contents of the general.config.filename 
file by subtracting 13 from the character code for each character in the 
file as it is read

i.e. if you don't set general.config.obscure_value to 0, then you need 
to 'encode' your general.config.filename file by adding 13 to every 
character code for each character in the file (commonly referred to as 
'rot-13' - see https://en.wikipedia.org/wiki/ROT13)

This was a rather crude attempt to make the config file unreadable to 
the causal observer ... dating back to the very early days of Netscape 
(Firefox's precursor)

Most people don't bother obfuscating the file, and just set 
general.config.obscure_value to 0

You can see what Firefox does via openAndEvaluateJSFile() in 
extensions/pref/autoconfig/src/nsReadConfig.cpp - see:

https://hg.mozilla.org/releases/mozilla-release/file/tip/extensions/pref/autoconfig/src/nsReadConfig.cpp

If you remove the general.config.obscure_value in your autoconfig.js (or 
set it to any non-zero value) and then start Firefox with a new profile, 
then I believe Firefox will (silently?) ignore the settings in 
general.config.filename.

However, if you use an existing profile - created when 
general.config.obscure_value was set to 0 - you may not notice as any 
prefs from the autoconfig file will already be saved in the existing 
user profile

James Pearson
_______________________________________________
Enterprise mailing list
Enterprise@mozilla.org
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
enterprise-requ...@mozilla.org with a subject of "unsubscribe"

Reply via email to