Skip to content

Commit e02305e

Browse files
author
Uwe Grawert
committed
Add default preferences file
1 parent aef8ee8 commit e02305e

5 files changed

Lines changed: 52 additions & 0 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.git
2+
bin
23
README.md

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ RUN groupadd firefox && \
2020
COPY start-firefox.sh /tmp/
2121
COPY --chown=firefox:firefox defaults.list /home/firefox/.local/share/applications
2222
COPY --chown=firefox:firefox java-webstart.desktop /home/firefox/.local/share/applications
23+
COPY mozilla.cfg /usr/lib64/firefox/defaults/preferences/all-redhat.js
2324

2425
ENTRYPOINT ["/tmp/start-firefox.sh"]

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ pref("network.proxy.share_proxy_settings", true);
6666
docker run -v "$PWD/proxy.js:/etc/firefox/pref/proxy.js" ..
6767
```
6868

69+
## Custom preferences
70+
71+
You can add your custom preferences file by overriding the default preferences.
72+
73+
```shell
74+
docker run -v "mozilla.cfg:/usr/lib64/firefox/defaults/preferences/all-redhat.js"
75+
```
76+
6977
## Problems
7078

7179
### IcedTea cannot run Java application

bin/firefox-java.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# Put me into your PATH
44

5+
NAME="firefox-java"
56
IMAGE="${IMAGE:-ugrawert/firefox-java}"
67
X11_SOCKET="${X11_SOCKET:-/tmp/.X11-unix}"
78
DOCKER_DISPLAY="${DOCKER_DISPLAY:-unix${DISPLAY}}"
@@ -19,4 +20,5 @@ docker run --rm -ti \
1920
-e "uid=${uid}" \
2021
-e "gid=${gid}" \
2122
-e "URL=${URL}" \
23+
--name ${NAME} \
2224
${IMAGE}

mozilla.cfg

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// default settings
2+
pref("app.update.autoUpdateEnabled", false);
3+
pref("app.update.enabled", false);
4+
pref("browser.display.use_system_colors", true);
5+
pref("browser.bookmarks.restore_default_bookmarks", false);
6+
pref("browser.shell.checkDefaultBrowser", false);
7+
pref("browser.startup.page", 0);
8+
pref("browser.tabs.warnOnClose", false);
9+
pref("datareporting.healthreport.uploadEnabled", false);
10+
pref("datareporting.healthreport.service.enabled",false);
11+
pref("distribution.canonical.bookmarksProcessed", false);
12+
pref("extensions.update.autoUpdate", false);
13+
pref("extensions.update.enabled", false);
14+
pref("general.smoothScroll", true);
15+
pref("intl.accept_languages", "en");
16+
pref("intl.charsetmenu.browser.cache", "ISO-8859-1, UTF-8");
17+
pref("intl.locale.matchOS", true);
18+
pref("layout.spellcheckDefault", 0);
19+
pref("security.warn_entering_secure", false);
20+
pref("security.warn_entering_secure.show_once", false);
21+
pref("security.warn_entering_weak", false);
22+
pref("security.warn_entering_weak.show_once", false);
23+
pref("security.warn_leaving_secure", false);
24+
pref("security.warn_leaving_secure.show_once", false);
25+
pref("security.warn_submit_insecure", false);
26+
pref("security.warn_submit_insecure.show_once", false);
27+
pref("security.warn_viewing_mixed", false);
28+
pref("security.warn_viewing_mixed.show_once", false);
29+
pref("signon.rememberSignons", true);
30+
pref("startup.homepage_welcome_url", "about:blank");
31+
pref("startup.homepage_override_url", "about:blank");
32+
pref("toolkit.crashreporter.enabled", false);
33+
pref("toolkit.networkmanager.disable", false);
34+
pref("toolkit.telemetry.prompted", false);
35+
pref("toolkit.telemetry.rejected", true);
36+
37+
/* Workaround for rhbz#1110291 */
38+
pref("network.negotiate-auth.allow-insecure-ntlm-v1", true);
39+
/* Workaround for mozbz#1063315 */
40+
pref("security.use_mozillapkix_verification", false);

0 commit comments

Comments
 (0)