/* -*- 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); // Number of seconds the cache spends writting pending data and closing files // after the shutdown has been signalled. Past that time data are never written // and files are left open given up to the OS to do the cleanup. pref("browser.cache.max_shutdown_io_lag", 2); 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 File Handle is enabled. pref("dom.fileHandle.enabled", true); // Whether or not the Permissions API is enabled. #ifdef NIGHTLY_BUILD pref("dom.permissions.enabled", true); #else pref("dom.permissions.enabled", false); #endif // Whether or not selection events are enabled #ifdef NIGHTLY_BUILD pref("dom.select_events.enabled", true); #else pref("dom.select_events.enabled", false); #endif // 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); pref("dom.serviceWorkers.enabled", false); // Allow service workers to intercept network requests using the fetch event pref("dom.serviceWorkers.interception.enabled", false); // Allow service workers to intercept opaque (cross origin) responses pref("dom.serviceWorkers.interception.opaque.enabled", true); // The amount of time (milliseconds) service workers keep running after each event. pref("dom.serviceWorkers.idle_timeout", 30000); // The amount of time (milliseconds) service workers can be kept running using waitUntil promises. pref("dom.serviceWorkers.idle_extended_timeout", 300000); // Enable test for 24 hours update, service workers will always treat last update check time is over 24 hours pref("dom.serviceWorkers.testUpdateOverOneDay", 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); // Enable notification of performance timing pref("dom.performance.enable_notify_performance_timing", 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 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 ::GetHash should do percent decoding (old behaviour = true) pref("dom.url.getters_decode_hash", false); // 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. pref("dom.compartment_per_addon", true); // 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); // enable showing image placeholders while image is loading or when image is broken pref("browser.display.show_image_placeholders", true); // if browser.display.show_image_placeholders is true then this controls whether the loading image placeholder and border is shown or not pref("browser.display.show_loading_image_placeholder", false); // 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); // Enable scale transform for stretchy MathML operators. See bug 414277. pref("mathml.scale_stretchy_operators.enabled", true); // 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); // Whether we should delay actioning a "play()" JS function call and autoplay // attribute until the media element's owner document is visible. pref("media.block-play-until-visible", false); pref("media.hardware-video-decoding.enabled", true); pref("media.decoder.heuristic.dormant.enabled", true); pref("media.decoder.heuristic.dormant.timeout", 60000); #ifdef MOZ_DIRECTSHOW pref("media.directshow.enabled", true); #endif #ifdef MOZ_FMP4 pref("media.mp4.enabled", true); // Specifies whether the PDMFactory can create a test decoder that #endif // just outputs blank frames/audio instead of actually decoding. The blank // decoder works on all platforms. pref("media.use-blank-decoder", false); #ifdef MOZ_WMF pref("media.wmf.enabled", true); pref("media.wmf.decoder.thread-count", -1); pref("media.wmf.low-latency.enabled", false); #endif #if defined(MOZ_FFMPEG) pref("media.ffmpeg.enabled", true); pref("media.libavcodec.allow-obsolete", false); #endif pref("media.gmp.decoder.enabled", false); pref("media.gmp.decoder.aac", 0); pref("media.gmp.decoder.h264", 0); #ifdef MOZ_RAW pref("media.raw.enabled", true); #endif pref("media.ogg.enabled", true); pref("media.opus.enabled", true); #ifdef MOZ_WAVE pref("media.wave.enabled", true); #endif #ifdef MOZ_WEBM pref("media.webm.enabled", true); #if defined(MOZ_FMP4) && defined(MOZ_WMF) pref("media.webm.intel_decoder.enabled", false); #endif #endif #ifdef MOZ_GSTREAMER pref("media.gstreamer.enabled", true); pref("media.gstreamer.enable-blacklist", true); #endif #ifdef MOZ_APPLEMEDIA #ifdef MOZ_WIDGET_UIKIT pref("media.mp3.enabled", true); #endif pref("media.apple.mp3.enabled", false); pref("media.apple.mp4.enabled", false); #endif #ifdef MOZ_WEBRTC pref("media.navigator.enabled", true); pref("media.navigator.video.enabled", true); pref("media.navigator.load_adapt", true); pref("media.navigator.load_adapt.measure_interval",1000); pref("media.navigator.load_adapt.avg_seconds",3); pref("media.navigator.load_adapt.high_load","0.90"); pref("media.navigator.load_adapt.low_load","0.40"); pref("media.navigator.video.default_fps",30); pref("media.navigator.video.default_minfps",10); pref("media.webrtc.debug.trace_mask", 0); pref("media.webrtc.debug.multi_log", false); pref("media.webrtc.debug.aec_log_dir", ""); pref("media.webrtc.debug.log_file", ""); pref("media.webrtc.debug.aec_dump_max_size", 4194304); // 4MB #ifdef MOZ_WIDGET_GONK pref("media.navigator.video.default_width", 320); pref("media.navigator.video.default_height", 240); pref("media.peerconnection.enabled", true); pref("media.peerconnection.video.enabled", true); pref("media.navigator.video.max_fs", 1200); // 640x480 == 1200mb pref("media.navigator.video.max_fr", 30); pref("media.navigator.video.h264.level", 12); // 0x42E00C - level 1.2 pref("media.navigator.video.h264.max_br", 700); // 8x10 pref("media.navigator.video.h264.max_mbps", 11880); // CIF@30fps pref("media.peerconnection.video.h264_enabled", false); pref("media.getusermedia.aec", 4); // Gonk typically captures at QVGA, and so min resolution is QQVGA or // 160x120; 100Kbps is plenty for that. pref("media.peerconnection.video.min_bitrate", 100); pref("media.peerconnection.video.start_bitrate", 220); pref("media.peerconnection.video.max_bitrate", 1000); #else pref("media.navigator.video.default_width",0); // adaptive default pref("media.navigator.video.default_height",0); // adaptive default pref("media.peerconnection.enabled", false); pref("media.peerconnection.video.enabled", true); pref("media.navigator.video.max_fs", 12288); // Enough for 2048x1536 pref("media.navigator.video.max_fr", 60); pref("media.navigator.video.h264.level", 31); // 0x42E01f - level 3.1 pref("media.navigator.video.h264.max_br", 0); pref("media.navigator.video.h264.max_mbps", 0); pref("media.peerconnection.video.h264_enabled", false); pref("media.getusermedia.aec", 1); pref("media.getusermedia.browser.enabled", true); // Desktop is typically VGA capture or more; and qm_select will not drop resolution // below 1/2 in each dimension (or so), so QVGA (320x200) is the lowest here usually. pref("media.peerconnection.video.min_bitrate", 200); pref("media.peerconnection.video.start_bitrate", 300); pref("media.peerconnection.video.max_bitrate", 2000); #endif pref("media.navigator.audio.fake_frequency", 1000); pref("media.navigator.permission.disabled", false); pref("media.peerconnection.default_iceservers", "[]"); pref("media.peerconnection.ice.loopback", false); // Set only for testing in offline environments. pref("media.peerconnection.ice.tcp", false); pref("media.peerconnection.ice.tcp_so_sock_count", 0); // Disable SO gathering pref("media.peerconnection.ice.link_local", false); // Set only for testing IPV6 in networks that don't assign IPV6 addresses pref("media.peerconnection.ice.force_interface", ""); // Limit to only a single interface pref("media.peerconnection.ice.relay_only", false); // Limit candidates to TURN pref("media.peerconnection.use_document_iceservers", true); pref("media.peerconnection.identity.enabled", true); pref("media.peerconnection.identity.timeout", 10000); pref("media.peerconnection.ice.stun_client_maximum_transmits", 7); pref("media.peerconnection.ice.trickle_grace_period", 5000); pref("media.peerconnection.ice.default_address_only", false); // These values (aec, agc, and noice) are from media/webrtc/trunk/webrtc/common_types.h // kXxxUnchanged = 0, kXxxDefault = 1, and higher values are specific to each // setting (for Xxx = Ec, Agc, or Ns). Defaults are all set to kXxxDefault here. pref("media.peerconnection.turn.disable", false); #if defined(MOZ_WEBRTC_HARDWARE_AEC_NS) pref("media.getusermedia.aec_enabled", false); pref("media.getusermedia.noise_enabled", false); #else pref("media.getusermedia.aec_enabled", true); pref("media.getusermedia.noise_enabled", true); #endif pref("media.getusermedia.aec_extended_filter", true); pref("media.getusermedia.aec_delay_agnostic", true); pref("media.getusermedia.noise", 1); pref("media.getusermedia.agc_enabled", false); pref("media.getusermedia.agc", 1); // Adjustments for OS-specific input delay (lower bound) // Adjustments for OS-specific AudioStream+cubeb+output delay (lower bound) #if defined(XP_MACOSX) pref("media.peerconnection.capture_delay", 50); pref("media.getusermedia.playout_delay", 10); #elif defined(XP_WIN) pref("media.peerconnection.capture_delay", 50); pref("media.getusermedia.playout_delay", 40); #elif defined(ANDROID) pref("media.peerconnection.capture_delay", 100); pref("media.getusermedia.playout_delay", 100); // Whether to enable Webrtc Hardware acceleration support pref("media.navigator.hardware.vp8_encode.acceleration_enabled", false); pref("media.navigator.hardware.vp8_decode.acceleration_enabled", false); #elif defined(XP_LINUX) pref("media.peerconnection.capture_delay", 70); pref("media.getusermedia.playout_delay", 50); #else // *BSD, others - merely a guess for now pref("media.peerconnection.capture_delay", 50); pref("media.getusermedia.playout_delay", 50); #endif #endif #if !defined(ANDROID) pref("media.getusermedia.screensharing.enabled", true); #endif #ifdef RELEASE_BUILD pref("media.getusermedia.screensharing.allowed_domains", "webex.com,*.webex.com,ciscospark.com,*.ciscospark.com,projectsquared.com,*.projectsquared.com,*.room.co,room.co,beta.talky.io,talky.io,*.clearslide.com,appear.in,*.appear.in,tokbox.com,*.tokbox.com,*.sso.francetelecom.fr,*.si.francetelecom.fr,*.sso.infra.ftgroup,*.multimedia-conference.orange-business.com,*.espacecollaboration.orange-business.com,free.gotomeeting.com,g2m.me,*.g2m.me,example.com,*.mypurecloud.com,*.mypurecloud.com.au,spreed.me,*.spreed.me,*.spreed.com,air.mozilla.org,*.circuit.com,*.yourcircuit.com,circuit.siemens.com,yourcircuit.siemens.com,circuitsandbox.net,*.unify.com,tandi.circuitsandbox.net"); #else // temporary value, not intended for release - bug 1049087 pref("media.getusermedia.screensharing.allowed_domains", "mozilla.github.io,webex.com,*.webex.com,ciscospark.com,*.ciscospark.com,projectsquared.com,*.projectsquared.com,*.room.co,room.co,beta.talky.io,talky.io,*.clearslide.com,appear.in,*.appear.in,tokbox.com,*.tokbox.com,*.sso.francetelecom.fr,*.si.francetelecom.fr,*.sso.infra.ftgroup,*.multimedia-conference.orange-business.com,*.espacecollaboration.orange-business.com,free.gotomeeting.com,g2m.me,*.g2m.me,example.com,*.mypurecloud.com,*.mypurecloud.com.au,spreed.me,*.spreed.me,*.spreed.com,air.mozilla.org,*.circuit.com,*.yourcircuit.com,circuit.siemens.com,yourcircuit.siemens.com,circuitsandbox.net,*.unify.com,tandi.circuitsandbox.net"); #endif // OS/X 10.6 and XP have screen/window sharing off by default due to various issues - Caveat emptor pref("media.getusermedia.screensharing.allow_on_old_platforms", false); pref("media.getusermedia.audiocapture.enabled", false); // TextTrack support pref("media.webvtt.enabled", true); pref("media.webvtt.regions.enabled", false); // AudioTrack and VideoTrack support pref("media.track.enabled", false); // Whether to enable MediaSource support. // MediaSource is pretty much hosed on PowerPC OS X, so ... no. pref("media.mediasource.enabled", false); pref("media.mediasource.mp4.enabled", false); pref("media.mediasource.webm.enabled", false); pref("media.mediasource.webm.audio.enabled", false); // Enable new MediaFormatReader architecture for plain webm. pref("media.format-reader.webm", true); #ifdef MOZ_WEBSPEECH pref("media.webspeech.recognition.enable", false); pref("media.webspeech.synth.enabled", false); #endif #ifdef MOZ_WEBM_ENCODER pref("media.encoder.webm.enabled", true); #endif #ifdef MOZ_OMX_ENCODER pref("media.encoder.omx.enabled", true); #endif // Whether to autostart a media element with an |autoplay| attribute pref("media.autoplay.enabled", true); // Whether to disable the video stats to prevent fingerprinting pref("media.video_stats.enabled", true); // Weather we allow AMD switchable graphics pref("layers.amd-switchable-gfx.enabled", true); // Whether to use async panning and zooming pref("layers.async-pan-zoom.enabled", false); #ifdef MOZ_WIDGET_UIKIT pref("layers.async-pan-zoom.enabled", true); #endif // Whether to enable event region building during painting pref("layout.event-regions.enabled", false); // APZ preferences. For documentation/details on what these prefs do, check // gfx/layers/apz/src/AsyncPanZoomController.cpp. pref("apz.allow_checkerboarding", true); pref("apz.allow_zooming", false); // Whether to lock touch scrolling to one axis at a time // 0 = FREE (No locking at all) // 1 = STANDARD (Once locked, remain locked until scrolling ends) // 2 = STICKY (Allow lock to be broken, with hysteresis) pref("apz.axis_lock.mode", 0); pref("apz.axis_lock.lock_angle", "0.5235987"); // PI / 6 (30 degrees) pref("apz.axis_lock.breakout_threshold", "0.03125"); // 1/32 inches pref("apz.axis_lock.breakout_angle", "0.3926991"); // PI / 8 (22.5 degrees) pref("apz.axis_lock.direct_pan_angle", "1.047197"); // PI / 3 (60 degrees) pref("apz.content_response_timeout", 300); pref("apz.drag.enabled", false); pref("apz.danger_zone_x", 50); pref("apz.danger_zone_y", 100); pref("apz.enlarge_displayport_when_clipped", false); pref("apz.fling_accel_base_mult", "1.0"); pref("apz.fling_accel_interval_ms", 500); pref("apz.fling_accel_supplemental_mult", "1.0"); pref("apz.fling_curve_function_x1", "0.0"); pref("apz.fling_curve_function_y1", "0.0"); pref("apz.fling_curve_function_x2", "1.0"); pref("apz.fling_curve_function_y2", "1.0"); pref("apz.fling_curve_threshold_inches_per_ms", "-1.0"); pref("apz.fling_friction", "0.002"); pref("apz.fling_repaint_interval", 16); pref("apz.fling_stop_on_tap_threshold", "0.05"); pref("apz.fling_stopped_threshold", "0.01"); pref("apz.highlight_checkerboarded_areas", false); pref("apz.max_velocity_inches_per_ms", "-1.0"); pref("apz.max_velocity_queue_size", 5); pref("apz.min_skate_speed", "1.0"); pref("apz.minimap.enabled", false); pref("apz.num_paint_duration_samples", 3); pref("apz.overscroll.enabled", false); pref("apz.overscroll.min_pan_distance_ratio", "1.0"); pref("apz.overscroll.spring_friction", "0.015"); pref("apz.overscroll.spring_stiffness", "0.0018"); pref("apz.overscroll.stop_distance_threshold", "5.0"); pref("apz.overscroll.stop_velocity_threshold", "0.01"); pref("apz.overscroll.stretch_factor", "0.35"); pref("apz.pan_repaint_interval", 16); // Whether to print the APZC tree for debugging pref("apz.printtree", false); pref("apz.smooth_scroll_repaint_interval", 16); pref("apz.test.logging_enabled", false); pref("apz.touch_start_tolerance", "0.1"); pref("apz.touch_move_tolerance", "0.03"); pref("apz.use_paint_duration", true); pref("apz.velocity_bias", "1.0"); pref("apz.velocity_relevance_time_ms", 150); pref("apz.x_skate_highmem_adjust", "0.0"); pref("apz.y_skate_highmem_adjust", "0.0"); pref("apz.x_skate_size_multiplier", "2.5"); pref("apz.y_skate_size_multiplier", "3.5"); pref("apz.x_stationary_size_multiplier", "3.0"); pref("apz.y_stationary_size_multiplier", "3.5"); pref("apz.zoom_animation_duration_ms", 250); #if defined(MOZ_WIDGET_GONK) || defined(MOZ_WIDGET_ANDROID) // Mobile prefs pref("apz.allow_zooming", true); pref("apz.enlarge_displayport_when_clipped", true); pref("apz.fling_repaint_interval", 75); pref("apz.smooth_scroll_repaint_interval", 75); pref("apz.x_skate_size_multiplier", "1.25"); pref("apz.y_skate_size_multiplier", "1.5"); pref("apz.x_stationary_size_multiplier", "1.5"); pref("apz.y_stationary_size_multiplier", "1.8"); #endif #ifdef XP_MACOSX // Whether to run in native HiDPI mode on machines with "Retina"/HiDPI display; // <= 0 : hidpi mode disabled, display will just use pixel-based upscaling // == 1 : hidpi supported if all screens share the same backingScaleFactor // >= 2 : hidpi supported even with mixed backingScaleFactors (somewhat broken) pref("gfx.hidpi.enabled", 2); #endif #if !defined(MOZ_WIDGET_GONK) && !defined(MOZ_WIDGET_ANDROID) // Use containerless scrolling for now on desktop. pref("layout.scroll.root-frame-containers", false); #endif // Whether to enable LayerScope tool and default listening port pref("gfx.layerscope.enabled", false); pref("gfx.layerscope.port", 23456); // Log severe performance warnings to the error console and profiles. // This should be use to quickly find which slow paths are used by test cases. pref("gfx.perf-warnings.enabled", false); // 0 = Off, 1 = Full, 2 = Tagged Images Only. // See eCMSMode in gfx/thebes/gfxPlatform.h pref("gfx.color_management.mode", 1); pref("gfx.color_management.display_profile", ""); pref("gfx.color_management.rendering_intent", 0); pref("gfx.color_management.enablev4", true); pref("gfx.downloadable_fonts.enabled", true); pref("gfx.downloadable_fonts.fallback_delay", 3000); // disable downloadable font cache so that behavior is consistently // the uncached load behavior across pages (useful for testing reflow problems) pref("gfx.downloadable_fonts.disable_cache", false); pref("gfx.downloadable_fonts.woff2.enabled", true); #ifdef ANDROID pref("gfx.bundled_fonts.enabled", true); pref("gfx.bundled_fonts.force-enabled", false); #endif // Do we fire a notification about missing fonts, so the front-end can decide // whether to try and do something about it (e.g. download additional fonts)? pref("gfx.missing_fonts.notify", false); pref("gfx.filter.nearest.force-enabled", false); // prefs controlling the font (name/cmap) loader that runs shortly after startup pref("gfx.font_loader.families_per_slice", 3); // read in info 3 families at a time #ifdef XP_WIN pref("gfx.font_loader.delay", 120000); // 2 minutes after startup pref("gfx.font_loader.interval", 1000); // every 1 second until complete #else pref("gfx.font_loader.delay", 8000); // 8 secs after startup pref("gfx.font_loader.interval", 50); // run every 50 ms #endif // whether to always search all font cmaps during system font fallback pref("gfx.font_rendering.fallback.always_use_cmaps", false); // cache shaped word results pref("gfx.font_rendering.wordcache.charlimit", 32); // cache shaped word results pref("gfx.font_rendering.wordcache.maxentries", 10000); pref("gfx.font_rendering.graphite.enabled", true); #ifdef XP_WIN pref("gfx.font_rendering.directwrite.force-enabled", false); pref("gfx.font_rendering.directwrite.use_gdi_table_loading", true); #endif pref("gfx.font_rendering.opentype_svg.enabled", true); #ifdef XP_WIN // comma separated list of backends to use in order of preference // e.g., pref("gfx.canvas.azure.backends", "direct2d,skia,cairo"); pref("gfx.canvas.azure.backends", "direct2d1.1,direct2d,skia,cairo"); pref("gfx.content.azure.backends", "direct2d1.1,direct2d,cairo"); #else #ifdef XP_MACOSX // TenFourFox is CoreGraphics, all the CoreTime, CoreBeyotches. pref("gfx.content.azure.backends", "cg"); pref("gfx.canvas.azure.backends", "cg"); pref("gfx.canvas.azure.accelerated", false); #else pref("gfx.canvas.azure.backends", "cairo"); pref("gfx.content.azure.backends", "cairo"); #endif #endif #ifdef MOZ_WIDGET_GTK2 pref("gfx.content.azure.backends", "cairo"); #endif #ifdef ANDROID pref("gfx.content.azure.backends", "cairo"); #endif pref("gfx.work-around-driver-bugs", true); pref("gfx.prefer-mesa-llvmpipe", false); pref("gfx.draw-color-bars", false); pref("accessibility.browsewithcaret", false); pref("accessibility.warn_on_browsewithcaret", true); pref("accessibility.browsewithcaret_shortcut.enabled", true); #ifndef XP_MACOSX // Tab focus model bit field: // 1 focuses text controls, 2 focuses other form elements, 4 adds links. // Most users will want 1, 3, or 7. // On OS X, we use Full Keyboard Access system preference, // unless accessibility.tabfocus is set by the user. pref("accessibility.tabfocus", 7); pref("accessibility.tabfocus_applies_to_xul", false); #else // Only on mac tabfocus is expected to handle UI widgets as well as web content pref("accessibility.tabfocus_applies_to_xul", true); #endif // We follow the "Click in the scrollbar to:" system preference on OS X and // "gtk-primary-button-warps-slider" property with GTK (since 2.24 / 3.6), // unless this preference is explicitly set. #if !defined(XP_MACOSX) && !defined(MOZ_WIDGET_GTK) pref("ui.scrollToClick", 0); #endif // provide ability to turn on support for canvas focus rings pref("canvas.focusring.enabled", true); pref("canvas.customfocusring.enabled", false); pref("canvas.hitregions.enabled", false); pref("canvas.filters.enabled", false); // Add support for canvas path objects pref("canvas.path.enabled", true); pref("canvas.capturestream.enabled", true); // We want the ability to forcibly disable platform a11y, because // some non-a11y-related components attempt to bring it up. See bug // 538530 for details about Windows; we have a pref here that allows it // to be disabled for performance and testing resons. // See bug 761589 for the crossplatform aspect. // // This pref is checked only once, and the browser needs a restart to // pick up any changes. // // Values are -1 always on. 1 always off, 0 is auto as some platform perform // further checks. pref("accessibility.force_disabled", 0); pref("accessibility.ipc_architecture.enabled", true); #ifdef XP_WIN // Some accessibility tools poke at windows in the plugin process during setup // which can cause hangs. To hack around this set accessibility.delay_plugins // to true, you can also try increasing accessibility.delay_plugin_time if your // machine is slow and you still experience hangs. // See bug 781791. pref("accessibility.delay_plugins", false); pref("accessibility.delay_plugin_time", 10000); #endif pref("focusmanager.testmode", false); pref("accessibility.usetexttospeech", ""); pref("accessibility.usebrailledisplay", ""); pref("accessibility.accesskeycausesactivation", true); pref("accessibility.mouse_focuses_formcontrol", false); // Type Ahead Find pref("accessibility.typeaheadfind", true); pref("accessibility.typeaheadfind.autostart", true); // casesensitive: controls the find bar's case-sensitivity // 0 - "never" (case-insensitive) // 1 - "always" (case-sensitive) // other - "auto" (case-sensitive for mixed-case input, insensitive otherwise) pref("accessibility.typeaheadfind.casesensitive", 0); pref("accessibility.typeaheadfind.linksonly", true); pref("accessibility.typeaheadfind.startlinksonly", false); pref("accessibility.typeaheadfind.timeout", 4000); pref("accessibility.typeaheadfind.enabletimeout", true); pref("accessibility.typeaheadfind.soundURL", "beep"); pref("accessibility.typeaheadfind.enablesound", true); #ifdef XP_MACOSX pref("accessibility.typeaheadfind.prefillwithselection", false); #else pref("accessibility.typeaheadfind.prefillwithselection", true); #endif pref("accessibility.typeaheadfind.matchesCountTimeout", 250); pref("accessibility.typeaheadfind.matchesCountLimit", 100); // use Mac OS X Appearance panel text smoothing setting when rendering text, disabled by default pref("gfx.use_text_smoothing_setting", false); // Number of characters to consider emphasizing for rich autocomplete results pref("toolkit.autocomplete.richBoundaryCutoff", 200); // Variable controlling logging for osfile. pref("toolkit.osfile.log", false); pref("toolkit.scrollbox.smoothScroll", true); pref("toolkit.scrollbox.scrollIncrement", 20); pref("toolkit.scrollbox.verticalScrollDistance", 3); pref("toolkit.scrollbox.horizontalScrollDistance", 5); pref("toolkit.scrollbox.clickToScroll.scrollDelay", 150); // Telemetry settings. // Server to submit telemetry pings to. pref("toolkit.telemetry.server", "https://incoming.telemetry.mozilla.org"); // Telemetry server owner. Please change if you set toolkit.telemetry.server to a different server pref("toolkit.telemetry.server_owner", "Mozilla"); // Information page about telemetry (temporary ; will be about:telemetry in the end) pref("toolkit.telemetry.infoURL", "https://www.mozilla.org/legal/privacy/firefox.html#telemetry"); // Determines whether full SQL strings are returned when they might contain sensitive info // i.e. dynamically constructed SQL strings or SQL executed by addons against addon DBs pref("toolkit.telemetry.debugSlowSql", false); // Whether to use the unified telemetry behavior, requires a restart. pref("toolkit.telemetry.unified", true); // Identity module pref("toolkit.identity.enabled", false); pref("toolkit.identity.debug", false); // AsyncShutdown delay before crashing in case of shutdown freeze pref("toolkit.asyncshutdown.timeout.crash", 60000); // Extra logging for AsyncShutdown barriers and phases pref("toolkit.asyncshutdown.log", false); // Enable deprecation warnings. pref("devtools.errorconsole.deprecation_warnings", true); // Disable debugging chrome pref("devtools.chrome.enabled", false); // Disable remote debugging protocol logging pref("devtools.debugger.log", false); pref("devtools.debugger.log.verbose", false); // Disable remote debugging connections pref("devtools.debugger.remote-enabled", false); pref("devtools.debugger.remote-port", 6000); // Force debugger server binding on the loopback interface pref("devtools.debugger.force-local", true); // Display a prompt when a new connection starts to accept/reject it pref("devtools.debugger.prompt-connection", true); // Block tools from seeing / interacting with certified apps pref("devtools.debugger.forbid-certified-apps", true); // List of permissions that a sideloaded app can't ask for pref("devtools.apps.forbidden-permissions", "embed-apps,engineering-mode,embed-widgets"); // DevTools default color unit pref("devtools.defaultColorUnit", "authored"); // Used for devtools debugging pref("devtools.dump.emit", false); // Disable device discovery logging pref("devtools.discovery.log", false); // Whether to scan for DevTools devices via WiFi pref("devtools.remote.wifi.scan", true); // Whether UI options for controlling device visibility over WiFi are shown // N.B.: This does not set whether the device can be discovered via WiFi, only // whether the UI control to make such a choice is shown to the user pref("devtools.remote.wifi.visible", true); // Client must complete TLS handshake within this window (ms) pref("devtools.remote.tls-handshake-timeout", 10000); // URL of the remote JSON catalog used for device simulation pref("devtools.devices.url", "https://code.cdn.mozilla.net/devices/devices.json"); // Display the introductory text pref("devtools.gcli.hideIntro", false); // How eager are we to show help: never=1, sometimes=2, always=3 pref("devtools.gcli.eagerHelper", 2); // Alias to the script URLs for inject command. pref("devtools.gcli.jquerySrc", "https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"); pref("devtools.gcli.lodashSrc", "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"); pref("devtools.gcli.underscoreSrc", "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"); // Set imgur upload client ID pref("devtools.gcli.imgurClientID", '0df414e888d7240'); // Imgur's upload URL pref("devtools.gcli.imgurUploadURL", "https://api.imgur.com/3/image"); // GCLI commands directory pref("devtools.commands.dir", ""); // Allows setting the performance marks for which telemetry metrics will be recorded. pref("devtools.telemetry.supported_performance_marks", "contentInteractive,navigationInteractive,navigationLoaded,visuallyLoaded,fullyLoaded,mediaEnumerated,scanEnd"); // Deprecation warnings after DevTools file migration. Bug 1204127 tracks // enabling this. pref("devtools.migration.warnings", false); // view source pref("view_source.syntax_highlight", true); pref("view_source.wrap_long_lines", false); pref("view_source.editor.external", false); pref("view_source.editor.path", ""); // allows to add further arguments to the editor; use the %LINE% placeholder // for jumping to a specific line (e.g. "/line:%LINE%" or "--goto %LINE%") pref("view_source.editor.args", ""); // When true this will word-wrap plain text documents. pref("plain_text.wrap_long_lines", false); // whether or not to draw images while dragging pref("nglayout.enable_drag_images", true); // enable/disable paint flashing --- useful for debugging // the first one applies to everything, the second one only to chrome pref("nglayout.debug.paint_flashing", false); pref("nglayout.debug.paint_flashing_chrome", false); // enable/disable widget update area flashing --- only supported with // BasicLayers (other layer managers always update the entire widget area) pref("nglayout.debug.widget_update_flashing", false); // Enable/disable display list invalidation logging --- useful for debugging. pref("nglayout.debug.invalidation", false); // Whether image visibility is enabled globally (ie we will try to unlock images // that are not visible). pref("layout.imagevisibility.enabled", true); pref("layout.imagevisibility.numscrollportwidths", 0); pref("layout.imagevisibility.numscrollportheights", 1); // scrollbar snapping region // 0 - off // 1 and higher - slider thickness multiple pref("slider.snapMultiplier", 0); // option to choose plug-in finder pref("application.use_ns_plugin_finder", false); // URI fixup prefs pref("browser.fixup.alternate.enabled", true); pref("browser.fixup.alternate.prefix", "www."); pref("browser.fixup.alternate.suffix", ".com"); pref("browser.fixup.dns_first_for_single_words", false); pref("browser.fixup.hide_user_pass", true); // Location Bar AutoComplete pref("browser.urlbar.autocomplete.enabled", true); // Print header customization // Use the following codes: // &T - Title // &U - Document URL // &D - Date/Time // &P - Page Number // &PT - Page Number "of" Page total // Set each header to a string containing zero or one of these codes // and the code will be replaced in that string by the corresponding data pref("print.print_headerleft", "&T"); pref("print.print_headercenter", ""); pref("print.print_headerright", "&U"); pref("print.print_footerleft", "&PT"); pref("print.print_footercenter", ""); pref("print.print_footerright", "&D"); pref("print.show_print_progress", true); // xxxbsmedberg: more toolkit prefs // When this is set to false each window has its own PrintSettings // and a change in one window does not affect the others pref("print.use_global_printsettings", true); // Save the Printings after each print job pref("print.save_print_settings", true); // Cache old Presentation when going into Print Preview pref("print.always_cache_old_pres", false); // Enables you to specify the amount of the paper that is to be treated // as unwriteable. The print_edge_XXX and print_margin_XXX preferences // are treated as offsets that are added to this pref. // Default is "-1", which means "use the system default". (If there is // no system default, then the -1 is treated as if it were 0.) // This is used by both Printing and Print Preview. // Units are in 1/100ths of an inch. pref("print.print_unwriteable_margin_top", -1); pref("print.print_unwriteable_margin_left", -1); pref("print.print_unwriteable_margin_right", -1); pref("print.print_unwriteable_margin_bottom", -1); // Enables you to specify the gap from the edge of the paper's // unwriteable area to the margin. // This is used by both Printing and Print Preview // Units are in 1/100ths of an inch. pref("print.print_edge_top", 0); pref("print.print_edge_left", 0); pref("print.print_edge_right", 0); pref("print.print_edge_bottom", 0); // Pref used by the spellchecker extension to control the // maximum number of misspelled words that will be underlined // in a document. pref("extensions.spellcheck.inline.max-misspellings", 500); // Prefs used by libeditor. Prefs specific to seamonkey composer // belong in comm-central/editor/ui/composer.js pref("editor.use_custom_colors", false); pref("editor.singleLine.pasteNewlines", 2); pref("editor.use_css", false); pref("editor.css.default_length_unit", "px"); pref("editor.resizing.preserve_ratio", true); pref("editor.positioning.offset", 0); // Scripts & Windows prefs pref("dom.disable_beforeunload", false); pref("dom.disable_window_flip", false); pref("dom.disable_window_move_resize", false); pref("dom.disable_window_status_change", false); pref("dom.disable_window_open_feature.titlebar", false); pref("dom.disable_window_open_feature.close", false); pref("dom.disable_window_open_feature.toolbar", false); pref("dom.disable_window_open_feature.location", false); pref("dom.disable_window_open_feature.personalbar", false); pref("dom.disable_window_open_feature.menubar", false); pref("dom.disable_window_open_feature.scrollbars", false); pref("dom.disable_window_open_feature.resizable", true); pref("dom.disable_window_open_feature.minimizable", false); pref("dom.disable_window_open_feature.status", true); pref("dom.allow_scripts_to_close_windows", false); pref("dom.require_user_interaction_for_beforeunload", true); pref("dom.disable_open_during_load", false); pref("dom.popup_maximum", 20); pref("dom.popup_allowed_events", "change click dblclick mouseup notificationclick reset submit touchend"); pref("dom.disable_open_click_delay", 1000); pref("dom.storage.enabled", true); pref("dom.storage.default_quota", 5120); pref("dom.send_after_paint_to_content", false); // Timeout clamp in ms for timeouts we clamp pref("dom.min_timeout_value", 4); // And for background windows pref("dom.min_background_timeout_value", 1000); // Don't use new input types pref("dom.experimental_forms", false); // Enable : pref("dom.forms.number", true); // Enable by default. It will be turned off for remaining // platforms which don't have a color picker implemented yet. pref("dom.forms.color", true); // Support for new @autocomplete values pref("dom.forms.autocomplete.experimental", false); // Enables requestAutocomplete DOM API on forms. pref("dom.forms.requestAutocomplete", false); #ifdef NIGHTLY_BUILD pref("dom.input.dirpicker", true); #endif // Enables system messages and activities pref("dom.sysmsg.enabled", false); // Enable pre-installed applications. pref("dom.webapps.useCurrentProfile", false); pref("dom.cycle_collector.incremental", true); // Parsing perf prefs. For now just mimic what the old code did. #ifndef XP_WIN pref("content.sink.pending_event_mode", 0); #endif // Disable popups from plugins by default // 0 = openAllowed // 1 = openControlled // 2 = openAbused pref("privacy.popups.disable_from_plugins", 2); // send "do not track" HTTP header, disabled by default pref("privacy.donottrackheader.enabled", false); // Enforce tracking protection in all modes pref("privacy.trackingprotection.enabled", false); // Enforce tracking protection in Private Browsing mode pref("privacy.trackingprotection.pbmode.enabled", true); pref("dom.event.contextmenu.enabled", true); pref("dom.event.clipboardevents.enabled", true); #if defined(XP_WIN) && !defined(RELEASE_BUILD) || defined(MOZ_WIDGET_GTK) && !defined(RELEASE_BUILD) pref("dom.event.highrestimestamp.enabled", true); #else pref("dom.event.highrestimestamp.enabled", false); #endif pref("dom.webcomponents.enabled", false); pref("javascript.enabled", true); pref("javascript.options.strict", false); #ifdef DEBUG pref("javascript.options.strict.debug", false); #endif pref("javascript.options.baselinejit", true); pref("javascript.options.ion", true); pref("javascript.options.asmjs", false); pref("javascript.options.native_regexp", true); pref("javascript.options.parallel_parsing", true); #if !defined(RELEASE_BUILD) && !defined(ANDROID) && !defined(MOZ_B2G) && !defined(XP_IOS) pref("javascript.options.asyncstack", true); #else pref("javascript.options.asyncstack", false); #endif pref("javascript.options.throw_on_asmjs_validation_failure", false); pref("javascript.options.ion.offthread_compilation", true); // This preference instructs the JS engine to discard the // source of any privileged JS after compilation. This saves // memory, but makes things like Function.prototype.toSource() // fail. pref("javascript.options.discardSystemSource", false); // This preference limits the memory usage of javascript. // If you want to change these values for your device, // please find Bug 417052 comment 17 and Bug 456721 // Comment 32 and Bug 613551. pref("javascript.options.mem.high_water_mark", 128); pref("javascript.options.mem.max", -1); pref("javascript.options.mem.gc_per_compartment", true); pref("javascript.options.mem.gc_incremental", true); pref("javascript.options.mem.gc_incremental_slice_ms", 100); // issue 253 pref("javascript.options.mem.gc_compacting", true); pref("javascript.options.mem.log", false); pref("javascript.options.mem.notify", false); pref("javascript.options.gc_on_memory_pressure", true); pref("javascript.options.compact_on_user_inactive", true); #ifdef NIGHTLY_BUILD pref("javascript.options.compact_on_user_inactive_delay", 15000); // ms #else pref("javascript.options.compact_on_user_inactive_delay", 300000); // ms #endif pref("javascript.options.mem.gc_high_frequency_time_limit_ms", 1000); pref("javascript.options.mem.gc_high_frequency_low_limit_mb", 100); pref("javascript.options.mem.gc_high_frequency_high_limit_mb", 500); pref("javascript.options.mem.gc_high_frequency_heap_growth_max", 300); pref("javascript.options.mem.gc_high_frequency_heap_growth_min", 150); pref("javascript.options.mem.gc_low_frequency_heap_growth", 150); pref("javascript.options.mem.gc_dynamic_heap_growth", true); pref("javascript.options.mem.gc_dynamic_mark_slice", true); pref("javascript.options.mem.gc_allocation_threshold_mb", 30); pref("javascript.options.mem.gc_decommit_threshold_mb", 32); pref("javascript.options.mem.gc_min_empty_chunk_count", 1); pref("javascript.options.mem.gc_max_empty_chunk_count", 30); pref("javascript.options.showInConsole", false); // advanced prefs pref("advanced.mailftp", false); pref("image.animation_mode", "normal"); // Same-origin policy for file URIs, "false" is traditional pref("security.fileuri.strict_origin_policy", true); // If there is ever a security firedrill that requires // us to block certian ports global, this is the pref // to use. Is is a comma delimited list of port numbers // for example: // pref("network.security.ports.banned", "1,2,3,4,5"); // prevents necko connecting to ports 1-5 unless the protocol // overrides. // Allow necko to do A/B testing. Will generally only happen if // telemetry is also enabled as otherwise there is no way to report // the results pref("network.allow-experiments", true); // Allow the network changed event to get sent when a network topology or // setup change is noticed while running. #if defined(XP_UNIX) pref("network.notify.changed", false); #else pref("network.notify.changed", true); #endif // Transmit UDP busy-work to the LAN when anticipating low latency // network reads and on wifi to mitigate 802.11 Power Save Polling delays pref("network.tickle-wifi.enabled", false); pref("network.tickle-wifi.duration", 400); pref("network.tickle-wifi.delay", 16); // Turn off interprocess security checks. Needed to run xpcshell tests. pref("network.disable.ipc.security", false); // Default action for unlisted external protocol handlers pref("network.protocol-handler.external-default", true); // OK to load pref("network.protocol-handler.warn-external-default", true); // warn before load // Prevent using external protocol handlers for these schemes pref("network.protocol-handler.external.hcp", false); pref("network.protocol-handler.external.vbscript", false); pref("network.protocol-handler.external.javascript", false); pref("network.protocol-handler.external.data", false); pref("network.protocol-handler.external.ms-help", false); pref("network.protocol-handler.external.shell", false); pref("network.protocol-handler.external.vnd.ms.radio", false); #ifdef XP_MACOSX pref("network.protocol-handler.external.help", false); #endif pref("network.protocol-handler.external.disk", false); pref("network.protocol-handler.external.disks", false); pref("network.protocol-handler.external.afp", false); pref("network.protocol-handler.external.moz-icon", false); // Don't allow external protocol handlers for common typos pref("network.protocol-handler.external.ttp", false); // http pref("network.protocol-handler.external.ttps", false); // https pref("network.protocol-handler.external.tps", false); // https pref("network.protocol-handler.external.ps", false); // https pref("network.protocol-handler.external.ile", false); // file pref("network.protocol-handler.external.le", false); // file // An exposed protocol handler is one that can be used in all contexts. A // non-exposed protocol handler is one that can only be used internally by the // application. For example, a non-exposed protocol would not be loaded by the // application in response to a link click or a X-remote openURL command. // Instead, it would be deferred to the system's external protocol handler. // Only internal/built-in protocol handlers can be marked as exposed. // This pref controls the default settings. Per protocol settings can be used // to override this value. pref("network.protocol-handler.expose-all", true); // Warning for about:networking page pref("network.warnOnAboutNetworking", true); // Example: make IMAP an exposed protocol // pref("network.protocol-handler.expose.imap", true); // Whether IOService.connectivity and NS_IsOffline depends on connectivity status pref("network.manage-offline-status", true); // If set to true, IOService.offline depends on IOService.connectivity pref("network.offline-mirrors-connectivity", false); // pref("network.http.version", "1.1"); // default // pref("network.http.version", "1.0"); // uncomment this out in case of problems // pref("network.http.version", "0.9"); // it'll work too if you're crazy // keep-alive option is effectively obsolete. Nevertheless it'll work with // some older 1.0 servers: pref("network.http.proxy.version", "1.1"); // default // pref("network.http.proxy.version", "1.0"); // uncomment this out in case of problems // (required if using junkbuster proxy) // this preference can be set to override the socket type used for normal // HTTP traffic. an empty value indicates the normal TCP/IP socket type. pref("network.http.default-socket-type", ""); // There is a problem with some IIS7 servers that don't close the connection // properly after it times out (bug #491541). Default timeout on IIS7 is // 120 seconds. We need to reuse or drop the connection within this time. // We set the timeout a little shorter to keep a reserve for cases when // the packet is lost or delayed on the route. pref("network.http.keep-alive.timeout", 115); // Timeout connections if an initial response is not received after 5 mins. pref("network.http.response.timeout", 300); // Limit the absolute number of http connections. // Note: the socket transport service will clamp the number below 256 if the OS // cannot allocate that many FDs, and it also always tries to reserve up to 250 // file descriptors for things other than sockets. pref("network.http.max-connections", 256); // If NOT connecting via a proxy, then // a new connection will only be attempted if the number of active persistent // connections to the server is less then max-persistent-connections-per-server. pref("network.http.max-persistent-connections-per-server", 6); // If connecting via a proxy, then a // new connection will only be attempted if the number of active persistent // connections to the proxy is less then max-persistent-connections-per-proxy. pref("network.http.max-persistent-connections-per-proxy", 32); // amount of time (in seconds) to suspend pending requests, before spawning a // new connection, once the limit on the number of persistent connections per // host has been reached. however, a new connection will not be created if // max-connections or max-connections-per-server has also been reached. pref("network.http.request.max-start-delay", 10); // Headers pref("network.http.accept.default", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"); // Prefs allowing granular control of referers // 0=don't send any, 1=send only on clicks, 2=send on image requests as well pref("network.http.sendRefererHeader", 2); // false=real referer, true=spoof referer (use target URI as referer) pref("network.http.referer.spoofSource", false); // 0=full URI, 1=scheme+host+port+path, 2=scheme+host+port pref("network.http.referer.trimmingPolicy", 0); // 0=always send, 1=send iff base domains match, 2=send iff hosts match pref("network.http.referer.XOriginPolicy", 0); // Controls whether we send HTTPS referres to other HTTPS sites. // By default this is enabled for compatibility (see bug 141641) pref("network.http.sendSecureXSiteReferrer", true); // Controls whether referrer attributes in , , , and