Files
DroidDeck/tools/linuxfs/desktop/firefox-steamdeck.js
T
The412Banner 3d4cfededf Desktop: keep Firefox out of Work Offline, and probe the network in debug runs
Firefox decides whether it is online by dumping the routing table over
netlink, which Android denies to apps; it sees no default route, switches to
Work Offline and every page fails while the network is fine. A defaults file
staged into Firefox's pref directory turns that off, and drops the process
sandboxes that have nothing to set up under proot. Debug runs now log a name
lookup and a fetch over IPv4 and IPv6 from inside the session.
2026-09-20 04:51:50 -04:00

20 lines
1.0 KiB
JavaScript

// Firefox defaults for the SteamDeck desktop, staged by the app into
// /usr/lib/firefox/defaults/pref/. A user's own prefs.js still wins.
// Firefox judges "online" by dumping the routing table over netlink, which Android denies to
// apps; seeing no default route it switches itself to Work Offline and every page fails while
// the network is fine. Let it just try.
pref("network.manage-offline-status", false);
pref("browser.offline", false);
// No user namespaces on Android kernels and a ptrace'd process tree: the process sandboxes
// have nothing to set up and only add failure modes.
pref("security.sandbox.content.level", 0);
pref("media.cubeb.sandbox", false);
pref("security.sandbox.socket.process.level", 0);
// Handheld-sized chrome, and nothing phoning home on first run.
pref("browser.shell.checkDefaultBrowser", false);
pref("datareporting.policy.dataSubmissionEnabled", false);
pref("browser.aboutwelcome.enabled", false);
pref("browser.startup.homepage", "about:blank");
pref("layout.css.devPixelsPerPx", "1.25");