michael@0: /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* The prefs in this file are shipped with the GRE and should apply to all michael@0: * embedding situations. Application-specific preferences belong somewhere else, michael@0: * for example xpfe/bootstrap/browser-prefs.js michael@0: * michael@0: * Platform-specific #ifdefs at the end of this file override the generic michael@0: * entries at the top. michael@0: */ michael@0: michael@0: /* michael@0: * SYNTAX HINTS: michael@0: * michael@0: * - Dashes are delimiters; use underscores instead. michael@0: * - The first character after a period must be alphabetic. michael@0: * - Computed values (e.g. 50 * 1024) don't work. michael@0: */ michael@0: michael@0: pref("keyword.enabled", false); michael@0: pref("general.useragent.locale", "chrome://global/locale/intl.properties"); michael@0: pref("general.useragent.compatMode.firefox", false); michael@0: michael@0: // This pref exists only for testing purposes. In order to disable all michael@0: // overrides by default, don't initialize UserAgentOverrides.jsm. michael@0: pref("general.useragent.site_specific_overrides", true); michael@0: michael@0: pref("general.config.obscure_value", 13); // for MCD .cfg files michael@0: michael@0: pref("general.warnOnAboutConfig", true); michael@0: michael@0: // maximum number of dated backups to keep at any time michael@0: pref("browser.bookmarks.max_backups", 5); michael@0: michael@0: // Preference for switching the cache backend, can be changed freely at runtime michael@0: // 0 - use the old (Darin's) cache [DEFAULT] michael@0: // 1 - use the new cache back-end (cache v2) michael@0: // 2 - do a random choise for A/B testing (browser chooses old or new back-end at startup michael@0: // and keeps it per session) michael@0: pref("browser.cache.use_new_backend", 0); michael@0: michael@0: pref("browser.cache.disk.enable", true); michael@0: // Is this the first-time smartsizing has been introduced? michael@0: pref("browser.cache.disk.smart_size.first_run", true); michael@0: // Does the user want smart-sizing? michael@0: pref("browser.cache.disk.smart_size.enabled", true); michael@0: // Which max value should we use for smart-sizing? michael@0: pref("browser.cache.disk.smart_size.use_old_max", true); michael@0: // Size (in KB) explicitly set by the user. Used when smart_size.enabled == false michael@0: pref("browser.cache.disk.capacity", 256000); michael@0: // Max-size (in KB) for entries in disk cache. Set to -1 for no limit. michael@0: // (Note: entries bigger than 1/8 of disk-cache are never cached) michael@0: pref("browser.cache.disk.max_entry_size", 51200); // 50 MB michael@0: pref("browser.cache.memory.enable", true); michael@0: // -1 = determine dynamically, 0 = none, n = memory capacity in kilobytes michael@0: //pref("browser.cache.memory.capacity", -1); michael@0: // Max-size (in KB) for entries in memory cache. Set to -1 for no limit. michael@0: // (Note: entries bigger than than 90% of the mem-cache are never cached) michael@0: pref("browser.cache.memory.max_entry_size", 5120); michael@0: pref("browser.cache.disk_cache_ssl", true); michael@0: // 0 = once-per-session, 1 = each-time, 2 = never, 3 = when-appropriate/automatically michael@0: pref("browser.cache.check_doc_frequency", 3); michael@0: michael@0: // Limit of recent metadata we keep in memory for faster access, in Kb michael@0: pref("browser.cache.disk.metadata_memory_limit", 250); // 0.25 MB michael@0: michael@0: pref("browser.cache.offline.enable", true); michael@0: // enable offline apps by default, disable prompt michael@0: pref("offline-apps.allow_by_default", true); michael@0: michael@0: // offline cache capacity in kilobytes michael@0: pref("browser.cache.offline.capacity", 512000); michael@0: michael@0: // the user should be warned if offline app disk usage exceeds this amount michael@0: // (in kilobytes) michael@0: pref("offline-apps.quota.warn", 51200); michael@0: michael@0: // zlib compression level used for cache compression: michael@0: // 0 => disable compression michael@0: // 1 => best speed michael@0: // 9 => best compression michael@0: // cache compression turned off for now - see bug #715198 michael@0: pref("browser.cache.compression_level", 0); michael@0: michael@0: // Whether or not testing features are enabled. michael@0: pref("dom.quotaManager.testing", false); michael@0: michael@0: // Whether or not indexedDB is enabled. michael@0: pref("dom.indexedDB.enabled", true); michael@0: // Space to allow indexedDB databases before prompting (in MB). michael@0: pref("dom.indexedDB.warningQuota", 50); michael@0: // Whether or not indexedDB experimental features are enabled. michael@0: pref("dom.indexedDB.experimental", false); michael@0: michael@0: // Whether or not Web Workers are enabled. michael@0: pref("dom.workers.enabled", true); michael@0: // The number of workers per domain allowed to run concurrently. michael@0: pref("dom.workers.maxPerDomain", 20); michael@0: michael@0: // Whether or not Shared Web Workers are enabled. michael@0: pref("dom.workers.sharedWorkers.enabled", true); michael@0: michael@0: // Whether nonzero values can be returned from performance.timing.* michael@0: pref("dom.enable_performance", true); michael@0: michael@0: // Whether resource timing will be gathered and returned by performance.GetEntries* michael@0: pref("dom.enable_resource_timing", false); michael@0: michael@0: // Whether the Gamepad API is enabled michael@0: pref("dom.gamepad.enabled", true); michael@0: #ifdef RELEASE_BUILD michael@0: pref("dom.gamepad.non_standard_events.enabled", false); michael@0: #else michael@0: pref("dom.gamepad.non_standard_events.enabled", true); michael@0: #endif michael@0: michael@0: // Whether the UndoManager API is enabled michael@0: pref("dom.undo_manager.enabled", false); michael@0: michael@0: // Fastback caching - if this pref is negative, then we calculate the number michael@0: // of content viewers to cache based on the amount of available memory. michael@0: pref("browser.sessionhistory.max_total_viewers", -1); michael@0: michael@0: pref("ui.use_native_colors", true); michael@0: pref("ui.click_hold_context_menus", false); michael@0: pref("browser.display.use_document_fonts", 1); // 0 = never, 1 = quick, 2 = always michael@0: pref("browser.display.use_document_colors", true); michael@0: pref("browser.display.use_system_colors", false); michael@0: pref("browser.display.foreground_color", "#000000"); michael@0: pref("browser.display.background_color", "#FFFFFF"); michael@0: pref("browser.display.force_inline_alttext", false); // true = force ALT text for missing images to be layed out inline michael@0: // 0 = no external leading, michael@0: // 1 = use external leading only when font provides, michael@0: // 2 = add extra leading both internal leading and external leading are zero michael@0: pref("browser.display.normal_lineheight_calc_control", 2); michael@0: pref("browser.display.show_image_placeholders", true); // true = show image placeholders while image is loaded and when image is broken michael@0: // min font device pixel size at which to turn on high quality michael@0: pref("browser.display.auto_quality_min_font_size", 20); michael@0: pref("browser.anchor_color", "#0000EE"); michael@0: pref("browser.active_color", "#EE0000"); michael@0: pref("browser.visited_color", "#551A8B"); michael@0: pref("browser.underline_anchors", true); michael@0: pref("browser.enable_automatic_image_resizing", false); michael@0: pref("browser.enable_click_image_resizing", true); michael@0: michael@0: // See http://dev.w3.org/html5/spec/forms.html#attr-fe-autofocus michael@0: pref("browser.autofocus", true); michael@0: michael@0: // See http://whatwg.org/specs/web-apps/current-work/#ping michael@0: pref("browser.send_pings", false); michael@0: pref("browser.send_pings.max_per_link", 1); // limit the number of pings that are sent per link click michael@0: pref("browser.send_pings.require_same_host", false); // only send pings to the same host if this is true michael@0: michael@0: pref("browser.display.use_focus_colors", false); michael@0: pref("browser.display.focus_background_color", "#117722"); michael@0: pref("browser.display.focus_text_color", "#ffffff"); michael@0: pref("browser.display.focus_ring_width", 1); michael@0: pref("browser.display.focus_ring_on_anything", false); michael@0: // focus ring border style. michael@0: // 0 = solid border, 1 = dotted border michael@0: pref("browser.display.focus_ring_style", 1); michael@0: michael@0: pref("browser.helperApps.alwaysAsk.force", false); michael@0: pref("browser.helperApps.neverAsk.saveToDisk", ""); michael@0: pref("browser.helperApps.neverAsk.openFile", ""); michael@0: pref("browser.helperApps.deleteTempFileOnExit", false); michael@0: michael@0: // xxxbsmedberg: where should prefs for the toolkit go? michael@0: pref("browser.chrome.toolbar_tips", true); michael@0: // 0 = Pictures Only, 1 = Text Only, 2 = Pictures and Text michael@0: pref("browser.chrome.toolbar_style", 2); michael@0: // max image size for which it is placed in the tab icon for tabbrowser. michael@0: // if 0, no images are used for tab icons for image documents. michael@0: pref("browser.chrome.image_icons.max_size", 1024); michael@0: michael@0: pref("browser.triple_click_selects_paragraph", true); michael@0: michael@0: // Print/Preview Shrink-To-Fit won't shrink below 20% for text-ish documents. michael@0: pref("print.shrink-to-fit.scale-limit-percent", 20); michael@0: michael@0: // Media cache size in kilobytes michael@0: pref("media.cache_size", 512000); michael@0: michael@0: // Master HTML5 media volume scale. michael@0: pref("media.volume_scale", "1.0"); michael@0: michael@0: // Timeout for wakelock release michael@0: pref("media.wakelock_timeout", 2000); michael@0: michael@0: #ifdef MOZ_WMF michael@0: pref("media.windows-media-foundation.enabled", true); michael@0: pref("media.windows-media-foundation.use-dxva", true); michael@0: pref("media.windows-media-foundation.play-stand-alone", true); michael@0: #endif michael@0: #ifdef MOZ_DIRECTSHOW michael@0: pref("media.directshow.enabled", true); michael@0: #endif michael@0: #ifdef MOZ_FMP4 michael@0: pref("media.fragmented-mp4.enabled", true); michael@0: pref("media.fragmented-mp4.ffmpeg.enabled", false); michael@0: // Denotes that the fragmented MP4 parser can be created by