#979821 firefox-esr: Try to read policies.json from wrong directory

Package:
firefox-esr
Source:
firefox-esr
Description:
Mozilla Firefox web browser - Extended Support Release (ESR)
Submitter:
Timo Poikola
Date:
2022-02-18 08:27:03 UTC
Severity:
normal
#979821#5
Date:
2021-01-11 17:38:52 UTC
From:
To:
Dear maintainer.

My firefox-esr is a little bit confused the correct location of "policies.json".
Mozilla's page https://support.mozilla.org/en-US/kb/managing-policies-linux-desktops
says:
    1. Create a file called policies.json with your policies.
    2. Place this file in firefox/distribution where "firefox"
       is the installation directory for Firefox. (This will
       vary per distribution).
In the Debian, place is definetely under /etc. Firefox-esr's debian package
creates /etc/firefox-esr :
pi@raspberrypi:~ $ dpkg -L firefox-esr  |grep etc
/etc
/etc/firefox-esr
/etc/firefox-esr/firefox-esr.js

but try to read policies.json from /etc/firefox:
pi@raspberrypi:~ $ grep "/etc/fi" firefox.strace
faccessat(AT_FDCWD, "/etc/firefox/policies/policies.json", F_OK) = -1 ENOENT (No such file or directory)

and this is the problem, because it is not documented or it is not the directory created by
debian installer. And anyway, strace should not be a end user tool to find out location of
fundamendal configuration files.

My suggestion is:
1. Place this file to /etc/firefox-esr/polcies
2. Document it
3. (Optionally) Put into this policies.json
   {"policies":{"DisableAppUpdate":true}}
   because an end-user-program should not to try
   update itself. It is matter of a package manager.

Thanks in advance

#979821#10
Date:
2022-02-18 08:24:11 UTC
From:
To:
Dear Maintainer,

I can confirm this issue is still present in the 91.x cycle.

The configuration dir for firefox-esr being /etc/firefox-esr,
the policies folder should be /etc/firefox-esr/policies, not
/etc/firefox/policies.

Best regards,
Arnaud