"layout.css.font-variations.enabled" pref can be unlocked on Windows 7 and Ubuntu using remote Autoconfig

RESOLVED WONTFIX

Status

()

defect
RESOLVED WONTFIX
Last year
Last year

People

(Reporter: george.craciun, Assigned: mkaply)

Tracking

62 Branch
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox62 affected)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
Build ID: 20180614100146

[Affected versions]:
Nightly 62.0a1

[Affected Platforms]:
Windows 7, Ubuntu 16.04

[Preconditions]:
1.Create a file named autoconfig.js in the location: 
C:\Program Files\Mozilla Firefox\defaults\pref
and add the following text to it: 
"pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0);
pref("general.config.sandbox_enabled", true);"

2.Create a file named autoadmin.js on a remote location and add the following text to it: 
"//
unlockPref("layout.css.font-variations.enabled");"

3.Create a file named firefox.cfg in the location: 
C:\Program Files\Firefox Nightly
and add the following text in it:
"//
lockPref("autoadmin.global_config_url","http://yourdomain.com/autoadmin.js");"

[Steps to reproduce]:
1.Launch Firefox
2.Go to about:config and search for "layout.css.font-variations.enabled" pref

[Expected result]:
The "layout.css.font-variations.enabled" pref status should be "locked"

[Actual result]:
The "layout.css.font-variations.enabled" pref status is "default" and the value can be changed

[Note]:
This issue is reproducible only using a remote js file. If the unlockPref("layout.css.font-variations.enabled") command is written in the "firefox.cfg" file, the pref remains locked.
There's not much we can do about this. Locking of prefs is not designed to be permanent, so depending on timing, it can be unlocked.
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.