Comment 0 for bug 221265

Revision history for this message
In , Modesser (modesser) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060313 Debian/1.5.dfsg+1.5.0.1-4 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20060315 Firefox/1.6a1

If a simple pref is locked (ie: browser.history_expire_days), it behaves as expected : cannot alter value.
But if a UI element in the pref window is able to change the value of another element, then locking may be disabled with a click or two.

Reproducible: Always

Steps to Reproduce:
1. Add 'pref("general.config.filename","myconf.cfg");' and change value of general.config.obscure_value to 0 in $INSTALLDIR/greprefs/all.js
2. Create $INSTALLDIR/myconf.cfg that contains
lockPref("network.proxy.http_port", 80);
lockPref("network.proxy.http", "proxy.home.tld");
lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, *.home.tld");
lockPref("browser.startup.homepage", "http://home.tld/");
lockPref("app.update.enabled", false);
lockPref("browser.history_expire_days",11);
3. Start Firefox and go to Edit->Preferences

Actual Results:
Locked preferences have their UI element grayed as expected, with their specified values correctly set. But a click on "Use current page" or "Use blank page" button changes home page value.
For the proxy settings, If I click on "Direct connexion to the internet" then again to "Manual proxy settings", form fields are re-enabled.
Simple setting (like history expiration) are not affected.

Expected Results:
Every setting element should be disabled, without any possibility to change the values.