All users were logged out of Bugzilla on October 13th, 2018

Prefs not in libpref/init/all.js ignored

NEW
Unassigned

Status

a year ago
a year ago

People

(Reporter: pehrsons, Unassigned, NeedInfo)

Tracking

Version 3
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
Per my findings in bug 1390521 comment 3 prefs set in wpt metadata (__dir__.ini or test.ini doesn't matter) are ignored unless they are already present in libpref/init/all.js.

We ran into this as we had consciously taken a decision to not expose a certain test-only pref to about:config.
Ah! Thanks for the investigation. I don't know much about how the prefs service works, but the code to inject prefs is called at [1] and the code to actually set a pref is [2]. So if I was guessing (which I am :) I would suggest that maybe only prefs in all.js have an associated type, so in your case we end up with a PREF_INVALID and so silently do nothing?

[1] http://searchfox.org/mozilla-central/source/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py#193
[2] http://searchfox.org/mozilla-central/source/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py#206
Flags: needinfo?(apehrson)
You need to log in before you can comment on or make changes to this bug.