// 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. // // Please indent all prefs defined within #ifdef/#ifndef conditions. This // improves readability, particular for conditional blocks that exceed a single // screen.
// Caret browsing is disabled on mobile (bug 476009)
pref("accessibility.browsewithcaret_shortcut.enabled", false);
// Disable scrollbar dragging on Android (bug 1339831)
pref("apz.drag.enabled", false);
// Tweak fling curving to make medium-length flings go a bit faster (bug 1243854)
pref("apz.fling_curve_function_x1", "0.59");
pref("apz.fling_curve_function_x2", "0.05");
pref("apz.fling_curve_function_y1", "0.46");
pref("apz.fling_curve_function_y2", "1.00");
// :gordonb from UX said this value makes fling curving // feel a lot better (bug 1095727)
pref("apz.fling_curve_threshold_inches_per_ms", "0.01");
// Adjust fling physics based on UX feedback (bug 1229839)
pref("apz.fling_friction", "0.004");
// Use Android OverScroller class for fling animation (bug 1229462)
pref("apz.fling_stopped_threshold", "0.0");
// :gordonb from UX said this value makes fling curving // feel a lot better (bug 1095727)
pref("apz.max_velocity_inches_per_ms", "0.07");
// Don't allow a faraway second tap to start a one-touch pinch gesture (bug 1391770)
pref("apz.second_tap_tolerance", "0.3");
// This value originates from bug 1174532
pref("apz.touch_move_tolerance", "0.03");
// Lower the touch-start tolerance threshold to reduce scroll lag with APZ (bug 1230077)
pref("apz.touch_start_tolerance", "0.06");
// Prevent tooltips from showing up (bug 623063)
pref("browser.chrome.toolbar_tips", false);
// True if you always want dump() to work // // On Android, you also need to do the following for the output // to show up in logcat: // // $ adb shell stop // $ adb shell setprop log.redirect-stdio true // $ adb shell start
pref("browser.dom.window.dump.enabled", true);
// Default to ~/Downloads (bug 437954)
pref("browser.download.folderList", 1);
// Use Android DownloadManager for scanning downloads (bug 816318)
pref("browser.download.manager.addToRecentDocs", true);
// Load PDF files inline with PDF.js (bug 1754499)
pref("browser.download.open_pdf_attachments_inline", true);
pref("browser.download.useDownloadDir", true);
// When enabled, Services.uriFixup.isDomainKnown('localhost') will return true
pref("browser.fixup.domainwhitelist.localhost", true);
// Open in tab preferences
pref("browser.link.open_newwindow", 3);
// Supported values: // - 0: Force all new windows to tabs // - 1: Don't force // - 2: Only force those with no features set
pref("browser.link.open_newwindow.restriction", 0);
// Don't allow meta-refresh when backgrounded (bug 518805)
pref("browser.meta_refresh_when_inactive.disabled", true);
// The download protection UI is not implemented yet (bug 1239094).
pref("browser.safebrowsing.downloads.enabled", false);
// Enables the translations engine
pref("browser.translations.enable", true); // Used for mocking data for GeckoView Translations tests, should use in addition with an automation check.
pref("browser.translations.geckoview.enableAllTestMocks", false);
// Used for mocking data for GeckoView WebCompat tests, should use in addition with an automation check.
pref("browser.webcompat.geckoview.enableAllTestMocks", false);
// Enable sparse localization by setting a few package locale overrides (bug 792077)
pref("chrome.override_package.global", "browser");
pref("chrome.override_package.mozapps", "browser");
pref("chrome.override_package.passwordmgr", "browser");
// Allow Console API to log messages on stdout (bug 1480544)
pref("devtools.console.stdout.chrome", true);
// Absolute path to the devtools unix domain socket file used // to communicate with a usb cable via adb forward.
pref("devtools.debugger.unix-domain-socket", "@ANDROID_PACKAGE_NAME@/firefox-debugger-socket");
// Block popups by default (bug 436057)
pref("dom.disable_open_during_load", true);
// Don't allow JS to move and resize existing windows (bug 456081)
pref("dom.disable_window_move_resize", true);
// "graceful" process termination is misinterpreted as a process crash. // To avoid this issue, we set dom.ipc.keepProcessesAlive.extension to 1. // This stops Gecko from terminating the extension process. This also reduces // the overhead of resuming a suspended (background) extension page. // Note that this only covers "graceful" termination by Gecko. // Android-triggered force-kills and OOM are not prevented and should still // be accounted for. See bug 1847608 for more info
pref("dom.ipc.keepProcessesAlive.extension", 1);
// Keep empty content process alive on Android (bug 1447393)
pref("dom.ipc.keepProcessesAlive.web", 1);
// This value is derived from the calculation: // MOZ_ANDROID_CONTENT_SERVICE_COUNT - dom.ipc.processCount // (dom.ipc.processCount is set in GeckoRuntimeSettings.java) (bug 1619655)
pref("dom.ipc.processCount.webCOOP+COEP", 38);
// Disable the preallocated process on Android
pref("dom.ipc.processPrelaunch.enabled", false);
// Enable meta-viewport support for font inflation code (bug 1106255)
pref("dom.meta-viewport.enabled", true);
// The maximum number of recent message IDs to store for each push // subscription, to avoid duplicates for unacknowledged messages (bug 1207743)
pref("dom.push.maxRecentMessageIDsPerSubscription", 0);
// Allow service workers to open windows for a longer period after a notification // click on mobile. This is to account for some devices being quite slow (bug 1409761)
pref("dom.serviceWorkers.disable_open_click_delay", 5000);
// Enable WebShare support (bug 1402369)
pref("dom.webshare.enabled", true);
// Disable add-ons that are not installed by the user in all scopes by default (See the SCOPE // constants in AddonManager.sys.mjs for values to use here, and Bug 1405528 for a rationale)
pref("extensions.autoDisableScopes", 15);
pref("extensions.enabledScopes", 5);
// If true, unprivileged extensions may use experimental APIs
pref("extensions.experiments.enabled", false);
// Support credit cards in GV autocomplete API (bug 1691819)
pref("extensions.formautofill.addresses.capture.enabled", true);
// Don't let XPIProvider install distribution add-ons; we do our own thing on mobile
pref("extensions.installDistroAddons", false);
// Require language packs to be signed (bug 1454141)
pref("extensions.langpacks.signatures.required", true);
// Enables some extra Extension System Logging (can reduce performance)
pref("extensions.logging.enabled", false);
// Whether MV3 restrictions for actions popup urls should be extended to MV2 extensions // (only allowing same extension urls to be used as action popup urls)
pref("extensions.manifestV2.actionsPopupURLRestricted", true);
// Disables strict compatibility, making addons compatible-by-default
pref("extensions.strictCompatibility", false);
// Enable prompts for browser.permissions.request() (bug 1392176)
pref("extensions.webextOptionalPermissionPrompts", true);
// Start (proxy) extensions as soon as a network request is observed, instead // of waiting until the first browser window has opened. This is needed because // GeckoView can trigger requests without opening geckoview.xhtml.
pref("extensions.webextensions.early_background_wakeup_on_request", true);
// Disable userScripts until double-confirmation is implemented (bug 1931556).
pref("extensions.userScripts.mv3.enabled", false);
// Scroll and zoom into editable form fields (bug 834613)
pref("formhelper.autozoom", true);
// Optionally send web console output to logcat (bug 1415318)
pref("geckoview.console.enabled", false);
#ifdef NIGHTLY_BUILD // Used for mocking data for GeckoView shopping tests, should use in addition with an automation check.
pref("geckoview.shopping.mock_test_response", false);
#endif
pref("image.cache.size", 1048576); // bytes
// Inherit locale from the OS, used for multi-locale builds
pref("intl.locale.requested", "");
pref("keyword.enabled", true);
// Always tilt the caret to match the text selection guideline (bug 1097398)
pref("layout.accessiblecaret.always_tilt", true);
// Show the caret when long tapping on empty content (bug 1246064)
pref("layout.accessiblecaret.caret_shown_when_long_tapping_on_empty_content", true);
// Initial text selection on long-press is enhanced to provide // a smarter phone-number selection for direct-dial ActionBar action (bug 1235508)
pref("layout.accessiblecaret.extend_selection_for_phone_number", true);
// Provide haptic feedback on longPress selection events (bug 1230613)
pref("layout.accessiblecaret.hapticfeedback", true);
// AccessibleCaret css for Android L style assets (bug 1097398)
pref("layout.accessiblecaret.height", "22.0");
pref("layout.accessiblecaret.margin-left", "-11.5");
pref("layout.accessiblecaret.width", "22.0");
// Update any visible carets for selection changes due to JS calls, // but don't show carets if carets are hidden (bug 1463576)
pref("layout.accessiblecaret.script_change_update_mode", 1);
// Disable CSS error reporting by default to improve performance (bug 831123)
pref("layout.css.report_errors", false);
// Ask for permission when enumerating WebRTC devices (bug 1369108)
pref("media.navigator.permission.device", true);
// On mobile we throttle the download once the readahead_limit is hit // if we're using a cellular connection, even if the download is slow, // this is to preserve battery and data (bug 1540573)
pref("media.throttle-cellular-regardless-of-download-rate", true);
// Number of video frames we buffer while decoding video. // On Android this is decided by a similar value which varies for // each OMX decoder |OMX_PARAM_PORTDEFINITIONTYPE::nBufferCountMin|. This // number must be less than the OMX equivalent or gecko will think it is // chronically starved of video frames. All decoders seen so far have a value // of at least 4. (bug 973408)
pref("media.video-queue.default-size", 3);
// The maximum number of queued frames to send to the compositor. // On Android, it needs to be throttled because SurfaceTexture contains only one // (the most recent) image data. (bug 1299068)
pref("media.video-queue.send-to-compositor-size", 1);
// Set HPACK receive buffer size appropriately for Android (bug 1296280)
pref("network.http.http2.default-hpack-buffer", 4096);
// HTTP/2 Server Push (bug 790388)
pref("network.http.http2.push-allowance", 32768);
// Reduce HTTP Idle connection timeout on Android to improve battery life (bug 1007959)
pref("network.http.keep-alive.timeout", 109);
// Update connection limits; especially for proxies (bug 648603)
pref("network.http.max-persistent-connections-per-proxy", 20);
// Disable warning for mailto and tel protocols (bug 589403)
pref("network.protocol-handler.warn-external.mailto", false);
pref("network.protocol-handler.warn-external.tel", false);
// Disable warning for sms protocol (bug 819554)
pref("network.protocol-handler.warn-external.sms", false);
// Do not warn when opening YouTube (bug 630364)
pref("network.protocol-handler.warn-external.vnd.youtube", false);
// Transmit UDP busy-work to the LAN when anticipating low latency // network reads and on wifi to mitigate 802.11 Power Save Polling delays // (bug 888268)
pref("network.tickle-wifi.enabled", true);
// Complete the page load progress bar at different places according to this pref. // See the possible values below: // 0 no change // 1 complete progressbar at DOMContentLoaded // 2 complete progressbar at first MozAfterPaint after DOMContentLoaded
#ifdef NIGHTLY_BUILD
pref("page_load.progressbar_completion", 2);
#else
pref("page_load.progressbar_completion", 0);
#endif
// Try to convert PDFs sent as octet-stream (bug 1754499)
pref("pdfjs.handleOctetStream", true);
// Disable tracking protection in PBM for GeckoView (bug 1436887)
pref("privacy.trackingprotection.pbmode.enabled", false);
// Relay integration is not supported on mobile
pref("signon.firefoxRelay.feature", "not available");
pref("signon.showAutoCompleteFooter", true);
// Delegate autocomplete to GeckoView (bug 1618058)
pref("toolkit.autocomplete.delegate", true);
// Locked because any other value would break GeckoView
pref("toolkit.defaultChromeURI", "chrome://geckoview/content/geckoview.xhtml", locked);
// Whether to use unified telemetry behavior; requires a restart to take effect
pref("toolkit.telemetry.unified", false);
// Download protection lists are not available on Android (bug 1397938, bug 1394017)
pref("urlclassifier.downloadAllowTable", "");
pref("urlclassifier.downloadBlockTable", "");
// The Potentially Harmful Apps list replaces the malware one on Android (bug 1394017)
pref("urlclassifier.malwareTable", "goog-harmful-proto,goog-unwanted-proto,moztest-harmful-simple,moztest-malware-simple,moztest-unwanted-simple");
// Android doesn't support the new sync storage yet (bug 1625257)
pref("webextensions.storage.sync.kinto", true);
// Require extensions to be signed (bug 1244329)
pref("xpinstall.signatures.required", true);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.