/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* 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/. */ /* The prefs in this file are shipped with the GRE and should apply to all * embedding situations. Application-specific preferences belong somewhere else, * for example xpfe/bootstrap/browser-prefs.js * * Platform-specific #ifdefs at the end of this file override the generic * entries at the top. */ /* * SYNTAX HINTS: * * - Dashes are delimiters; use underscores instead. * - The first character after a period must be alphabetic. * - Computed values (e.g. 50 * 1024) don't work. */ pref("keyword.enabled", false); pref("general.useragent.locale", "chrome://global/locale/intl.properties"); pref("general.useragent.compatMode.firefox", false); // This pref exists only for testing purposes. In order to disable all // overrides by default, don't initialize UserAgentOverrides.jsm. pref("general.useragent.site_specific_overrides", true); pref("general.config.obscure_value", 13); // for MCD .cfg files pref("general.warnOnAboutConfig", true); // maximum number of dated backups to keep at any time pref("browser.bookmarks.max_backups", 5); // Delete HTTP cache v1 data pref("browser.cache.auto_delete_cache_version", 0); // Preference for switching the cache backend, can be changed freely at runtime // 0 - use the old (Darin's) cache // 1 - use the new cache back-end (cache v2) pref("browser.cache.use_new_backend", 0); pref("browser.cache.use_new_backend_temp", true); pref("browser.cache.disk.enable", true); // Is this the first-time smartsizing has been introduced? pref("browser.cache.disk.smart_size.first_run", true); // Does the user want smart-sizing? pref("browser.cache.disk.smart_size.enabled", true); // Which max value should we use for smart-sizing? pref("browser.cache.disk.smart_size.use_old_max", true); // Size (in KB) explicitly set by the user. Used when smart_size.enabled == false pref("browser.cache.disk.capacity", 256000); // When smartsizing is disabled we could potentially fill all disk space by // cache data when the disk capacity is not set correctly. To avoid that we // check the free space every time we write some data to the cache. The free // space is checked against two limits. Once the soft limit is reached we start // evicting the least useful entries, when we reach the hard limit writing to // the entry fails. pref("browser.cache.disk.free_space_soft_limit", 5120); // 5MB pref("browser.cache.disk.free_space_hard_limit", 1024); // 1MB // Max-size (in KB) for entries in disk cache. Set to -1 for no limit. // (Note: entries bigger than 1/8 of disk-cache are never cached) pref("browser.cache.disk.max_entry_size", 51200); // 50 MB pref("browser.cache.memory.enable", true); // -1 = determine dynamically, 0 = none, n = memory capacity in kilobytes //pref("browser.cache.memory.capacity", -1); // Max-size (in KB) for entries in memory cache. Set to -1 for no limit. // (Note: entries bigger than than 90% of the mem-cache are never cached) pref("browser.cache.memory.max_entry_size", 5120); // Memory limit (in kB) for new cache data not yet written to disk. Writes to // the cache are buffered and written to disk on background with low priority. // With a slow persistent storage these buffers may grow when data is coming // fast from the network. When the amount of unwritten data is exceeded, new // writes will simply fail. We have two buckets, one for important data // (priority) like html, css, fonts and js, and one for other data like images, // video, etc. // Note: 0 means no limit. pref("browser.cache.disk.max_chunks_memory_usage", 10240); pref("browser.cache.disk.max_priority_chunks_memory_usage", 10240); pref("browser.cache.disk_cache_ssl", true); // 0 = once-per-session, 1 = each-time, 2 = never, 3 = when-appropriate/automatically pref("browser.cache.check_doc_frequency", 3); // Limit of recent metadata we keep in memory for faster access, in Kb pref("browser.cache.disk.metadata_memory_limit", 250); // 0.25 MB // The number of chunks we preload ahead of read. One chunk has currently 256kB. pref("browser.cache.disk.preload_chunk_count", 4); // 1 MB of read ahead // The half life used to re-compute cache entries frecency in hours. pref("browser.cache.frecency_half_life_hours", 6); pref("browser.cache.offline.enable", true); // enable offline apps by default, disable prompt pref("offline-apps.allow_by_default", true); // offline cache capacity in kilobytes pref("browser.cache.offline.capacity", 512000); // the user should be warned if offline app disk usage exceeds this amount // (in kilobytes) pref("offline-apps.quota.warn", 51200); // zlib compression level used for cache compression: // 0 => disable compression // 1 => best speed // 9 => best compression // cache compression turned off for now - see bug #715198 pref("browser.cache.compression_level", 0); // Whether or not MozAbortablePromise is enabled. pref("dom.abortablepromise.enabled", false); // Whether or not testing features are enabled. pref("dom.quotaManager.testing", false); // Whether or not indexedDB is enabled. pref("dom.indexedDB.enabled", true); // Whether or not indexedDB experimental features are enabled. pref("dom.indexedDB.experimental", false); // Enable indexedDB logging. pref("dom.indexedDB.logging.enabled", true); // Detailed output in log messages. pref("dom.indexedDB.logging.details", true); // Enable profiler marks for indexedDB events. pref("dom.indexedDB.logging.profiler-marks", false); // Whether or not Web Workers are enabled. pref("dom.workers.enabled", true); // The number of workers per domain allowed to run concurrently. pref("dom.workers.maxPerDomain", 20); // Whether or not Shared Web Workers are enabled. pref("dom.workers.sharedWorkers.enabled", true); // WebSocket in workers are disabled by default. pref("dom.workers.websocket.enabled", true); // Service workers pref("dom.serviceWorkers.enabled", false); // Whether nonzero values can be returned from performance.timing.* pref("dom.enable_performance", true); // Whether resource timing will be gathered and returned by performance.GetEntries* pref("dom.enable_resource_timing", true); // Enable high-resolution timing markers for users pref("dom.enable_user_timing", true); // Enable printing performance marks/measures to log pref("dom.performance.enable_user_timing_logging", false); // Whether the Gamepad API is enabled pref("dom.gamepad.enabled", true); #ifdef RELEASE_BUILD pref("dom.gamepad.non_standard_events.enabled", false); #else pref("dom.gamepad.non_standard_events.enabled", true); #endif // Whether the KeyboardEvent.code is enabled pref("dom.keyboardevent.code.enabled", true); // If this is true, TextEventDispatcher dispatches keydown and keyup events // even during composition (keypress events are never fired during composition // even if this is true). pref("dom.keyboardevent.dispatch_during_composition", false); // Whether the WebCrypto API is enabled pref("dom.webcrypto.enabled", true); // Whether the UndoManager API is enabled pref("dom.undo_manager.enabled", false); // Whether URL,nsLocation,Link::GetHash should be percent encoded // in setter and percent decoded in getter (old behaviour = true) pref("dom.url.encode_decode_hash", true); // Whether to run add-on code in different compartments from browser code. This // causes a separate compartment for each (addon, global) combination, which may // significantly increase the number of compartments in the system. #ifdef NIGHTLY_BUILD pref("dom.compartment_per_addon", true); #else pref("dom.compartment_per_addon", false); #endif // Fastback caching - if this pref is negative, then we calculate the number // of content viewers to cache based on the amount of available memory. pref("browser.sessionhistory.max_total_viewers", -1); pref("ui.use_native_colors", true); pref("ui.click_hold_context_menus", false); // Duration of timeout of incremental search in menus (ms). 0 means infinite. pref("ui.menu.incremental_search.timeout", 1000); pref("browser.display.use_document_fonts", 1); // 0 = never, 1 = quick, 2 = always // 0 = default: always, except in high contrast mode // 1 = always // 2 = never pref("browser.display.document_color_use", 0); pref("browser.display.use_system_colors", false); pref("browser.display.foreground_color", "#000000"); pref("browser.display.background_color", "#FFFFFF"); pref("browser.display.force_inline_alttext", false); // true = force ALT text for missing images to be layed out inline // 0 = no external leading, // 1 = use external leading only when font provides, // 2 = add extra leading both internal leading and external leading are zero pref("browser.display.normal_lineheight_calc_control", 2); pref("browser.display.show_image_placeholders", true); // true = show image placeholders while image is loaded and when image is broken // min font device pixel size at which to turn on high quality pref("browser.display.auto_quality_min_font_size", 20); pref("browser.anchor_color", "#0000EE"); pref("browser.active_color", "#EE0000"); pref("browser.visited_color", "#551A8B"); pref("browser.underline_anchors", true); pref("browser.enable_automatic_image_resizing", false); pref("browser.enable_click_image_resizing", true); // See http://dev.w3.org/html5/spec/forms.html#attr-fe-autofocus pref("browser.autofocus", true); // See http://whatwg.org/specs/web-apps/current-work/#ping pref("browser.send_pings", false); pref("browser.send_pings.max_per_link", 1); // limit the number of pings that are sent per link click pref("browser.send_pings.require_same_host", false); // only send pings to the same host if this is true pref("browser.display.use_focus_colors", false); pref("browser.display.focus_background_color", "#117722"); pref("browser.display.focus_text_color", "#ffffff"); pref("browser.display.focus_ring_width", 1); pref("browser.display.focus_ring_on_anything", false); // focus ring border style. // 0 = solid border, 1 = dotted border pref("browser.display.focus_ring_style", 1); pref("browser.helperApps.alwaysAsk.force", false); pref("browser.helperApps.neverAsk.saveToDisk", ""); pref("browser.helperApps.neverAsk.openFile", ""); pref("browser.helperApps.deleteTempFileOnExit", false); // xxxbsmedberg: where should prefs for the toolkit go? pref("browser.chrome.toolbar_tips", true); // 0 = Pictures Only, 1 = Text Only, 2 = Pictures and Text pref("browser.chrome.toolbar_style", 2); // max image size for which it is placed in the tab icon for tabbrowser. // if 0, no images are used for tab icons for image documents. pref("browser.chrome.image_icons.max_size", 1024); pref("browser.triple_click_selects_paragraph", true); // Print/Preview Shrink-To-Fit won't shrink below 20% for text-ish documents. pref("print.shrink-to-fit.scale-limit-percent", 20); // Media cache size in kilobytes pref("media.cache_size", 512000); // When a network connection is suspended, don't resume it until the // amount of buffered data falls below this threshold (in seconds). pref("media.cache_resume_threshold", 999999); // Stop reading ahead when our buffered data is this many seconds ahead // of the current playback position. This limit can stop us from using arbitrary // amounts of network bandwidth prefetching huge videos. pref("media.cache_readahead_limit", 999999); // Master HTML5 media volume scale. pref("media.volume_scale", "1.0"); // Timeout for wakelock release pref("media.wakelock_timeout", 2000); // Whether we should play videos opened in a "video document", i.e. videos // opened as top-level documents, as opposed to inside a media element. pref("media.play-stand-alone", true); #if defined(XP_WIN) pref("media.decoder.heuristic.dormant.enabled", true); pref("media.decoder.heuristic.dormant.timeout", 60000); #endif #ifdef MOZ_WMF pref("media.windows-media-foundation.enabled", true); pref("media.windows-media-foundation.use-dxva", true); #endif #ifdef MOZ_DIRECTSHOW pref("media.directshow.enabled", true); #endif #ifdef MOZ_FMP4 pref("media.fragmented-mp4.enabled", true); pref("media.fragmented-mp4.ffmpeg.enabled", false); pref("media.fragmented-mp4.gmp.enabled", false); #if defined(XP_WIN) && defined(MOZ_WMF) || defined(XP_MACOSX) || defined(MOZ_WIDGET_GONK) // Denotes that the fragmented MP4 parser can be created by