Search for default preferences in /etc/firefox/defaults/pref/
Categories
(Core :: Preferences: Backend, enhancement, P5)
Tracking
()
People
(Reporter: jhorak, Assigned: jhorak)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
benjamin
:
review-
|
Details | Diff | Splinter Review |
(deleted),
text/x-phabricator-request
|
Details |
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Assignee | ||
Comment 13•9 years ago
|
||
Updated•8 years ago
|
Comment 14•7 years ago
|
||
Comment 15•5 years ago
|
||
Mike,
what's your statement to this bug? It's another enterprise class request and we have to backport it locally every Firefox update for Fedora/RHEL. Would be great to have it landed in some shape and standardize a place for Firefox system wide configuration.
Thanks.
Comment 16•5 years ago
|
||
What types of preferences are read from this location? Would having the policies.json in etc/firefox be enough?
Comment 17•5 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #16)
What types of preferences are read from this location? Would having the policies.json in etc/firefox be enough?
This location has the same config as /usr/lib64/firefox/defaults/pref - i.e. .js files with pref("...") settings.
If the pref variables can be set from policies.json then we don't need /etc/mozilla/firefox/default/prefs or it's variant.
For rationale of it see https://bugzilla.mozilla.org/show_bug.cgi?id=1170092#c0
Updated•5 years ago
|
Comment 18•5 years ago
|
||
If the pref variables can be set from policies.json then we don't need /etc/mozilla/firefox/default/prefs or it's variant.
We're slowing adding prefs that folks want to be set. See:
https://github.com/mozilla/policy-templates/blob/master/README.md#preferences
We're not giving free access to preferences because lots of folks set completely unnecessary preferences (or don't understand the consequences of preferences they set)
So if there are specific preferences folks need, I'd love to hear about them and I'll move up in priority setting global preferences via etc/firefox.
Comment hidden (off-topic) |
Comment hidden (off-topic) |
Updated•2 years ago
|
Comment 21•2 years ago
|
||
Suhaib are you still working on this ? I'm landing such a fix for Snap and Flatpak in bug 1785278, we could build on top of that for the rest of packages.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 22•2 years ago
|
||
This patch has been shipped downstream in Fedora for many years. May be worth to upstream it now.
Comment 23•2 years ago
|
||
Yeah, I think I'm finally ready to ship this on Linux only since we've moved search and other things away from preferences.
Assignee | ||
Comment 24•2 years ago
|
||
Preferences from /etc/firefox/defaults/pref overwrites preferences set in omni.jar
and firefox/defaults/pref. The code was used for flatpak and snap only, but it could
be used also for regular Linux builds.
Comment 25•2 years ago
|
||
Comment 26•2 years ago
|
||
Backed out changeset d0d2fe421be4 (Bug 1170092) for xpcshell failures on /test_autoconfig_custom_path.js.
Backout link
Push with failures <--> X2
Failure Log
Comment 27•2 years ago
|
||
Weird. I don't know why that would have caused that. I'll do some checking.
Comment 28•2 years ago
|
||
So just getting the NS_OS_SYSTEM_CONFIG_DIR in Preferences.cpp
rv = NS_GetSpecialDirectory(NS_OS_SYSTEM_CONFIG_DIR,
getter_AddRefs(defaultSnapPrefDir));
is causing the tests to fail because once we've grabbed the directory, we are caching it somehow so setting MOZ_SYSTEM_CONFIG_DIR in the tests isn't working.
I don't understand why because as far as I know, we don't cache special directories.
Still investigating.
Comment 29•2 years ago
|
||
Comment 30•2 years ago
|
||
bugherder |
Comment 31•2 years ago
|
||
[clarifying bug title to reflect the actual directory that we settled on using here]
Updated•2 years ago
|
Description
•