gecko-dev/mobile/android/app/geckoview-prefs.js

79 строки
2.6 KiB
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Non-static prefs that are specific to GeckoView belong in this file (unless
// there is a compelling and documented reason for them to belong in another
// file). Note that non-static prefs that are shared by GeckoView and Firefox
// for Android are in mobile.js, which this file includes.
//
// Please indent all prefs defined within #ifdef/#ifndef conditions. This
// improves readability, particular for conditional blocks that exceed a single
// screen.
#filter substitution
#include mobile.js
pref("privacy.trackingprotection.pbmode.enabled", false);
pref("dom.ipc.keepProcessesAlive.web", 1);
pref("dom.ipc.processCount", 1);
pref("dom.ipc.processPrelaunch.enabled", false);
// Tell Telemetry that we're in GeckoView mode.
pref("toolkit.telemetry.isGeckoViewMode", true);
// Disable the Telemetry Event Ping
pref("toolkit.telemetry.eventping.enabled", false);
pref("geckoview.console.enabled", false);
#ifdef RELEASE_OR_BETA
pref("geckoview.logging", "Warn");
#else
pref("geckoview.logging", "Debug");
#endif
// Enable WebShare support.
pref("dom.webshare.enabled", true);
// Enable capture attribute for file input.
pref("dom.capture.enabled", true);
// Disable Web Push until we get it working
pref("dom.push.enabled", true);
// enable external storage API
pref("dom.storageManager.enabled", true);
// enable Visual Viewport API
pref("dom.visualviewport.enabled", true);
// Inherit locale from the OS, used for multi-locale builds
pref("intl.locale.requested", "");
// Enable Safe Browsing blocklist updates
pref("browser.safebrowsing.features.phishing.update", true);
pref("browser.safebrowsing.features.malware.update", true);
// Enable Tracking Protection blocklist updates
pref("browser.safebrowsing.features.trackingAnnotation.update", true);
pref("browser.safebrowsing.features.trackingProtection.update", true);
// Enable cryptomining protection blocklist updates
pref("browser.safebrowsing.features.cryptomining.update", true);
// Enable fingerprinting protection blocklist updates
pref("browser.safebrowsing.features.fingerprinting.update", true);
// Start the browser in e10s mode
pref("browser.tabs.remote.autostart", true);
// Treat mouse as touch only on TV-ish devices
pref("ui.android.mouse_as_touch", 2);
// Fenix is currently not whitelisted for Web Authentication
pref("security.webauth.webauthn_enable_android_fido2", false);
// Enable autoplay permission prompts
pref("media.geckoview.autoplay.request", true);