You are viewing the web page at the URL http://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/init/all.js, using the referer http://planet.mozilla.org/. Please click here to view the page using your own HTTP client's referer capabilities.

Mozilla Cross-Reference mozilla-central
mozilla/ modules/ libpref/ src/ init/ all.js
Hg Log
Hg Blame
Diff file
Raw file
view using tree:
1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 
6 /* The prefs in this file are shipped with the GRE and should apply to all
7  * embedding situations. Application-specific preferences belong somewhere else,
8  * for example xpfe/bootstrap/browser-prefs.js
9  *
10  * Platform-specific #ifdefs at the end of this file override the generic
11  * entries at the top.
12  */
13 
14 /*
15  * SYNTAX HINTS:
16  *
17  *  - Dashes are delimiters; use underscores instead.
18  *  - The first character after a period must be alphabetic.
19  *  - Computed values (e.g. 50 * 1024) don't work.
20  */
21 
22 pref("keyword.enabled", false);
23 pref("general.useragent.locale", "chrome://global/locale/intl.properties");
24 pref("general.useragent.compatMode.firefox", false);
25 
26 // This pref exists only for testing purposes. In order to disable all
27 // overrides by default, don't initialize UserAgentOverrides.jsm.
28 pref("general.useragent.site_specific_overrides", true);
29 
30 pref("general.config.obscure_value", 13); // for MCD .cfg files
31 
32 pref("general.warnOnAboutConfig", true);
33 
34 // maximum number of dated backups to keep at any time
35 pref("browser.bookmarks.max_backups",       5);
36 
37 // Preference for switching the cache backend, can be changed freely at runtime
38 // 0 - use the old (Darin's) cache
39 // 1 - use the new cache back-end (cache v2)
40 pref("browser.cache.use_new_backend",       0);
41 pref("browser.cache.use_new_backend_temp",  true);
42 
43 pref("browser.cache.disk.enable",           true);
44 // Is this the first-time smartsizing has been introduced?
45 pref("browser.cache.disk.smart_size.first_run", true);
46 // Does the user want smart-sizing?
47 pref("browser.cache.disk.smart_size.enabled", true);
48 // Which max value should we use for smart-sizing?
49 pref("browser.cache.disk.smart_size.use_old_max", true);
50 // Size (in KB) explicitly set by the user. Used when smart_size.enabled == false
51 pref("browser.cache.disk.capacity",         256000);
52 // When smartsizing is disabled we could potentially fill all disk space by
53 // cache data when the disk capacity is not set correctly. To avoid that we
54 // check the free space every time we write some data to the cache. The free
55 // space is checked against two limits. Once the soft limit is reached we start
56 // evicting the least useful entries, when we reach the hard limit writing to
57 // the entry fails.
58 pref("browser.cache.disk.free_space_soft_limit", 5120); // 5MB
59 pref("browser.cache.disk.free_space_hard_limit", 1024); // 1MB
60 // Max-size (in KB) for entries in disk cache. Set to -1 for no limit.
61 // (Note: entries bigger than 1/8 of disk-cache are never cached)
62 pref("browser.cache.disk.max_entry_size",    51200);  // 50 MB
63 pref("browser.cache.memory.enable",         true);
64 // -1 = determine dynamically, 0 = none, n = memory capacity in kilobytes
65 //pref("browser.cache.memory.capacity",     -1);
66 // Max-size (in KB) for entries in memory cache. Set to -1 for no limit.
67 // (Note: entries bigger than than 90% of the mem-cache are never cached)
68 pref("browser.cache.memory.max_entry_size",  5120);
69 // Memory limit (in kB) for new cache data not yet written to disk. Writes to
70 // the cache are buffered and written to disk on background with low priority.
71 // With a slow persistent storage these buffers may grow when data is coming
72 // fast from the network. When the amount of unwritten data is exceeded, new
73 // writes will simply fail. We have two buckets, one for important data
74 // (priority) like html, css, fonts and js, and one for other data like images,
75 // video, etc.
76 // Note: 0 means no limit.
77 pref("browser.cache.disk.max_chunks_memory_usage", 10240);
78 pref("browser.cache.disk.max_priority_chunks_memory_usage", 10240);
79 
80 pref("browser.cache.disk_cache_ssl",        true);
81 // 0 = once-per-session, 1 = each-time, 2 = never, 3 = when-appropriate/automatically
82 pref("browser.cache.check_doc_frequency",   3);
83 // Limit of recent metadata we keep in memory for faster access, in Kb
84 pref("browser.cache.disk.metadata_memory_limit", 250); // 0.25 MB
85 // The number of chunks we preload ahead of read.  One chunk has currently 256kB.
86 pref("browser.cache.disk.preload_chunk_count", 4); // 1 MB of read ahead
87 // The half life used to re-compute cache entries frecency in hours.
88 pref("browser.cache.frecency_half_life_hours", 6);
89 
90 pref("browser.cache.offline.enable",           true);
91 // enable offline apps by default, disable prompt
92 pref("offline-apps.allow_by_default",          true);
93 
94 // offline cache capacity in kilobytes
95 pref("browser.cache.offline.capacity",         512000);
96 
97 // the user should be warned if offline app disk usage exceeds this amount
98 // (in kilobytes)
99 pref("offline-apps.quota.warn",        51200);
100 
101 // zlib compression level used for cache compression:
102 // 0 => disable compression
103 // 1 => best speed
104 // 9 => best compression
105 // cache compression turned off for now - see bug #715198
106 pref("browser.cache.compression_level", 0);
107 
108 // Whether or not testing features are enabled.
109 pref("dom.quotaManager.testing", false);
110 
111 // Whether or not indexedDB is enabled.
112 pref("dom.indexedDB.enabled", true);
113 // Space to allow indexedDB databases before prompting (in MB).
114 pref("dom.indexedDB.warningQuota", 50);
115 // Whether or not indexedDB experimental features are enabled.
116 pref("dom.indexedDB.experimental", false);
117 
118 // Whether or not Web Workers are enabled.
119 pref("dom.workers.enabled", true);
120 // The number of workers per domain allowed to run concurrently.
121 pref("dom.workers.maxPerDomain", 20);
122 
123 // Whether or not Shared Web Workers are enabled.
124 pref("dom.workers.sharedWorkers.enabled", true);
125 
126 // Service workers
127 pref("dom.serviceWorkers.enabled", false);
128 
129 // Whether nonzero values can be returned from performance.timing.*
130 pref("dom.enable_performance", true);
131 
132 // Whether resource timing will be gathered and returned by performance.GetEntries*
133 pref("dom.enable_resource_timing", false);
134 
135 // Whether the Gamepad API is enabled
136 pref("dom.gamepad.enabled", true);
137 #ifdef RELEASE_BUILD
138 pref("dom.gamepad.non_standard_events.enabled", false);
139 #else
140 pref("dom.gamepad.non_standard_events.enabled", true);
141 #endif
142 
143 // Whether the KeyboardEvent.code is enabled
144 #ifdef RELEASE_BUILD
145 pref("dom.keyboardevent.code.enabled", false);
146 #else
147 pref("dom.keyboardevent.code.enabled", true);
148 #endif
149 
150 // Whether the WebCrypto API is enabled
151 #ifdef RELEASE_BUILD
152 pref("dom.webcrypto.enabled", false);
153 #else
154 pref("dom.webcrypto.enabled", true);
155 #endif
156 
157 // Whether the UndoManager API is enabled
158 pref("dom.undo_manager.enabled", false);
159 
160 // Whether to run add-on code in different compartments from browser code. This
161 // causes a separate compartment for each (addon, global) combination, which may
162 // significantly increase the number of compartments in the system.
163 pref("dom.compartment_per_addon", false);
164 
165 // Fastback caching - if this pref is negative, then we calculate the number
166 // of content viewers to cache based on the amount of available memory.
167 pref("browser.sessionhistory.max_total_viewers", -1);
168 
169 pref("ui.use_native_colors", true);
170 pref("ui.click_hold_context_menus", false);
171 pref("browser.display.use_document_fonts",  1);  // 0 = never, 1 = quick, 2 = always
172 pref("browser.display.use_document_colors", true);
173 pref("browser.display.use_system_colors",   false);
174 pref("browser.display.foreground_color",    "#000000");
175 pref("browser.display.background_color",    "#FFFFFF");
176 pref("browser.display.force_inline_alttext", false); // true = force ALT text for missing images to be layed out inline
177 // 0 = no external leading,
178 // 1 = use external leading only when font provides,
179 // 2 = add extra leading both internal leading and external leading are zero
180 pref("browser.display.normal_lineheight_calc_control", 2);
181 pref("browser.display.show_image_placeholders", true); // true = show image placeholders while image is loaded and when image is broken
182 // min font device pixel size at which to turn on high quality
183 pref("browser.display.auto_quality_min_font_size", 20);
184 pref("browser.anchor_color",                "#0000EE");
185 pref("browser.active_color",                "#EE0000");
186 pref("browser.visited_color",               "#551A8B");
187 pref("browser.underline_anchors",           true);
188 pref("browser.enable_automatic_image_resizing", false);
189 pref("browser.enable_click_image_resizing", true);
190 
191 // See http://dev.w3.org/html5/spec/forms.html#attr-fe-autofocus
192 pref("browser.autofocus", true);
193 
194 // See http://whatwg.org/specs/web-apps/current-work/#ping
195 pref("browser.send_pings", false);
196 pref("browser.send_pings.max_per_link", 1);           // limit the number of pings that are sent per link click
197 pref("browser.send_pings.require_same_host", false);  // only send pings to the same host if this is true
198 
199 pref("browser.display.use_focus_colors",    false);
200 pref("browser.display.focus_background_color", "#117722");
201 pref("browser.display.focus_text_color",     "#ffffff");
202 pref("browser.display.focus_ring_width",     1);
203 pref("browser.display.focus_ring_on_anything", false);
204 // focus ring border style.
205 // 0 = solid border, 1 = dotted border
206 pref("browser.display.focus_ring_style", 1);
207 
208 pref("browser.helperApps.alwaysAsk.force",  false);
209 pref("browser.helperApps.neverAsk.saveToDisk", "");
210 pref("browser.helperApps.neverAsk.openFile", "");
211 pref("browser.helperApps.deleteTempFileOnExit", false);
212 
213 // xxxbsmedberg: where should prefs for the toolkit go?
214 pref("browser.chrome.toolbar_tips",         true);
215 // 0 = Pictures Only, 1 = Text Only, 2 = Pictures and Text
216 pref("browser.chrome.toolbar_style",        2);
217 // max image size for which it is placed in the tab icon for tabbrowser.
218 // if 0, no images are used for tab icons for image documents.
219 pref("browser.chrome.image_icons.max_size", 1024);
220 
221 pref("browser.triple_click_selects_paragraph", true);
222 
223 // Print/Preview Shrink-To-Fit won't shrink below 20% for text-ish documents.
224 pref("print.shrink-to-fit.scale-limit-percent", 20);
225 
226 // Media cache size in kilobytes
227 pref("media.cache_size", 512000);
228 
229 // Master HTML5 media volume scale.
230 pref("media.volume_scale", "1.0");
231 
232 // Timeout for wakelock release
233 pref("media.wakelock_timeout", 2000);
234 
235 #ifdef MOZ_WMF
236 pref("media.windows-media-foundation.enabled", true);
237 pref("media.windows-media-foundation.use-dxva", true);
238 pref("media.windows-media-foundation.play-stand-alone", true);
239 #endif
240 #ifdef MOZ_DIRECTSHOW
241 pref("media.directshow.enabled", true);
242 #endif
243 #ifdef MOZ_FMP4
244 pref("media.fragmented-mp4.enabled", true);
245 pref("media.fragmented-mp4.ffmpeg.enabled", false);
246 // Denotes that the fragmented MP4 parser can be created by <video> elements.
247 // This is for testing, since the parser can't yet handle non-fragmented MP4,
248 // so it will fail to play most MP4 files.
249 pref("media.fragmented-mp4.exposed", false);
250 // Specifies whether the fragmented MP4 parser uses a test decoder that
251 // just outputs blank frames/audio instead of actually decoding. The blank
252 // decoder works on all platforms.
253 pref("media.fragmented-mp4.use-blank-decoder", false);
254 #endif
255 #ifdef MOZ_RAW
256 pref("media.raw.enabled", true);
257 #endif
258 pref("media.ogg.enabled", true);
259 #ifdef MOZ_OPUS
260 pref("media.opus.enabled", true);
261 #endif
262 #ifdef MOZ_WAVE
263 pref("media.wave.enabled", true);
264 #endif
265 #ifdef MOZ_WEBM
266 pref("media.webm.enabled", true);
267 #endif
268 #ifdef MOZ_GSTREAMER
269 pref("media.gstreamer.enabled", true);
270 #endif
271 #ifdef MOZ_APPLEMEDIA
272 pref("media.apple.mp3.enabled", true);
273 #endif
274 #ifdef MOZ_WEBRTC
275 pref("media.navigator.enabled", true);
276 pref("media.navigator.video.enabled", true);
277 pref("media.navigator.load_adapt", true);
278 pref("media.navigator.load_adapt.measure_interval",1000);
279 pref("media.navigator.load_adapt.avg_seconds",3);
280 pref("media.navigator.load_adapt.high_load","0.90");
281 pref("media.navigator.load_adapt.low_load","0.40");
282 pref("media.navigator.video.default_fps",30);
283 pref("media.navigator.video.default_minfps",10);
284 
285 pref("media.webrtc.debug.trace_mask", 0);
286 pref("media.webrtc.debug.multi_log", false);
287 pref("media.webrtc.debug.aec_log_dir", "");
288 pref("media.webrtc.debug.log_file", "");
289 pref("media.webrtc.debug.aec_dump_max_size", 4194304); // 4MB
290 
291 #ifdef MOZ_WIDGET_GONK
292 pref("media.navigator.video.default_width",320);
293 pref("media.navigator.video.default_height",240);
294 pref("media.peerconnection.enabled", true);
295 pref("media.peerconnection.video.enabled", true);
296 pref("media.navigator.video.max_fs", 1200); // 640x480 == 1200mb
297 pref("media.navigator.video.max_fr", 30);
298 pref("media.peerconnection.video.h264_enabled", false);
299 pref("media.getusermedia.aec", 4);
300 #else
301 pref("media.navigator.video.default_width",0);  // adaptive default
302 pref("media.navigator.video.default_height",0); // adaptive default
303 pref("media.peerconnection.enabled", true);
304 pref("media.peerconnection.video.enabled", true);
305 pref("media.navigator.video.max_fs", 0); // unrestricted
306 pref("media.navigator.video.max_fr", 0); // unrestricted
307 pref("media.peerconnection.video.h264_enabled", false);
308 pref("media.getusermedia.aec", 1);
309 #endif
310 pref("media.peerconnection.video.min_bitrate", 200);
311 pref("media.peerconnection.video.start_bitrate", 300);
312 pref("media.peerconnection.video.max_bitrate", 2000);
313 pref("media.navigator.permission.disabled", false);
314 pref("media.peerconnection.default_iceservers", "[{\"url\": \"stun:stun.services.mozilla.com\"}]");
315 pref("media.peerconnection.trickle_ice", true);
316 pref("media.peerconnection.use_document_iceservers", true);
317 // Do not enable identity before ensuring that the UX cannot be spoofed
318 // see Bug 884573 for details
319 // Do not enable identity before fixing domain comparison: see Bug 958741
320 // Do not enable identity before fixing origin spoofing: see Bug 968335
321 pref("media.peerconnection.identity.enabled", false);
322 pref("media.peerconnection.identity.timeout", 10000);
323 // These values (aec, agc, and noice) are from media/webrtc/trunk/webrtc/common_types.h
324 // kXxxUnchanged = 0, kXxxDefault = 1, and higher values are specific to each
325 // setting (for Xxx = Ec, Agc, or Ns).  Defaults are all set to kXxxDefault here.
326 pref("media.peerconnection.turn.disable", false);
327 pref("media.getusermedia.aec_enabled", true);
328 pref("media.getusermedia.agc_enabled", false);
329 pref("media.getusermedia.agc", 1);
330 pref("media.getusermedia.noise_enabled", true);
331 pref("media.getusermedia.noise", 1);
332 // Adjustments for OS-specific input delay (lower bound)
333 // Adjustments for OS-specific AudioStream+cubeb+output delay (lower bound)
334 #if defined(XP_MACOSX)
335 pref("media.peerconnection.capture_delay", 50);
336 pref("media.getusermedia.playout_delay", 10);
337 #elif defined(XP_WIN)
338 pref("media.peerconnection.capture_delay", 50);
339 pref("media.getusermedia.playout_delay", 40);
340 #elif defined(ANDROID)
341 pref("media.peerconnection.capture_delay", 100);
342 pref("media.getusermedia.playout_delay", 100);
343 // Whether to enable Webrtc Hardware acceleration support
344 pref("media.navigator.hardware.vp8_encode.acceleration_enabled", false);
345 pref("media.navigator.hardware.vp8_decode.acceleration_enabled", false);
346 #elif defined(XP_LINUX)
347 pref("media.peerconnection.capture_delay", 70);
348 pref("media.getusermedia.playout_delay", 50);
349 #else
350 // *BSD, others - merely a guess for now
351 pref("media.peerconnection.capture_delay", 50);
352 pref("media.getusermedia.playout_delay", 50);
353 #endif
354 #else
355 #ifdef ANDROID
356 pref("media.navigator.enabled", true);
357 #endif
358 #endif
359 
360 // do not enable screensharing before addressing security concerns: Bug 1035577
361 // do not enable screensharing before implementing app/window sharing: Bug 1036653
362 // do not enable screensharing before source constraints are finalized: Bug 1033885
363 // do not enable screensharing before UX is ready: Bug 1035577
364 pref("media.getusermedia.screensharing.enabled", false);
365 
366 // TextTrack support
367 pref("media.webvtt.enabled", true);
368 pref("media.webvtt.regions.enabled", false);
369 
370 // AudioTrack and VideoTrack support
371 pref("media.track.enabled", false);
372 
373 // Whether to enable MediaSource support
374 pref("media.mediasource.enabled", false);
375 
376 #ifdef MOZ_WEBSPEECH
377 pref("media.webspeech.recognition.enable", false);
378 pref("media.webspeech.synth.enabled", false);
379 #endif
380 #ifdef MOZ_WEBM_ENCODER
381 pref("media.encoder.webm.enabled", true);
382 #endif
383 #ifdef MOZ_OMX_ENCODER
384 pref("media.encoder.omx.enabled", true);
385 #endif
386 
387 // Whether to autostart a media element with an |autoplay| attribute
388 pref("media.autoplay.enabled", true);
389 
390 // The default number of decoded video frames that are enqueued in
391 // MediaDecoderReader's mVideoQueue.
392 pref("media.video-queue.default-size", 10);
393 
394 // Whether to disable the video stats to prevent fingerprinting
395 pref("media.video_stats.enabled", true);
396 
397 // Whether to enable the audio writing APIs on the audio element
398 pref("media.audio_data.enabled", false);
399 
400 // Whether to use async panning and zooming
401 pref("layers.async-pan-zoom.enabled", false);
402 
403 // Whether to lock touch scrolling to one axis at a time
404 // 0 = FREE (No locking at all)
405 // 1 = STANDARD (Once locked, remain locked until scrolling ends)
406 // 2 = STICKY (Allow lock to be broken, with hysteresis)
407 pref("apz.axis_lock_mode", 0);
408 
409 // Whether to print the APZC tree for debugging
410 pref("apz.printtree", false);
411 
412 #ifdef XP_MACOSX
413 // Layerize scrollable subframes to allow async panning
414 pref("apz.subframe.enabled", true);
415 pref("apz.fling_repaint_interval", 16);
416 pref("apz.pan_repaint_interval", 16);
417 pref("apz.apz.x_skate_size_multiplier", "2.5");
418 pref("apz.apz.y_skate_size_multiplier", "3.5");
419 #else
420 pref("apz.subframe.enabled", false);
421 #endif
422 
423 // APZ testing (bug 961289)
424 pref("apz.test.logging_enabled", false);
425 
426 #ifdef XP_MACOSX
427 // Whether to run in native HiDPI mode on machines with "Retina"/HiDPI display;
428 //   <= 0 : hidpi mode disabled, display will just use pixel-based upscaling
429 //   == 1 : hidpi supported if all screens share the same backingScaleFactor
430 //   >= 2 : hidpi supported even with mixed backingScaleFactors (somewhat broken)
431 pref("gfx.hidpi.enabled", 2);
432 #endif
433 
434 // Whether to enable LayerScope tool and default listening port
435 pref("gfx.layerscope.enabled", false);
436 pref("gfx.layerscope.port", 23456);
437 
438 // Log severe performance warnings to the error console and profiles.
439 // This should be use to quickly find which slow paths are used by test cases.
440 pref("gfx.perf-warnings.enabled", false);
441 
442 // 0 = Off, 1 = Full, 2 = Tagged Images Only.
443 // See eCMSMode in gfx/thebes/gfxPlatform.h
444 pref("gfx.color_management.mode", 2);
445 pref("gfx.color_management.display_profile", "");
446 pref("gfx.color_management.rendering_intent", 0);
447 pref("gfx.color_management.enablev4", false);
448 
449 pref("gfx.downloadable_fonts.enabled", true);
450 pref("gfx.downloadable_fonts.fallback_delay", 3000);
451 
452 #ifdef ANDROID
453 pref("gfx.bundled_fonts.enabled", true);
454 pref("gfx.bundled_fonts.force-enabled", false);
455 #endif
456 
457 pref("gfx.filter.nearest.force-enabled", false);
458 
459 // prefs controlling the font (name/cmap) loader that runs shortly after startup
460 pref("gfx.font_loader.families_per_slice", 3); // read in info 3 families at a time
461 #ifdef XP_WIN
462 pref("gfx.font_loader.delay", 120000);         // 2 minutes after startup
463 pref("gfx.font_loader.interval", 1000);        // every 1 second until complete
464 #else
465 pref("gfx.font_loader.delay", 8000);           // 8 secs after startup
466 pref("gfx.font_loader.interval", 50);          // run every 50 ms
467 #endif
468 
469 // whether to always search all font cmaps during system font fallback
470 pref("gfx.font_rendering.fallback.always_use_cmaps", false);
471 
472 // cache shaped word results
473 pref("gfx.font_rendering.wordcache.charlimit", 32);
474 
475 // cache shaped word results
476 pref("gfx.font_rendering.wordcache.maxentries", 10000);
477 
478 pref("gfx.font_rendering.graphite.enabled", true);
479 
480 #ifdef XP_WIN
481 pref("gfx.font_rendering.directwrite.enabled", false);
482 pref("gfx.font_rendering.directwrite.use_gdi_table_loading", true);
483 #endif
484 
485 pref("gfx.font_rendering.opentype_svg.enabled", true);
486 
487 #ifdef XP_WIN
488 // comma separated list of backends to use in order of preference
489 // e.g., pref("gfx.canvas.azure.backends", "direct2d,skia,cairo");
490 pref("gfx.canvas.azure.backends", "direct2d,skia,cairo");
491 pref("gfx.content.azure.backends", "direct2d,cairo");
492 #else
493 #ifdef XP_MACOSX
494 pref("gfx.content.azure.backends", "cg");
495 pref("gfx.canvas.azure.backends", "cg");
496 // Accelerated cg canvas where available (10.7+)
497 pref("gfx.canvas.azure.accelerated", false);
498 #else
499 pref("gfx.canvas.azure.backends", "cairo");
500 pref("gfx.content.azure.backends", "cairo");
501 #endif
502 #endif
503 
504 #ifdef MOZ_WIDGET_GTK2
505 pref("gfx.content.azure.backends", "cairo");
506 #endif
507 #ifdef ANDROID
508 pref("gfx.content.azure.backends", "cairo");
509 #endif
510 
511 pref("gfx.work-around-driver-bugs", true);
512 pref("gfx.prefer-mesa-llvmpipe", false);
513 
514 pref("gfx.draw-color-bars", false);
515 
516 pref("accessibility.browsewithcaret", false);
517 pref("accessibility.warn_on_browsewithcaret", true);
518 
519 pref("accessibility.browsewithcaret_shortcut.enabled", true);
520 
521 #ifndef XP_MACOSX
522 // Tab focus model bit field:
523 // 1 focuses text controls, 2 focuses other form elements, 4 adds links.
524 // Most users will want 1, 3, or 7.
525 // On OS X, we use Full Keyboard Access system preference,
526 // unless accessibility.tabfocus is set by the user.
527 pref("accessibility.tabfocus", 7);
528 pref("accessibility.tabfocus_applies_to_xul", false);
529 
530 // On OS X, we follow the "Click in the scrollbar to:" system preference
531 // unless this preference was set manually
532 pref("ui.scrollToClick", 0);
533 
534 #else
535 // Only on mac tabfocus is expected to handle UI widgets as well as web content
536 pref("accessibility.tabfocus_applies_to_xul", true);
537 #endif
538 
539 // provide ability to turn on support for canvas focus rings
540 pref("canvas.focusring.enabled", true);
541 pref("canvas.customfocusring.enabled", false);
542 pref("canvas.hitregions.enabled", false);
543 // Add support for canvas path objects
544 pref("canvas.path.enabled", true);
545 
546 // We want the ability to forcibly disable platform a11y, because
547 // some non-a11y-related components attempt to bring it up.  See bug
548 // 538530 for details about Windows; we have a pref here that allows it
549 // to be disabled for performance and testing resons.
550 // See bug 761589 for the crossplatform aspect.
551 //
552 // This pref is checked only once, and the browser needs a restart to
553 // pick up any changes.
554 //
555 // Values are -1 always on. 1 always off, 0 is auto as some platform perform
556 // further checks.
557 pref("accessibility.force_disabled", 0);
558 
559 #ifdef XP_WIN
560 // Some accessibility tools poke at windows in the plugin process during setup
561 // which can cause hangs.  To hack around this set accessibility.delay_plugins
562 // to true, you can also try increasing accessibility.delay_plugin_time if your
563 // machine is slow and you still experience hangs.
564 // See bug 781791.
565 pref("accessibility.delay_plugins", false);
566 pref("accessibility.delay_plugin_time", 10000);
567 #endif
568 
569 pref("focusmanager.testmode", false);
570 
571 pref("accessibility.usetexttospeech", "");
572 pref("accessibility.usebrailledisplay", "");
573 pref("accessibility.accesskeycausesactivation", true);
574 pref("accessibility.mouse_focuses_formcontrol", false);
575 
576 // Type Ahead Find
577 pref("accessibility.typeaheadfind", true);
578 pref("accessibility.typeaheadfind.autostart", true);
579 // casesensitive: controls the find bar's case-sensitivity
580 //     0 - "never"  (case-insensitive)
581 //     1 - "always" (case-sensitive)
582 // other - "auto"   (case-sensitive for mixed-case input, insensitive otherwise)
583 pref("accessibility.typeaheadfind.casesensitive", 0);
584 pref("accessibility.typeaheadfind.linksonly", true);
585 pref("accessibility.typeaheadfind.startlinksonly", false);
586 pref("accessibility.typeaheadfind.timeout", 4000);
587 pref("accessibility.typeaheadfind.enabletimeout", true);
588 pref("accessibility.typeaheadfind.soundURL", "beep");
589 pref("accessibility.typeaheadfind.enablesound", true);
590 #ifdef XP_MACOSX
591 pref("accessibility.typeaheadfind.prefillwithselection", false);
592 #else
593 pref("accessibility.typeaheadfind.prefillwithselection", true);
594 #endif
595 pref("accessibility.typeaheadfind.matchesCountTimeout", 250);
596 pref("accessibility.typeaheadfind.matchesCountLimit", 100);
597 
598 // use Mac OS X Appearance panel text smoothing setting when rendering text, disabled by default
599 pref("gfx.use_text_smoothing_setting", false);
600 
601 // Number of characters to consider emphasizing for rich autocomplete results
602 pref("toolkit.autocomplete.richBoundaryCutoff", 200);
603 
604 // Variable controlling logging for osfile.
605 pref("toolkit.osfile.log", false);
606 
607 pref("toolkit.scrollbox.smoothScroll", true);
608 pref("toolkit.scrollbox.scrollIncrement", 20);
609 pref("toolkit.scrollbox.verticalScrollDistance", 3);
610 pref("toolkit.scrollbox.horizontalScrollDistance", 5);
611 pref("toolkit.scrollbox.clickToScroll.scrollDelay", 150);
612 
613 pref("toolkit.telemetry.server", "https://incoming.telemetry.mozilla.org");
614 // Telemetry server owner. Please change if you set toolkit.telemetry.server to a different server
615 pref("toolkit.telemetry.server_owner", "Mozilla");
616 // Information page about telemetry (temporary ; will be about:telemetry in the end)
617 pref("toolkit.telemetry.infoURL", "https://www.mozilla.org/legal/privacy/firefox.html#telemetry");
618 // Determines whether full SQL strings are returned when they might contain sensitive info
619 // i.e. dynamically constructed SQL strings or SQL executed by addons against addon DBs
620 pref("toolkit.telemetry.debugSlowSql", false);
621 
622 // Identity module
623 pref("toolkit.identity.enabled", false);
624 pref("toolkit.identity.debug", false);
625 
626 // AsyncShutdown delay before crashing in case of shutdown freeze
627 pref("toolkit.asyncshutdown.timeout.crash", 60000);
628 
629 // Enable deprecation warnings.
630 pref("devtools.errorconsole.deprecation_warnings", true);
631 
632 // Disable debugging chrome
633 pref("devtools.chrome.enabled", false);
634 
635 // Disable remote debugging protocol logging
636 pref("devtools.debugger.log", false);
637 // Disable remote debugging connections
638 pref("devtools.debugger.remote-enabled", false);
639 pref("devtools.debugger.remote-port", 6000);
640 // Force debugger server binding on the loopback interface
641 pref("devtools.debugger.force-local", true);
642 // Display a prompt when a new connection starts to accept/reject it
643 pref("devtools.debugger.prompt-connection", true);
644 // Block tools from seeing / interacting with certified apps
645 pref("devtools.debugger.forbid-certified-apps", true);
646 
647 // DevTools default color unit
648 pref("devtools.defaultColorUnit", "hex");
649 
650 // Used for devtools debugging
651 pref("devtools.dump.emit", false);
652 
653 // Disable device discovery logging
654 pref("devtools.discovery.log", false);
655 // Disable scanning for DevTools devices via WiFi
656 pref("devtools.remote.wifi.scan", false);
657 // Hide UI options for controlling device visibility over WiFi
658 // N.B.: This does not set whether the device can be discovered via WiFi, only
659 // whether the UI control to make such a choice is shown to the user
660 pref("devtools.remote.wifi.visible", false);
661 
662 // view source
663 pref("view_source.syntax_highlight", true);
664 pref("view_source.wrap_long_lines", false);
665 pref("view_source.editor.external", false);
666 pref("view_source.editor.path", "");
667 // allows to add further arguments to the editor; use the %LINE% placeholder
668 // for jumping to a specific line (e.g. "/line:%LINE%" or "--goto %LINE%")
669 pref("view_source.editor.args", "");
670 
671 // When true this will word-wrap plain text documents.
672 pref("plain_text.wrap_long_lines", false);
673 
674 // whether or not to draw images while dragging
675 pref("nglayout.enable_drag_images", true);
676 
677 // enable/disable paint flashing --- useful for debugging
678 // the first one applies to everything, the second one only to chrome
679 pref("nglayout.debug.paint_flashing", false);
680 pref("nglayout.debug.paint_flashing_chrome", false);
681 
682 // enable/disable widget update area flashing --- only supported with
683 // BasicLayers (other layer managers always update the entire widget area)
684 pref("nglayout.debug.widget_update_flashing", false);
685 
686 // Whether image visibility is enabled globally (ie we will try to unlock images
687 // that are not visible).
688 pref("layout.imagevisibility.enabled", true);
689 // Whether image visibility is enabled in documents that are within a browser
690 // element as defined by nsDocShell::FrameType and GetInheritedFrameType. This
691 // pref only has an effect if layout.imagevisibility.enabled is false.
692 pref("layout.imagevisibility.enabled_for_browser_elements_only", false);
693 pref("layout.imagevisibility.numscrollportwidths", 0);
694 pref("layout.imagevisibility.numscrollportheights", 1);
695 
696 // scrollbar snapping region
697 // 0 - off
698 // 1 and higher - slider thickness multiple
699 pref("slider.snapMultiplier", 0);
700 
701 // option to choose plug-in finder
702 pref("application.use_ns_plugin_finder", false);
703 
704 // URI fixup prefs
705 pref("browser.fixup.alternate.enabled", true);
706 pref("browser.fixup.alternate.prefix", "www.");
707 pref("browser.fixup.alternate.suffix", ".com");
708 pref("browser.fixup.hide_user_pass", true);
709 
710 // Location Bar AutoComplete
711 pref("browser.urlbar.autocomplete.enabled", true);
712 
713 // Print header customization
714 // Use the following codes:
715 // &T - Title
716 // &U - Document URL
717 // &D - Date/Time
718 // &P - Page Number
719 // &PT - Page Number "of" Page total
720 // Set each header to a string containing zero or one of these codes
721 // and the code will be replaced in that string by the corresponding data
722 pref("print.print_headerleft", "&T");
723 pref("print.print_headercenter", "");
724 pref("print.print_headerright", "&U");
725 pref("print.print_footerleft", "&PT");
726 pref("print.print_footercenter", "");
727 pref("print.print_footerright", "&D");
728 pref("print.show_print_progress", true);
729 
730 // xxxbsmedberg: more toolkit prefs
731 
732 // When this is set to false each window has its own PrintSettings
733 // and a change in one window does not affect the others
734 pref("print.use_global_printsettings", true);
735 
736 // Save the Printings after each print job
737 pref("print.save_print_settings", true);
738 
739 // Cache old Presentation when going into Print Preview
740 pref("print.always_cache_old_pres", false);
741 
742 // Enables you to specify the amount of the paper that is to be treated
743 // as unwriteable.  The print_edge_XXX and print_margin_XXX preferences
744 // are treated as offsets that are added to this pref.
745 // Default is "-1", which means "use the system default".  (If there is
746 // no system default, then the -1 is treated as if it were 0.)
747 // This is used by both Printing and Print Preview.
748 // Units are in 1/100ths of an inch.
749 pref("print.print_unwriteable_margin_top",    -1);
750 pref("print.print_unwriteable_margin_left",   -1);
751 pref("print.print_unwriteable_margin_right",  -1);
752 pref("print.print_unwriteable_margin_bottom", -1);
753 
754 // Enables you to specify the gap from the edge of the paper's
755 // unwriteable area to the margin.
756 // This is used by both Printing and Print Preview
757 // Units are in 1/100ths of an inch.
758 pref("print.print_edge_top", 0);
759 pref("print.print_edge_left", 0);
760 pref("print.print_edge_right", 0);
761 pref("print.print_edge_bottom", 0);
762 
763 // Pref used by the spellchecker extension to control the
764 // maximum number of misspelled words that will be underlined
765 // in a document.
766 pref("extensions.spellcheck.inline.max-misspellings", 500);
767 
768 // Prefs used by libeditor. Prefs specific to seamonkey composer
769 // belong in comm-central/editor/ui/composer.js
770 
771 pref("editor.use_custom_colors", false);
772 pref("editor.singleLine.pasteNewlines",      2);
773 pref("editor.use_css",                       false);
774 pref("editor.css.default_length_unit",       "px");
775 pref("editor.resizing.preserve_ratio",       true);
776 pref("editor.positioning.offset",            0);
777 
778 // Scripts & Windows prefs
779 pref("dom.disable_beforeunload",            false);
780 pref("dom.disable_image_src_set",           false);
781 pref("dom.disable_window_flip",             false);
782 pref("dom.disable_window_move_resize",      false);
783 pref("dom.disable_window_status_change",    false);
784 
785 pref("dom.disable_window_open_feature.titlebar",    false);
786 pref("dom.disable_window_open_feature.close",       false);
787 pref("dom.disable_window_open_feature.toolbar",     false);
788 pref("dom.disable_window_open_feature.location",    false);
789 pref("dom.disable_window_open_feature.personalbar", false);
790 pref("dom.disable_window_open_feature.menubar",     false);
791 pref("dom.disable_window_open_feature.scrollbars",  false);
792 pref("dom.disable_window_open_feature.resizable",   true);
793 pref("dom.disable_window_open_feature.minimizable", false);
794 pref("dom.disable_window_open_feature.status",      true);
795 
796 pref("dom.allow_scripts_to_close_windows",          false);
797 
798 pref("dom.disable_open_during_load",                false);
799 pref("dom.popup_maximum",                           20);
800 pref("dom.popup_allowed_events", "change click dblclick mouseup reset submit touchend");
801 pref("dom.disable_open_click_delay", 1000);
802 
803 pref("dom.storage.enabled", true);
804 pref("dom.storage.default_quota",      5120);
805 
806 pref("dom.send_after_paint_to_content", false);
807 
808 // Timeout clamp in ms for timeouts we clamp
809 pref("dom.min_timeout_value", 4);
810 // And for background windows
811 pref("dom.min_background_timeout_value", 1000);
812 
813 // Don't use new input types
814 pref("dom.experimental_forms", false);
815 
816 // Enable <input type=number>:
817 pref("dom.forms.number", true);
818 
819 // Enable <input type=color> by default. It will be turned off for remaining
820 // platforms which don't have a color picker implemented yet.
821 pref("dom.forms.color", true);
822 
823 // Support for new @autocomplete values
824 pref("dom.forms.autocomplete.experimental", false);
825 
826 // Enables requestAutocomplete DOM API on forms.
827 pref("dom.forms.requestAutocomplete", false);
828 
829 // Enables system messages and activities
830 pref("dom.sysmsg.enabled", false);
831 
832 // Enable pre-installed applications.
833 pref("dom.webapps.useCurrentProfile", false);
834 
835 pref("dom.cycle_collector.incremental", true);
836 
837 pref("dom.window_experimental_bindings", true);
838 
839 // Parsing perf prefs. For now just mimic what the old code did.
840 #ifndef XP_WIN
841 pref("content.sink.pending_event_mode", 0);
842 #endif
843 
844 // Disable popups from plugins by default
845 //   0 = openAllowed
846 //   1 = openControlled
847 //   2 = openAbused
848 pref("privacy.popups.disable_from_plugins", 2);
849 
850 // "do not track" HTTP header, disabled by default
851 pref("privacy.donottrackheader.enabled",    false);
852 //   0 = tracking is acceptable
853 //   1 = tracking is unacceptable
854 pref("privacy.donottrackheader.value",      1);
855 // Enforce tracking protection
856 pref("privacy.trackingprotection.enabled",  false);
857 
858 pref("dom.event.contextmenu.enabled",       true);
859 pref("dom.event.clipboardevents.enabled",   true);
860 #if defined(XP_WIN) && !defined(RELEASE_BUILD)
861 pref("dom.event.highrestimestamp.enabled",  true);
862 #else
863 pref("dom.event.highrestimestamp.enabled",  false);
864 #endif
865 
866 pref("dom.webcomponents.enabled",           false);
867 
868 pref("javascript.enabled",                  true);
869 pref("javascript.options.strict",           false);
870 #ifdef DEBUG
871 pref("javascript.options.strict.debug",     true);
872 #endif
873 pref("javascript.options.baselinejit",      true);
874 pref("javascript.options.ion",              true);
875 pref("javascript.options.asmjs",            true);
876 pref("javascript.options.native_regexp",    true);
877 pref("javascript.options.parallel_parsing", true);
878 pref("javascript.options.ion.offthread_compilation", true);
879 // This preference instructs the JS engine to discard the
880 // source of any privileged JS after compilation. This saves
881 // memory, but makes things like Function.prototype.toSource()
882 // fail.
883 pref("javascript.options.discardSystemSource", false);
884 // This preference limits the memory usage of javascript.
885 // If you want to change these values for your device,
886 // please find Bug 417052 comment 17 and Bug 456721
887 // Comment 32 and Bug 613551.
888 pref("javascript.options.mem.high_water_mark", 128);
889 pref("javascript.options.mem.max", -1);
890 pref("javascript.options.mem.gc_per_compartment", true);
891 pref("javascript.options.mem.gc_incremental", true);
892 pref("javascript.options.mem.gc_incremental_slice_ms", 10);
893 pref("javascript.options.mem.log", false);
894 pref("javascript.options.mem.notify", false);
895 pref("javascript.options.gc_on_memory_pressure", true);
896 
897 pref("javascript.options.mem.gc_high_frequency_time_limit_ms", 1000);
898 pref("javascript.options.mem.gc_high_frequency_low_limit_mb", 100);
899 pref("javascript.options.mem.gc_high_frequency_high_limit_mb", 500);
900 pref("javascript.options.mem.gc_high_frequency_heap_growth_max", 300);
901 pref("javascript.options.mem.gc_high_frequency_heap_growth_min", 150);
902 pref("javascript.options.mem.gc_low_frequency_heap_growth", 150);
903 pref("javascript.options.mem.gc_dynamic_heap_growth", true);
904 pref("javascript.options.mem.gc_dynamic_mark_slice", true);
905 pref("javascript.options.mem.gc_allocation_threshold_mb", 30);
906 pref("javascript.options.mem.gc_decommit_threshold_mb", 32);
907 #ifdef JSGC_GENERATIONAL
908 pref("javascript.options.mem.gc_min_empty_chunk_count", 1);
909 #else
910 pref("javascript.options.mem.gc_min_empty_chunk_count", 0);
911 #endif
912 pref("javascript.options.mem.gc_max_empty_chunk_count", 30);
913 
914 pref("javascript.options.showInConsole", false);
915 
916 // advanced prefs
917 pref("advanced.mailftp",                    false);
918 pref("image.animation_mode",                "normal");
919 
920 // Same-origin policy for file URIs, "false" is traditional
921 pref("security.fileuri.strict_origin_policy", true);
922 
923 // If there is ever a security firedrill that requires
924 // us to block certian ports global, this is the pref
925 // to use.  Is is a comma delimited list of port numbers
926 // for example:
927 //   pref("network.security.ports.banned", "1,2,3,4,5");
928 // prevents necko connecting to ports 1-5 unless the protocol
929 // overrides.
930 
931 // Allow necko to do A/B testing. Will generally only happen if
932 // telemetry is also enabled as otherwise there is no way to report
933 // the results
934 pref("network.allow-experiments", true);
935 
936 // Transmit UDP busy-work to the LAN when anticipating low latency
937 // network reads and on wifi to mitigate 802.11 Power Save Polling delays
938 pref("network.tickle-wifi.enabled", false);
939 pref("network.tickle-wifi.duration", 400);
940 pref("network.tickle-wifi.delay", 16);
941 
942 // Turn off interprocess security checks. Needed to run xpcshell tests.
943 pref("network.disable.ipc.security", false);
944 
945 // Default action for unlisted external protocol handlers
946 pref("network.protocol-handler.external-default", true);      // OK to load
947 pref("network.protocol-handler.warn-external-default", true); // warn before load
948 
949 // Prevent using external protocol handlers for these schemes
950 pref("network.protocol-handler.external.hcp", false);
951 pref("network.protocol-handler.external.vbscript", false);
952 pref("network.protocol-handler.external.javascript", false);
953 pref("network.protocol-handler.external.data", false);
954 pref("network.protocol-handler.external.ms-help", false);
955 pref("network.protocol-handler.external.shell", false);
956 pref("network.protocol-handler.external.vnd.ms.radio", false);
957 #ifdef XP_MACOSX
958 pref("network.protocol-handler.external.help", false);
959 #endif
960 pref("network.protocol-handler.external.disk", false);
961 pref("network.protocol-handler.external.disks", false);
962 pref("network.protocol-handler.external.afp", false);
963 pref("network.protocol-handler.external.moz-icon", false);
964 
965 // Don't allow  external protocol handlers for common typos
966 pref("network.protocol-handler.external.ttp", false);  // http
967 pref("network.protocol-handler.external.ttps", false); // https
968 pref("network.protocol-handler.external.tps", false);  // https
969 pref("network.protocol-handler.external.ps", false);   // https
970 pref("network.protocol-handler.external.ile", false);  // file
971 pref("network.protocol-handler.external.le", false);   // file
972 
973 // An exposed protocol handler is one that can be used in all contexts.  A
974 // non-exposed protocol handler is one that can only be used internally by the
975 // application.  For example, a non-exposed protocol would not be loaded by the
976 // application in response to a link click or a X-remote openURL command.
977 // Instead, it would be deferred to the system's external protocol handler.
978 // Only internal/built-in protocol handlers can be marked as exposed.
979 
980 // This pref controls the default settings.  Per protocol settings can be used
981 // to override this value.
982 pref("network.protocol-handler.expose-all", true);
983 
984 // Warning for about:networking page
985 pref("network.warnOnAboutNetworking", true);
986 
987 // Example: make IMAP an exposed protocol
988 // pref("network.protocol-handler.expose.imap", true);
989 
990 // <http>
991 pref("network.http.version", "1.1");      // default
992 // pref("network.http.version", "1.0");   // uncomment this out in case of problems
993 // pref("network.http.version", "0.9");   // it'll work too if you're crazy
994 // keep-alive option is effectively obsolete. Nevertheless it'll work with
995 // some older 1.0 servers:
996 
997 pref("network.http.proxy.version", "1.1");    // default
998 // pref("network.http.proxy.version", "1.0"); // uncomment this out in case of problems
999                                               // (required if using junkbuster proxy)
1000 
1001 // enable caching of http documents
1002 pref("network.http.use-cache", true);
1003 
1004 // this preference can be set to override the socket type used for normal
1005 // HTTP traffic.  an empty value indicates the normal TCP/IP socket type.
1006 pref("network.http.default-socket-type", "");
1007 
1008 // There is a problem with some IIS7 servers that don't close the connection
1009 // properly after it times out (bug #491541). Default timeout on IIS7 is
1010 // 120 seconds. We need to reuse or drop the connection within this time.
1011 // We set the timeout a little shorter to keep a reserve for cases when
1012 // the packet is lost or delayed on the route.
1013 pref("network.http.keep-alive.timeout", 115);
1014 
1015 // Timeout connections if an initial response is not received after 5 mins.
1016 pref("network.http.response.timeout", 300);
1017 
1018 // Limit the absolute number of http connections.
1019 // Note: the socket transport service will clamp the number below 256 if the OS
1020 // cannot allocate that many FDs, and it also always tries to reserve up to 250
1021 // file descriptors for things other than sockets.
1022 pref("network.http.max-connections", 256);
1023 
1024 // If NOT connecting via a proxy, then
1025 // a new connection will only be attempted if the number of active persistent
1026 // connections to the server is less then max-persistent-connections-per-server.
1027 pref("network.http.max-persistent-connections-per-server", 6);
1028 
1029 // If connecting via a proxy, then a
1030 // new connection will only be attempted if the number of active persistent
1031 // connections to the proxy is less then max-persistent-connections-per-proxy.
1032 pref("network.http.max-persistent-connections-per-proxy", 32);
1033 
1034 // amount of time (in seconds) to suspend pending requests, before spawning a
1035 // new connection, once the limit on the number of persistent connections per
1036 // host has been reached.  however, a new connection will not be created if
1037 // max-connections or max-connections-per-server has also been reached.
1038 pref("network.http.request.max-start-delay", 10);
1039 
1040 // Headers
1041 pref("network.http.accept.default", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
1042 
1043 // Prefs allowing granular control of referers
1044 // 0=don't send any, 1=send only on clicks, 2=send on image requests as well
1045 pref("network.http.sendRefererHeader",      2);
1046 // false=real referer, true=spoof referer (use target URI as referer)
1047 pref("network.http.referer.spoofSource", false);
1048 // 0=full URI, 1=scheme+host+port+path, 2=scheme+host+port
1049 pref("network.http.referer.trimmingPolicy", 0);
1050 // 0=always send, 1=send iff base domains match, 2=send iff hosts match
1051 pref("network.http.referer.XOriginPolicy", 0);
1052 
1053 // Controls whether we send HTTPS referres to other HTTPS sites.
1054 // By default this is enabled for compatibility (see bug 141641)
1055 pref("network.http.sendSecureXSiteReferrer", true);
1056 
1057 // Maximum number of consecutive redirects before aborting.
1058 pref("network.http.redirection-limit", 20);
1059 
1060 // Enable http compression: comment this out in case of problems with 1.1
1061 // NOTE: support for "compress" has been disabled per bug 196406.
1062 // NOTE: separate values with comma+space (", "): see bug 576033
1063 pref("network.http.accept-encoding", "gzip, deflate");
1064 
1065 pref("network.http.pipelining"      , false);
1066 pref("network.http.pipelining.ssl"  , false); // disable pipelining over SSL
1067 pref("network.http.pipelining.abtest", false);
1068 pref("network.http.proxy.pipelining", false);
1069 
1070 // Max number of requests in the pipeline
1071 pref("network.http.pipelining.maxrequests" , 32);
1072 
1073 // An optimistic request is one pipelined when policy might allow a new
1074 // connection instead
1075 pref("network.http.pipelining.max-optimistic-requests" , 4);
1076 
1077 pref("network.http.pipelining.aggressive", false);
1078 pref("network.http.pipelining.maxsize" , 300000);
1079 pref("network.http.pipelining.reschedule-on-timeout", true);
1080 pref("network.http.pipelining.reschedule-timeout", 1500);
1081 
1082 // The read-timeout is a ms timer that causes the transaction to be completely
1083 // restarted without pipelining.
1084 pref("network.http.pipelining.read-timeout", 30000);
1085 
1086 // Prompt for redirects resulting in unsafe HTTP requests
1087 pref("network.http.prompt-temp-redirect", false);
1088 
1089 // If true generate CORRUPTED_CONTENT errors for entities that
1090 // contain an invalid Assoc-Req response header
1091 pref("network.http.assoc-req.enforce", false);
1092 
1093 // On networks deploying QoS, it is recommended that these be lockpref()'d,
1094 // since inappropriate marking can easily overwhelm bandwidth reservations
1095 // for certain services (i.e. EF for VoIP, AF4x for interactive video,
1096 // AF3x for broadcast/streaming video, etc)
1097 
1098 // default value for HTTP
1099 // in a DSCP environment this should be 40 (0x28, or AF11), per RFC-4594,
1100 // Section 4.8 "High-Throughput Data Service Class"
1101 pref("network.http.qos", 0);
1102 
1103 // The number of milliseconds after sending a SYN for an HTTP connection,
1104 // to wait before trying a different connection. 0 means do not use a second
1105 // connection.
1106 pref("network.http.connection-retry-timeout", 250);
1107 
1108 // The number of seconds after sending initial SYN for an HTTP connection
1109 // to give up if the OS does not give up first
1110 pref("network.http.connection-timeout", 90);
1111 
1112 // The maximum number of current global half open sockets allowable
1113 // when starting a new speculative connection.
1114 pref("network.http.speculative-parallel-limit", 6);
1115 
1116 // Allow/Forbid speculative connections on loopback.
1117 pref("network.http.speculative.allowLoopback", false);
1118 
1119 // Whether or not to block requests for non head js/css items (e.g. media)
1120 // while those elements load.
1121 pref("network.http.rendering-critical-requests-prioritization", true);
1122 
1123 // Disable IPv6 for backup connections to workaround problems about broken
1124 // IPv6 connectivity.
1125 pref("network.http.fast-fallback-to-IPv4", true);
1126 
1127 // The maximum amount of time the cache session lock can be held
1128 // before a new transaction bypasses the cache. In milliseconds.
1129 #ifdef RELEASE_BUILD
1130 pref("network.http.bypass-cachelock-threshold", 200000);
1131 #else
1132 pref("network.http.bypass-cachelock-threshold", 250);
1133 #endif
1134 
1135 // Try and use SPDY when using SSL
1136 pref("network.http.spdy.enabled", true);
1137 pref("network.http.spdy.enabled.v3", true);
1138 pref("network.http.spdy.enabled.v3-1", true);
1139 pref("network.http.spdy.enabled.http2draft", false);
1140 pref("network.http.spdy.enforce-tls-profile", true);
1141 pref("network.http.spdy.chunk-size", 16000);
1142 pref("network.http.spdy.timeout", 180);
1143 pref("network.http.spdy.coalesce-hostnames", true);
1144 pref("network.http.spdy.persistent-settings", false);
1145 pref("network.http.spdy.ping-threshold", 58);
1146 pref("network.http.spdy.ping-timeout", 8);
1147 pref("network.http.spdy.send-buffer-size", 131072);
1148 pref("network.http.spdy.allow-push", true);
1149 pref("network.http.spdy.push-allowance", 131072);
1150 
1151 pref("network.http.diagnostics", false);
1152 
1153 pref("network.http.pacing.requests.enabled", true);
1154 pref("network.http.pacing.requests.min-parallelism", 6);
1155 pref("network.http.pacing.requests.hz", 100);
1156 pref("network.http.pacing.requests.burst", 32);
1157 
1158 // TCP Keepalive config for HTTP connections.
1159 pref("network.http.tcp_keepalive.short_lived_connections", true);
1160 // Max time from initial request during which conns are considered short-lived.
1161 pref("network.http.tcp_keepalive.short_lived_time", 60);
1162 // Idle time of TCP connection until first keepalive probe sent.
1163 pref("network.http.tcp_keepalive.short_lived_idle_time", 10);
1164 
1165 pref("network.http.tcp_keepalive.long_lived_connections", true);
1166 pref("network.http.tcp_keepalive.long_lived_idle_time", 600);
1167 
1168 // default values for FTP
1169 // in a DSCP environment this should be 40 (0x28, or AF11), per RFC-4594,
1170 // Section 4.8 "High-Throughput Data Service Class", and 80 (0x50, or AF22)
1171 // per Section 4.7 "Low-Latency Data Service Class".
1172 pref("network.ftp.data.qos", 0);
1173 pref("network.ftp.control.qos", 0);
1174 
1175 // </http>
1176 
1177 // <ws>: WebSocket
1178 pref("network.websocket.enabled", true);
1179 
1180 // 2147483647 == PR_INT32_MAX == ~2 GB
1181 pref("network.websocket.max-message-size", 2147483647);
1182 
1183 // Should we automatically follow http 3xx redirects during handshake
1184 pref("network.websocket.auto-follow-http-redirects", false);
1185 
1186 // the number of seconds to wait for websocket connection to be opened
1187 pref("network.websocket.timeout.open", 20);
1188 
1189 // the number of seconds to wait for a clean close after sending the client
1190 // close message
1191 pref("network.websocket.timeout.close", 20);
1192 
1193 // the number of seconds of idle read activity to sustain before sending a
1194 // ping probe. 0 to disable.
1195 pref("network.websocket.timeout.ping.request", 0);
1196 
1197 // the deadline, expressed in seconds, for some read activity to occur after
1198 // generating a ping. If no activity happens then an error and unclean close
1199 // event is sent to the javascript websockets application
1200 pref("network.websocket.timeout.ping.response", 10);
1201 
1202 // Defines whether or not to try and negotiate the stream-deflate compression
1203 // extension with the websocket server. Stream-Deflate has been removed from
1204 // the standards track document, but can still be used by servers who opt
1205 // into it.
1206 pref("network.websocket.extensions.stream-deflate", false);
1207 
1208 // the maximum number of concurrent websocket sessions. By specification there
1209 // is never more than one handshake oustanding to an individual host at
1210 // one time.
1211 pref("network.websocket.max-connections", 200);
1212 
1213 // by default scripts loaded from a https:// origin can only open secure
1214 // (i.e. wss://) websockets.
1215 pref("network.websocket.allowInsecureFromHTTPS", false);
1216 
1217 // by default we delay websocket reconnects to same host/port if previous
1218 // connection failed, per RFC 6455 section 7.2.3
1219 pref("network.websocket.delay-failed-reconnects", true);
1220 
1221 // </ws>
1222 
1223 // Server-Sent Events
1224 
1225 pref("dom.server-events.enabled", true);
1226 // Equal to the DEFAULT_RECONNECTION_TIME_VALUE value in nsEventSource.cpp
1227 pref("dom.server-events.default-reconnection-time", 5000); // in milliseconds
1228 
1229 // If false, remote JAR files that are served with a content type other than
1230 // application/java-archive or application/x-jar will not be opened
1231 // by the jar channel.
1232 pref("network.jar.open-unsafe-types", false);
1233 
1234 // This preference, if true, causes all UTF-8 domain names to be normalized to
1235 // punycode.  The intention is to allow UTF-8 domain names as input, but never
1236 // generate them from punycode.
1237 pref("network.IDN_show_punycode", false);
1238 
1239 // If "network.IDN.use_whitelist" is set to true, TLDs with
1240 // "network.IDN.whitelist.tld" explicitly set to true are treated as
1241 // IDN-safe. Otherwise, they're treated as unsafe and punycode will be used
1242 // for displaying them in the UI (e.g. URL bar), unless they conform to one of
1243 // the profiles specified in
1244 // http://www.unicode.org/reports/tr36/proposed.html#Security_Levels_and_Alerts
1245 // If "network.IDN.restriction_profile" is "high", the Highly Restrictive
1246 // profile is used.
1247 // If "network.IDN.restriction_profile" is "moderate", the Moderately
1248 // Restrictive profile is used.
1249 // In all other cases, the ASCII-Only profile is used.
1250 // Note that these preferences are referred to ONLY when
1251 // "network.IDN_show_punycode" is false. In other words, all IDNs will be shown
1252 // in punycode if "network.IDN_show_punycode" is true.
1253 pref("network.IDN.restriction_profile", "moderate");
1254 pref("network.IDN.use_whitelist", true);
1255 
1256 // ccTLDs
1257 pref("network.IDN.whitelist.ac", true);
1258 pref("network.IDN.whitelist.ar", true);
1259 pref("network.IDN.whitelist.at", true);
1260 pref("network.IDN.whitelist.br", true);
1261 pref("network.IDN.whitelist.ca", true);
1262 pref("network.IDN.whitelist.ch", true);
1263 pref("network.IDN.whitelist.cl", true);
1264 pref("network.IDN.whitelist.cn", true);
1265 pref("network.IDN.whitelist.de", true);
1266 pref("network.IDN.whitelist.dk", true);
1267 pref("network.IDN.whitelist.ee", true);
1268 pref("network.IDN.whitelist.es", true);
1269 pref("network.IDN.whitelist.fi", true);
1270 pref("network.IDN.whitelist.fr", true);
1271 pref("network.IDN.whitelist.gr", true);
1272 pref("network.IDN.whitelist.gt", true);
1273 pref("network.IDN.whitelist.hu", true);
1274 pref("network.IDN.whitelist.il", true);
1275 pref("network.IDN.whitelist.io", true);
1276 pref("network.IDN.whitelist.ir", true);
1277 pref("network.IDN.whitelist.is", true);
1278 pref("network.IDN.whitelist.jp", true);
1279 pref("network.IDN.whitelist.kr", true);
1280 pref("network.IDN.whitelist.li", true);
1281 pref("network.IDN.whitelist.lt", true);
1282 pref("network.IDN.whitelist.lu", true);
1283 pref("network.IDN.whitelist.lv", true);
1284 pref("network.IDN.whitelist.no", true);
1285 pref("network.IDN.whitelist.nu", true);
1286 pref("network.IDN.whitelist.nz", true);
1287 pref("network.IDN.whitelist.pl", true);
1288 pref("network.IDN.whitelist.pm", true);
1289 pref("network.IDN.whitelist.pr", true);
1290 pref("network.IDN.whitelist.re", true);
1291 pref("network.IDN.whitelist.se", true);
1292 pref("network.IDN.whitelist.sh", true);
1293 pref("network.IDN.whitelist.si", true);
1294 pref("network.IDN.whitelist.tf", true);
1295 pref("network.IDN.whitelist.th", true);
1296 pref("network.IDN.whitelist.tm", true);
1297 pref("network.IDN.whitelist.tw", true);
1298 pref("network.IDN.whitelist.ua", true);
1299 pref("network.IDN.whitelist.vn", true);
1300 pref("network.IDN.whitelist.wf", true);
1301 pref("network.IDN.whitelist.yt", true);
1302 
1303 // IDN ccTLDs
1304 // ae, UAE, .<Emarat>
1305 pref("network.IDN.whitelist.xn--mgbaam7a8h", true);
1306 // cn, China, .<China> with variants
1307 pref("network.IDN.whitelist.xn--fiqz9s", true); // Traditional
1308 pref("network.IDN.whitelist.xn--fiqs8s", true); // Simplified
1309 // eg, Egypt, .<Masr>
1310 pref("network.IDN.whitelist.xn--wgbh1c", true);
1311 // hk, Hong Kong, .<Hong Kong>
1312 pref("network.IDN.whitelist.xn--j6w193g", true);
1313 // ir, Iran, <.Iran> with variants
1314 pref("network.IDN.whitelist.xn--mgba3a4f16a", true);
1315 pref("network.IDN.whitelist.xn--mgba3a4fra", true);
1316 // jo, Jordan, .<Al-Ordon>
1317 pref("network.IDN.whitelist.xn--mgbayh7gpa", true);
1318 // lk, Sri Lanka, .<Lanka> and .<Ilangai>
1319 pref("network.IDN.whitelist.xn--fzc2c9e2c", true);
1320 pref("network.IDN.whitelist.xn--xkc2al3hye2a", true);
1321 // qa, Qatar, .<Qatar>
1322 pref("network.IDN.whitelist.xn--wgbl6a", true);
1323 // rs, Serbia, .<Srb>
1324 pref("network.IDN.whitelist.xn--90a3ac", true);
1325 // ru, Russian Federation, .<RF>
1326 pref("network.IDN.whitelist.xn--p1ai", true);
1327 // sa, Saudi Arabia, .<al-Saudiah> with variants
1328 pref("network.IDN.whitelist.xn--mgberp4a5d4ar", true);
1329 pref("network.IDN.whitelist.xn--mgberp4a5d4a87g", true);
1330 pref("network.IDN.whitelist.xn--mgbqly7c0a67fbc", true);
1331 pref("network.IDN.whitelist.xn--mgbqly7cvafr", true);
1332 // sy, Syria, .<Souria>
1333 pref("network.IDN.whitelist.xn--ogbpf8fl", true);
1334 // th, Thailand, .<Thai>
1335 pref("network.IDN.whitelist.xn--o3cw4h", true);
1336 // tw, Taiwan, <.Taiwan> with variants
1337 pref("network.IDN.whitelist.xn--kpry57d", true);  // Traditional
1338 pref("network.IDN.whitelist.xn--kprw13d", true);  // Simplified
1339 
1340 // gTLDs
1341 pref("network.IDN.whitelist.asia", true);
1342 pref("network.IDN.whitelist.biz", true);
1343 pref("network.IDN.whitelist.cat", true);
1344 pref("network.IDN.whitelist.info", true);
1345 pref("network.IDN.whitelist.museum", true);
1346 pref("network.IDN.whitelist.org", true);
1347 pref("network.IDN.whitelist.tel", true);
1348 
1349 // NOTE: Before these can be removed, one of bug 414812's tests must be updated
1350 //       or it will likely fail!  Please CC jwalden+bmo on the bug associated
1351 //       with removing these so he can provide a patch to make the necessary
1352 //       changes to avoid bustage.
1353 // ".test" localised TLDs for ICANN's top-level IDN trial
1354 pref("network.IDN.whitelist.xn--0zwm56d", true);
1355 pref("network.IDN.whitelist.xn--11b5bs3a9aj6g", true);
1356 pref("network.IDN.whitelist.xn--80akhbyknj4f", true);
1357 pref("network.IDN.whitelist.xn--9t4b11yi5a", true);
1358 pref("network.IDN.whitelist.xn--deba0ad", true);
1359 pref("network.IDN.whitelist.xn--g6w251d", true);
1360 pref("network.IDN.whitelist.xn--hgbk6aj7f53bba", true);
1361 pref("network.IDN.whitelist.xn--hlcj6aya9esc7a", true);
1362 pref("network.IDN.whitelist.xn--jxalpdlp", true);
1363 pref("network.IDN.whitelist.xn--kgbechtv", true);
1364 pref("network.IDN.whitelist.xn--zckzah", true);
1365 
1366 // If a domain includes any of the following characters, it may be a spoof
1367 // attempt and so we always display the domain name as punycode. This would
1368 // override the settings "network.IDN_show_punycode" and
1369 // "network.IDN.whitelist.*".
1370 pref("network.IDN.blacklist_chars", "\u0020\u00A0\u00BC\u00BD\u00BE\u01C3\u02D0\u0337\u0338\u0589\u05C3\u05F4\u0609\u060A\u066A\u06D4\u0701\u0702\u0703\u0704\u115F\u1160\u1735\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u200B\u2024\u2027\u2028\u2029\u202F\u2039\u203A\u2041\u2044\u2052\u205F\u2153\u2154\u2155\u2156\u2157\u2158\u2159\u215A\u215B\u215C\u215D\u215E\u215F\u2215\u2236\u23AE\u2571\u29F6\u29F8\u2AFB\u2AFD\u2FF0\u2FF1\u2FF2\u2FF3\u2FF4\u2FF5\u2FF6\u2FF7\u2FF8\u2FF9\u2FFA\u2FFB\u3000\u3002\u3014\u3015\u3033\u3164\u321D\u321E\u33AE\u33AF\u33C6\u33DF\uA789\uFE14\uFE15\uFE3F\uFE5D\uFE5E\uFEFF\uFF0E\uFF0F\uFF61\uFFA0\uFFF9\uFFFA\uFFFB\uFFFC\uFFFD");
1371 
1372 // This preference specifies a list of domains for which DNS lookups will be
1373 // IPv4 only. Works around broken DNS servers which can't handle IPv6 lookups
1374 // and/or allows the user to disable IPv6 on a per-domain basis. See bug 68796.
1375 pref("network.dns.ipv4OnlyDomains", "");
1376 
1377 // This preference can be used to turn off IPv6 name lookups. See bug 68796.
1378 pref("network.dns.disableIPv6", false);
1379 
1380 // This is the number of dns cache entries allowed
1381 pref("network.dnsCacheEntries", 400);
1382 
1383 // In the absence of OS TTLs, the DNS cache TTL value
1384 pref("network.dnsCacheExpiration", 60);
1385 
1386 // The grace period allows the DNS cache to use expired entries, while kicking off
1387 // a revalidation in the background.
1388 pref("network.dnsCacheExpirationGracePeriod", 60);
1389 
1390 // This preference can be used to turn off DNS prefetch.
1391 pref("network.dns.disablePrefetch", false);
1392 
1393 // This preference controls whether or not URLs with UTF-8 characters are
1394 // escaped.  Set this preference to TRUE for strict RFC2396 conformance.
1395 pref("network.standard-url.escape-utf8", true);
1396 
1397 // This preference controls whether or not URLs are always encoded and sent as
1398 // UTF-8.
1399 pref("network.standard-url.encode-utf8", true);
1400 
1401 // Idle timeout for ftp control connections - 5 minute default
1402 pref("network.ftp.idleConnectionTimeout", 300);
1403 
1404 // directory listing format
1405 // 2: HTML
1406 // 3: XUL directory viewer
1407 // all other values are treated like 2
1408 pref("network.dir.format", 2);
1409 
1410 // enables the prefetch service (i.e., prefetching of <link rel="next"> URLs).
1411 pref("network.prefetch-next", true);
1412 
1413 // enables the predictive service
1414 pref("network.predictor.enabled", false);
1415 pref("network.predictor.enable-hover-on-ssl", false);
1416 pref("network.predictor.page-degradation.day", 0);
1417 pref("network.predictor.page-degradation.week", 5);
1418 pref("network.predictor.page-degradation.month", 10);
1419 pref("network.predictor.page-degradation.year", 25);
1420 pref("network.predictor.page-degradation.max", 50);
1421 pref("network.predictor.subresource-degradation.day", 1);
1422 pref("network.predictor.subresource-degradation.week", 10);
1423 pref("network.predictor.subresource-degradation.month", 25);
1424 pref("network.predictor.subresource-degradation.year", 50);
1425 pref("network.predictor.subresource-degradation.max", 100);
1426 pref("network.predictor.preconnect-min-confidence", 90);
1427 pref("network.predictor.preresolve-min-confidence", 60);
1428 pref("network.predictor.redirect-likely-confidence", 75);
1429 pref("network.predictor.max-queue-size", 50);
1430 pref("network.predictor.max-db-size", 157286400); // bytes
1431 pref("network.predictor.preserve", 80); // percentage of predictor data to keep when cleaning up
1432 
1433 
1434 // The following prefs pertain to the negotiate-auth extension (see bug 17578),
1435 // which provides transparent Kerberos or NTLM authentication using the SPNEGO
1436 // protocol.  Each pref is a comma-separated list of keys, where each key has
1437 // the format:
1438 //   [scheme "://"] [host [":" port]]
1439 // For example, "foo.com" would match "http://www.foo.com/bar", etc.
1440 
1441 // Allow insecure NTLMv1 when needed.
1442 pref("network.negotiate-auth.allow-insecure-ntlm-v1", false);
1443 // Allow insecure NTLMv1 for HTTPS protected sites by default.
1444 pref("network.negotiate-auth.allow-insecure-ntlm-v1-https", true);
1445 
1446 // This list controls which URIs can use the negotiate-auth protocol.  This
1447 // list should be limited to the servers you know you'll need to login to.
1448 pref("network.negotiate-auth.trusted-uris", "");
1449 // This list controls which URIs can support delegation.
1450 pref("network.negotiate-auth.delegation-uris", "");
1451 
1452 // Do not allow SPNEGO by default when challenged by a local server.
1453 pref("network.negotiate-auth.allow-non-fqdn", false);
1454 
1455 // Allow SPNEGO by default when challenged by a proxy server.
1456 pref("network.negotiate-auth.allow-proxies", true);
1457 
1458 // Path to a specific gssapi library
1459 pref("network.negotiate-auth.gsslib", "");
1460 
1461 // Specify if the gss lib comes standard with the OS
1462 pref("network.negotiate-auth.using-native-gsslib", true);
1463 
1464 #ifdef XP_WIN
1465 
1466 // Default to using the SSPI intead of GSSAPI on windows
1467 pref("network.auth.use-sspi", true);
1468 
1469 #endif
1470 
1471 // Controls which NTLM authentication implementation we default to. True forces
1472 // the use of our generic (internal) NTLM authentication implementation vs. any
1473 // native implementation provided by the os. This pref is for diagnosing issues
1474 // with native NTLM. (See bug 520607 for details.) Using generic NTLM authentication
1475 // can expose the user to reflection attack vulnerabilities. Do not change this
1476 // unless you know what you're doing!
1477 // This pref should be removed 6 months after the release of firefox 3.6.
1478 pref("network.auth.force-generic-ntlm", false);
1479 
1480 // The following prefs are used to enable automatic use of the operating
1481 // system's NTLM implementation to silently authenticate the user with their
1482 // Window's domain logon.  The trusted-uris pref follows the format of the
1483 // trusted-uris pref for negotiate authentication.
1484 pref("network.automatic-ntlm-auth.allow-proxies", true);
1485 pref("network.automatic-ntlm-auth.allow-non-fqdn", false);
1486 pref("network.automatic-ntlm-auth.trusted-uris", "");
1487 
1488 // This preference controls whether or not the LM hash will be included in
1489 // response to a NTLM challenge.  By default, this is disabled since servers
1490 // should almost never need the LM hash, and the LM hash is what makes NTLM
1491 // authentication less secure.  See bug 250691 for further details.
1492 // NOTE: automatic-ntlm-auth which leverages the OS-provided NTLM
1493 //       implementation will not be affected by this preference.
1494 pref("network.ntlm.send-lm-response", false);
1495 
1496 pref("permissions.default.image",           1); // 1-Accept, 2-Deny, 3-dontAcceptForeign
1497 
1498 pref("network.proxy.type",                  5);
1499 pref("network.proxy.ftp",                   "");
1500 pref("network.proxy.ftp_port",              0);
1501 pref("network.proxy.http",                  "");
1502 pref("network.proxy.http_port",             0);
1503 pref("network.proxy.ssl",                   "");
1504 pref("network.proxy.ssl_port",              0);
1505 pref("network.proxy.socks",                 "");
1506 pref("network.proxy.socks_port",            0);
1507 pref("network.proxy.socks_version",         5);
1508 pref("network.proxy.socks_remote_dns",      false);
1509 pref("network.proxy.proxy_over_tls",        true);
1510 pref("network.proxy.no_proxies_on",         "localhost, 127.0.0.1");
1511 pref("network.proxy.failover_timeout",      1800); // 30 minutes
1512 pref("network.online",                      true); //online/offline
1513 #ifdef RELEASE_BUILD
1514 pref("network.cookie.cookieBehavior",       0); // 0-Accept, 1-dontAcceptForeign, 2-dontUse, 3-limitForeign
1515 #else
1516 pref("network.cookie.cookieBehavior",       3); // 0-Accept, 1-dontAcceptForeign, 2-dontUse, 3-limitForeign
1517 #endif
1518 #ifdef ANDROID
1519 pref("network.cookie.cookieBehavior",       0); // Keep the old default of accepting all cookies
1520 #endif
1521 pref("network.cookie.thirdparty.sessionOnly", false);
1522 pref("network.cookie.lifetimePolicy",       0); // accept normally, 1-askBeforeAccepting, 2-acceptForSession,3-acceptForNDays
1523 pref("network.cookie.alwaysAcceptSessionCookies", false);
1524 pref("network.cookie.prefsMigrated",        false);
1525 pref("network.cookie.lifetime.days",        90);
1526 
1527 // The PAC file to load.  Ignored unless network.proxy.type is 2.
1528 pref("network.proxy.autoconfig_url", "");
1529 
1530 // If we cannot load the PAC file, then try again (doubling from interval_min
1531 // until we reach interval_max or the PAC file is successfully loaded).
1532 pref("network.proxy.autoconfig_retry_interval_min", 5);    // 5 seconds
1533 pref("network.proxy.autoconfig_retry_interval_max", 300);  // 5 minutes
1534 
1535 // Use the HSTS preload list by default
1536 pref("network.stricttransportsecurity.preloadlist", true);
1537 
1538 // Prohibit resource loads from private networks (e.g. RFC1918 like IP
1539 // addresses) by documents which were loaded from public networks.
1540 pref("network.zonepolicy.enabled", true);
1541 
1542 pref("converter.html2txt.structs",          true); // Output structured phrases (strong, em, code, sub, sup, b, i, u)
1543 pref("converter.html2txt.header_strategy",  1); // 0 = no indention; 1 = indention, increased with header level; 2 = numbering and slight indention
1544 
1545 pref("intl.accept_languages",               "chrome://global/locale/intl.properties");
1546 pref("intl.menuitems.alwaysappendaccesskeys","chrome://global/locale/intl.properties");
1547 pref("intl.menuitems.insertseparatorbeforeaccesskeys","chrome://global/locale/intl.properties");
1548 pref("intl.charset.detector",               "chrome://global/locale/intl.properties");
1549 pref("intl.charset.fallback.override",      "");
1550 pref("intl.charset.fallback.tld",           true);
1551 pref("intl.ellipsis",                       "chrome://global-platform/locale/intl.properties");
1552 pref("intl.locale.matchOS",                 false);
1553 // fallback charset list for Unicode conversion (converting from Unicode)
1554 // currently used for mail send only to handle symbol characters (e.g Euro, trademark, smartquotes)
1555 // for ISO-8859-1
1556 pref("intl.fallbackCharsetList.ISO-8859-1", "windows-1252");
1557 pref("font.language.group",                 "chrome://global/locale/intl.properties");
1558 
1559 // these locales have right-to-left UI
1560 pref("intl.uidirection.ar", "rtl");
1561 pref("intl.uidirection.he", "rtl");
1562 pref("intl.uidirection.fa", "rtl");
1563 pref("intl.uidirection.ug", "rtl");
1564 pref("intl.uidirection.ur", "rtl");
1565 
1566 // use en-US hyphenation by default for content tagged with plain lang="en"
1567 pref("intl.hyphenation-alias.en", "en-us");
1568 // and for other subtags of en-*, if no specific patterns are available
1569 pref("intl.hyphenation-alias.en-*", "en-us");
1570 
1571 pref("intl.hyphenation-alias.af-*", "af");
1572 pref("intl.hyphenation-alias.bg-*", "bg");
1573 pref("intl.hyphenation-alias.ca-*", "ca");
1574 pref("intl.hyphenation-alias.cy-*", "cy");
1575 pref("intl.hyphenation-alias.da-*", "da");
1576 pref("intl.hyphenation-alias.eo-*", "eo");
1577 pref("intl.hyphenation-alias.es-*", "es");
1578 pref("intl.hyphenation-alias.et-*", "et");
1579 pref("intl.hyphenation-alias.fi-*", "fi");
1580 pref("intl.hyphenation-alias.fr-*", "fr");
1581 pref("intl.hyphenation-alias.gl-*", "gl");
1582 pref("intl.hyphenation-alias.hr-*", "hr");
1583 pref("intl.hyphenation-alias.hsb-*", "hsb");
1584 pref("intl.hyphenation-alias.hu-*", "hu");
1585 pref("intl.hyphenation-alias.ia-*", "ia");
1586 pref("intl.hyphenation-alias.is-*", "is");
1587 pref("intl.hyphenation-alias.it-*", "it");
1588 pref("intl.hyphenation-alias.kmr-*", "kmr");
1589 pref("intl.hyphenation-alias.la-*", "la");
1590 pref("intl.hyphenation-alias.lt-*", "lt");
1591 pref("intl.hyphenation-alias.mn-*", "mn");
1592 pref("intl.hyphenation-alias.nl-*", "nl");
1593 pref("intl.hyphenation-alias.pl-*", "pl");
1594 pref("intl.hyphenation-alias.pt-*", "pt");
1595 pref("intl.hyphenation-alias.ru-*", "ru");
1596 pref("intl.hyphenation-alias.sl-*", "sl");
1597 pref("intl.hyphenation-alias.sv-*", "sv");
1598 pref("intl.hyphenation-alias.tr-*", "tr");
1599 pref("intl.hyphenation-alias.uk-*", "uk");
1600 
1601 // use reformed (1996) German patterns by default unless specifically tagged as de-1901
1602 // (these prefs may soon be obsoleted by better BCP47-based tag matching, but for now...)
1603 pref("intl.hyphenation-alias.de", "de-1996");
1604 pref("intl.hyphenation-alias.de-*", "de-1996");
1605 pref("intl.hyphenation-alias.de-AT-1901", "de-1901");
1606 pref("intl.hyphenation-alias.de-DE-1901", "de-1901");
1607 pref("intl.hyphenation-alias.de-CH-*", "de-CH");
1608 
1609 // patterns from TeX are tagged as "sh" (Serbo-Croatian) macrolanguage;
1610 // alias "sr" (Serbian) and "bs" (Bosnian) to those patterns
1611 // (Croatian has its own separate patterns).
1612 pref("intl.hyphenation-alias.sr", "sh");
1613 pref("intl.hyphenation-alias.bs", "sh");
1614 pref("intl.hyphenation-alias.sh-*", "sh");
1615 pref("intl.hyphenation-alias.sr-*", "sh");
1616 pref("intl.hyphenation-alias.bs-*", "sh");
1617 
1618 // Norwegian has two forms, Bokmål and Nynorsk, with "no" as a macrolanguage encompassing both.
1619 // For "no", we'll alias to "nb" (Bokmål) as that is the more widely used written form.
1620 pref("intl.hyphenation-alias.no", "nb");
1621 pref("intl.hyphenation-alias.no-*", "nb");
1622 pref("intl.hyphenation-alias.nb-*", "nb");
1623 pref("intl.hyphenation-alias.nn-*", "nn");
1624 
1625 pref("font.mathfont-family", "Latin Modern Math, XITS Math, STIX Math, Cambria Math, Asana Math, TeX Gyre Bonum Math, TeX Gyre Pagella Math, TeX Gyre Termes Math, Neo Euler, Lucida Bright Math, MathJax_Main, STIXNonUnicode, STIXSizeOneSym, STIXGeneral, Standard Symbols L, DejaVu Sans");
1626 
1627 // Some CJK fonts have bad underline offset, their CJK character glyphs are overlapped (or adjoined)  to its underline.
1628 // These fonts are ignored the underline offset, instead of it, the underline is lowered to bottom of its em descent.
1629 pref("font.blacklist.underline_offset", "FangSong,Gulim,GulimChe,MingLiU,MingLiU-ExtB,MingLiU_HKSCS,MingLiU-HKSCS-ExtB,MS Gothic,MS Mincho,MS PGothic,MS PMincho,MS UI Gothic,PMingLiU,PMingLiU-ExtB,SimHei,SimSun,SimSun-ExtB,Hei,Kai,Apple LiGothic,Apple LiSung,Osaka");
1630 
1631 #ifdef MOZ_WIDGET_GONK
1632 // Whitelist of fonts that ship with B2G that do not include space lookups in
1633 // default features. This allows us to skip analyzing the GSUB/GPOS tables
1634 // unless features are explicitly enabled.
1635 // Use NSPR_LOG_MODULES=fontinit:5 to dump out details of space lookups
1636 pref("font.whitelist.skip_default_features_space_check", "Fira Sans,Fira Mono");
1637 #endif
1638 
1639 pref("images.dither", "auto");
1640 pref("security.directory",              "");
1641 
1642 pref("signed.applets.codebase_principal_support", false);
1643 pref("security.checkloaduri", true);
1644 pref("security.xpconnect.plugin.unrestricted", true);
1645 // security-sensitive dialogs should delay button enabling. In milliseconds.
1646 pref("security.dialog_enable_delay", 1000);
1647 pref("security.notification_enable_delay", 500);
1648 
1649 pref("security.csp.enable", true);
1650 pref("security.csp.debug", false);
1651 pref("security.csp.experimentalEnabled", false);
1652 pref("security.csp.newbackend.enable", true);
1653 
1654 // Mixed content blocking
1655 pref("security.mixed_content.block_active_content", false);
1656 pref("security.mixed_content.block_display_content", false);
1657 
1658 // Disable pinning checks by default.
1659 pref("security.cert_pinning.enforcement_level", 0);
1660 
1661 // Modifier key prefs: default to Windows settings,
1662 // menu access key = alt, accelerator key = control.
1663 // Use 17 for Ctrl, 18 for Alt, 224 for Meta, 91 for Win, 0 for none. Mac settings in macprefs.js
1664 pref("ui.key.accelKey", 17);
1665 pref("ui.key.menuAccessKey", 18);
1666 pref("ui.key.generalAccessKey", -1);
1667 
1668 // If generalAccessKey is -1, use the following two prefs instead.
1669 // Use 0 for disabled, 1 for Shift, 2 for Ctrl, 4 for Alt, 8 for Meta, 16 for Win
1670 // (values can be combined, e.g. 5 for Alt+Shift)
1671 pref("ui.key.chromeAccess", 4);
1672 pref("ui.key.contentAccess", 5);
1673 
1674 pref("ui.key.menuAccessKeyFocuses", false); // overridden below
1675 pref("ui.key.saveLink.shift", true); // true = shift, false = meta
1676 
1677 // Disable page loading activity cursor by default.
1678 pref("ui.use_activity_cursor", false);
1679 
1680 // Middle-mouse handling
1681 pref("middlemouse.paste", false);
1682 pref("middlemouse.openNewWindow", true);
1683 pref("middlemouse.contentLoadURL", false);
1684 pref("middlemouse.scrollbarPosition", false);
1685 
1686 // Clipboard behavior
1687 pref("clipboard.autocopy", false);
1688 
1689 // mouse wheel scroll transaction period of time (in milliseconds)
1690 pref("mousewheel.transaction.timeout", 1500);
1691 // mouse wheel scroll transaction is held even if the mouse cursor is moved.
1692 pref("mousewheel.transaction.ignoremovedelay", 100);
1693 
1694 // prefs for app level mouse wheel scrolling acceleration.
1695 // number of mousewheel clicks when acceleration starts
1696 // acceleration can be turned off if pref is set to -1
1697 pref("mousewheel.acceleration.start", -1);
1698 // factor to be multiplied for constant acceleration
1699 pref("mousewheel.acceleration.factor", 10);
1700 
1701 // Prefs for override the system mouse wheel scrolling speed on the root
1702 // content of the web pages.  When
1703 // "mousewheel.system_scroll_override_on_root_content.enabled" is true and the system
1704 // scrolling speed isn't customized by the user, the root content scrolling
1705 // speed is multiplied by the following factors.  The value will be used as
1706 // 1/100.  E.g., 200 means 2.00.
1707 // NOTE: Even if "mousewheel.system_scroll_override_on_root_content.enabled" is
1708 // true, when Gecko detects the user customized the system scrolling speed
1709 // settings, the override isn't executed.
1710 pref("mousewheel.system_scroll_override_on_root_content.vertical.factor", 200);
1711 pref("mousewheel.system_scroll_override_on_root_content.horizontal.factor", 200);
1712 
1713 // mousewheel.*.action can specify the action when you use mosue wheel.
1714 // When no modifier keys are pressed or two or more modifires are pressed,
1715 // .default is used.
1716 // 0: Nothing happens
1717 // 1: Scrolling contents
1718 // 2: Go back or go forward, in your history
1719 // 3: Zoom in or out.
1720 pref("mousewheel.default.action", 1);
1721 pref("mousewheel.with_alt.action", 2);
1722 pref("mousewheel.with_control.action", 3);
1723 pref("mousewheel.with_meta.action", 1);  // command key on Mac
1724 pref("mousewheel.with_shift.action", 1);
1725 pref("mousewheel.with_win.action", 1);
1726 
1727 // mousewheel.*.action.override_x will override the action
1728 // when the mouse wheel is rotated along the x direction.
1729 // -1: Don't override the action.
1730 // 0 to 3: Override the action with the specified value.
1731 pref("mousewheel.default.action.override_x", -1);
1732 pref("mousewheel.with_alt.action.override_x", -1);
1733 pref("mousewheel.with_control.action.override_x", -1);
1734 pref("mousewheel.with_meta.action.override_x", -1);  // command key on Mac
1735 pref("mousewheel.with_shift.action.override_x", -1);
1736 pref("mousewheel.with_win.action.override_x", -1);
1737 
1738 // mousewheel.*.delta_multiplier_* can specify the value muliplied by the delta
1739 // value.  The values will be used after divided by 100.  I.e., 100 means 1.0,
1740 // -100 means -1.0.  If the values were negative, the direction would be
1741 // reverted.  The absolue value must be 100 or larger.
1742 pref("mousewheel.default.delta_multiplier_x", 100);
1743 pref("mousewheel.default.delta_multiplier_y", 100);
1744 pref("mousewheel.default.delta_multiplier_z", 100);
1745 pref("mousewheel.with_alt.delta_multiplier_x", 100);
1746 pref("mousewheel.with_alt.delta_multiplier_y", 100);
1747 pref("mousewheel.with_alt.delta_multiplier_z", 100);
1748 pref("mousewheel.with_control.delta_multiplier_x", 100);
1749 pref("mousewheel.with_control.delta_multiplier_y", 100);
1750 pref("mousewheel.with_control.delta_multiplier_z", 100);
1751 pref("mousewheel.with_meta.delta_multiplier_x", 100);  // command key on Mac
1752 pref("mousewheel.with_meta.delta_multiplier_y", 100);  // command key on Mac
1753 pref("mousewheel.with_meta.delta_multiplier_z", 100);  // command key on Mac
1754 pref("mousewheel.with_shift.delta_multiplier_x", 100);
1755 pref("mousewheel.with_shift.delta_multiplier_y", 100);
1756 pref("mousewheel.with_shift.delta_multiplier_z", 100);
1757 pref("mousewheel.with_win.delta_multiplier_x", 100);
1758 pref("mousewheel.with_win.delta_multiplier_y", 100);
1759 pref("mousewheel.with_win.delta_multiplier_z", 100);
1760 
1761 // If line-height is lower than this value (in device pixels), 1 line scroll
1762 // scrolls this height.
1763 pref("mousewheel.min_line_scroll_amount", 5);
1764 
1765 // These define the smooth scroll behavior (min ms, max ms) for different triggers
1766 // Some triggers:
1767 // mouseWheel: Discrete mouse wheel events, Synaptics touchpads on windows (generate wheel events)
1768 // Lines:  Up/Down/Left/Right KB arrows
1769 // Pages:  Page up/down, Space
1770 // Scrollbars: Clicking scrollbars arrows, clicking scrollbars tracks
1771 // Note: Currently OS X trackpad and magic mouse don't use our smooth scrolling
1772 // Note: These are relevant only when "general.smoothScroll" is enabled
1773 pref("general.smoothScroll.mouseWheel.durationMinMS", 200);
1774 pref("general.smoothScroll.mouseWheel.durationMaxMS", 400);
1775 pref("general.smoothScroll.pixels.durationMinMS", 150);
1776 pref("general.smoothScroll.pixels.durationMaxMS", 150);
1777 pref("general.smoothScroll.lines.durationMinMS", 150);
1778 pref("general.smoothScroll.lines.durationMaxMS", 150);
1779 pref("general.smoothScroll.pages.durationMinMS", 150);
1780 pref("general.smoothScroll.pages.durationMaxMS", 150);
1781 pref("general.smoothScroll.scrollbars.durationMinMS", 150);
1782 pref("general.smoothScroll.scrollbars.durationMaxMS", 150);
1783 pref("general.smoothScroll.other.durationMinMS", 150);
1784 pref("general.smoothScroll.other.durationMaxMS", 150);
1785 // Enable disable smooth scrolling for different triggers (when "general.smoothScroll" is enabled)
1786 pref("general.smoothScroll.mouseWheel", true);
1787 pref("general.smoothScroll.pixels", true);
1788 pref("general.smoothScroll.lines", true);
1789 pref("general.smoothScroll.pages", true);
1790 pref("general.smoothScroll.scrollbars", true);
1791 pref("general.smoothScroll.other", true);
1792 // To connect consecutive scroll events into a continuous flow, the animation's duration
1793 // should be longer than scroll events intervals (or else the scroll will stop
1794 // before the next event arrives - we're guessing next interval by averaging recent
1795 // intervals).
1796 // This defines how longer is the duration compared to events interval (percentage)
1797 pref("general.smoothScroll.durationToIntervalRatio", 200);
1798 
1799 pref("profile.confirm_automigration",true);
1800 // profile.migration_behavior determines how the profiles root is set
1801 // 0 - use NS_APP_USER_PROFILES_ROOT_DIR
1802 // 1 - create one based on the NS4.x profile root
1803 // 2 - use, if not empty, profile.migration_directory otherwise same as 0
1804 pref("profile.migration_behavior",0);
1805 pref("profile.migration_directory", "");
1806 
1807 // the amount of time (in seconds) that must elapse
1808 // before we think your mozilla profile is defunct
1809 // and you'd benefit from re-migrating from 4.x
1810 // see bug #137886 for more details
1811 //
1812 // if -1, we never think your profile is defunct
1813 // and users will never see the remigrate UI.
1814 pref("profile.seconds_until_defunct", -1);
1815 // We can show it anytime from menus
1816 pref("profile.manage_only_at_launch", false);
1817 
1818 pref("prefs.converted-to-utf8",false);
1819 
1820 // ------------------
1821 //  Text Direction
1822 // ------------------
1823 // 1 = directionLTRBidi *
1824 // 2 = directionRTLBidi
1825 pref("bidi.direction", 1);
1826 // ------------------
1827 //  Text Type
1828 // ------------------
1829 // 1 = charsettexttypeBidi *
1830 // 2 = logicaltexttypeBidi
1831 // 3 = visualtexttypeBidi
1832 pref("bidi.texttype", 1);
1833 // ------------------
1834 //  Numeral Style
1835 // ------------------
1836 // 0 = nominalnumeralBidi *
1837 // 1 = regularcontextnumeralBidi
1838 // 2 = hindicontextnumeralBidi
1839 // 3 = arabicnumeralBidi
1840 // 4 = hindinumeralBidi
1841 // 5 = persiancontextnumeralBidi
1842 // 6 = persiannumeralBidi
1843 pref("bidi.numeral", 0);
1844 // ------------------
1845 //  Support Mode
1846 // ------------------
1847 // 1 = mozillaBidisupport *
1848 // 2 = OsBidisupport
1849 // 3 = disableBidisupport
1850 pref("bidi.support", 1);
1851 // Whether delete and backspace should immediately delete characters not
1852 // visually adjacent to the caret, or adjust the visual position of the caret
1853 // on the first keypress and delete the character on a second keypress
1854 pref("bidi.edit.delete_immediately", false);
1855 
1856 // Bidi caret movement style:
1857 // 0 = logical
1858 // 1 = visual
1859 // 2 = visual, but logical during selection
1860 pref("bidi.edit.caret_movement_style", 2);
1861 
1862 // Setting this pref to |true| forces Bidi UI menu items and keyboard shortcuts
1863 // to be exposed, and enables the directional caret hook. By default, only
1864 // expose it for bidi-associated system locales.
1865 pref("bidi.browser.ui", false);
1866 
1867 // used for double-click word selection behavior. Win will override.
1868 pref("layout.word_select.eat_space_to_next_word", false);
1869 pref("layout.word_select.stop_at_punctuation", true);
1870 
1871 // controls caret style and word-delete during text selection
1872 // 0 = use platform default
1873 // 1 = caret moves and blinks as when there is no selection; word
1874 //     delete deselects the selection and then deletes word
1875 // 2 = caret moves to selection edge and is not visible during selection;
1876 //     word delete deletes the selection (Mac and Linux default)
1877 // 3 = caret moves and blinks as when there is no selection; word delete
1878 //     deletes the selection
1879 // Windows default is 1 for word delete behavior, the rest as for 2.
1880 pref("layout.selection.caret_style", 0);
1881 
1882 // pref to force frames to be resizable
1883 pref("layout.frames.force_resizability", false);
1884 
1885 // pref to report CSS errors to the error console
1886 pref("layout.css.report_errors", true);
1887 
1888 // Should the :visited selector ever match (otherwise :link matches instead)?
1889 pref("layout.css.visited_links_enabled", true);
1890 
1891 // Override DPI. A value of -1 means use the maximum of 96 and the system DPI.
1892 // A value of 0 means use the system DPI. A positive value is used as the DPI.
1893 // This sets the physical size of a device pixel and thus controls the
1894 // interpretation of physical units such as "pt".
1895 pref("layout.css.dpi", -1);
1896 
1897 // Set the number of device pixels per CSS pixel. A value <= 0 means choose
1898 // automatically based on user settings for the platform (e.g., "UI scale factor"
1899 // on Mac). A positive value is used as-is. This effectively controls the size
1900 // of a CSS "px". This is only used for windows on the screen, not for printing.
1901 pref("layout.css.devPixelsPerPx", "-1.0");
1902 
1903 // Is support for CSS Masking features enabled?
1904 #ifdef RELEASE_BUILD
1905 pref("layout.css.masking.enabled", false);
1906 #else
1907 pref("layout.css.masking.enabled", true);
1908 #endif
1909 
1910 // Is support for mix-blend-mode enabled?
1911 pref("layout.css.mix-blend-mode.enabled", true);
1912 
1913 // Is support for CSS Filters enabled?
1914 pref("layout.css.filters.enabled", false);
1915 
1916 // Is support for CSS sticky positioning enabled?
1917 pref("layout.css.sticky.enabled", true);
1918 
1919 // Is support for CSS "will-change" enabled?
1920 pref("layout.css.will-change.enabled", false);
1921 
1922 // Is support for DOMPoint enabled?
1923 pref("layout.css.DOMPoint.enabled", true);
1924 
1925 // Is support for DOMQuad enabled?
1926 pref("layout.css.DOMQuad.enabled", true);
1927 
1928 // Is support for DOMMatrix enabled?
1929 pref("layout.css.DOMMatrix.enabled", true);
1930 
1931 // Is support for GeometryUtils.getBoxQuads enabled?
1932 #ifdef RELEASE_BUILD
1933 pref("layout.css.getBoxQuads.enabled", false);
1934 #else
1935 pref("layout.css.getBoxQuads.enabled", true);
1936 #endif
1937 
1938 // Is support for GeometryUtils.getBoxQuads enabled?
1939 #ifdef RELEASE_BUILD
1940 pref("layout.css.convertFromNode.enabled", false);
1941 #else
1942 pref("layout.css.convertFromNode.enabled", true);
1943 #endif
1944 
1945 // Is support for CSS "text-align: true X" enabled?
1946 pref("layout.css.text-align-true-value.enabled", false);
1947 
1948 // Is support for the CSS4 image-orientation property enabled?
1949 pref("layout.css.image-orientation.enabled", true);
1950 
1951 // Is support for CSS3 Fonts features enabled?
1952 // (includes font-variant-*, font-kerning, font-synthesis
1953 // and the @font-feature-values rule)
1954 // Note: with this enabled, font-feature-settings is aliased
1955 // to -moz-font-feature-settings.  When unprefixing, this should
1956 // be reversed, -moz-font-feature-settings should alias to
1957 // font-feature-settings.
1958 #ifdef RELEASE_BUILD
1959 pref("layout.css.font-features.enabled", false);
1960 #else
1961 pref("layout.css.font-features.enabled", true);
1962 #endif
1963 
1964 // Are sets of prefixed properties supported?
1965 pref("layout.css.prefixes.border-image", true);
1966 pref("layout.css.prefixes.transforms", true);
1967 pref("layout.css.prefixes.transitions", true);
1968 pref("layout.css.prefixes.animations", true);
1969 pref("layout.css.prefixes.box-sizing", true);
1970 
1971 // Is support for the :scope selector enabled?
1972 pref("layout.css.scope-pseudo.enabled", true);
1973 
1974 // Is support for background-blend-mode enabled?
1975 pref("layout.css.background-blend-mode.enabled", true);
1976 
1977 // Is support for CSS vertical text enabled?
1978 pref("layout.css.vertical-text.enabled", false);
1979 
1980 // Is -moz-osx-font-smoothing enabled?
1981 // Only supported in OSX builds
1982 #ifdef XP_MACOSX
1983 pref("layout.css.osx-font-smoothing.enabled", true);
1984 #else
1985 pref("layout.css.osx-font-smoothing.enabled", false);
1986 #endif
1987 
1988 // Is support for the CSS-wide "unset" value enabled?
1989 pref("layout.css.unset-value.enabled", true);
1990 
1991 // Is support for the "all" shorthand enabled?
1992 pref("layout.css.all-shorthand.enabled", true);
1993 
1994 // Is support for CSS variables enabled?
1995 pref("layout.css.variables.enabled", true);
1996 
1997 // Is support for CSS overflow-clip-box enabled for non-UA sheets?
1998 pref("layout.css.overflow-clip-box.enabled", false);
1999 
2000 // Is support for CSS grid enabled?
2001 pref("layout.css.grid.enabled", false);
2002 
2003 // Is support for CSS Ruby enabled?
2004 pref("layout.css.ruby.enabled", false);
2005 
2006 // Is support for CSS box-decoration-break enabled?
2007 pref("layout.css.box-decoration-break.enabled", true);
2008 
2009 // Is layout of CSS outline-style:auto enabled?
2010 pref("layout.css.outline-style-auto.enabled", false);
2011 
2012 // pref for which side vertical scrollbars should be on
2013 // 0 = end-side in UI direction
2014 // 1 = end-side in document/content direction
2015 // 2 = right
2016 // 3 = left
2017 pref("layout.scrollbar.side", 0);
2018 
2019 // pref to stop overlay scrollbars from fading out, for testing purposes
2020 pref("layout.testing.overlay-scrollbars.always-visible", false);
2021 
2022 // Enable/disable interruptible reflow, which allows reflows to stop
2023 // before completion (and display the partial results) when user events
2024 // are pending.
2025 pref("layout.interruptible-reflow.enabled", true);
2026 
2027 // pref to control browser frame rate, in Hz. A value <= 0 means choose
2028 // automatically based on knowledge of the platform (or 60Hz if no platform-
2029 // specific information is available).
2030 pref("layout.frame_rate", -1);
2031 
2032 // pref to dump the display list to the log. Useful for debugging invalidation problems.
2033 #ifdef MOZ_DUMP_PAINTING
2034 pref("layout.display-list.dump", false);
2035 #endif
2036 
2037 // pref to control precision of the frame rate timer. When true,
2038 // we use a "precise" timer, which means each notification fires
2039 // Nms after the start of the last notification. That means if the
2040 // processing of the notification is slow, the timer can fire immediately
2041 // after we've just finished processing the last notification, which might
2042 // lead to starvation problems.
2043 // When false, we use a "slack" timer which fires Nms after the *end*
2044 // of the last notification. This can give less tight frame rates
2045 // but provides more time for other operations when the browser is
2046 // heavily loaded.
2047 pref("layout.frame_rate.precise", false);
2048 
2049 // Is support for the Web Animations API enabled?
2050 #ifdef RELEASE_BUILD
2051 pref("dom.animations-api.core.enabled", false);
2052 #else
2053 pref("dom.animations-api.core.enabled", true);
2054 #endif
2055 
2056 // pref to permit users to make verified SOAP calls by default
2057 pref("capability.policy.default.SOAPCall.invokeVerifySourceHeader", "allAccess");
2058 
2059 // if true, allow plug-ins to override internal imglib decoder mime types in full-page mode
2060 pref("plugin.override_internal_types", false);
2061 
2062 // See bug 136985.  Gives embedders a pref to hook into to show
2063 // a popup blocker if they choose.
2064 pref("browser.popups.showPopupBlocker", true);
2065 
2066 // Pref to control whether the viewmanager code does double-buffering or not
2067 // See http://bugzilla.mozilla.org/show_bug.cgi?id=169483 for further details...
2068 pref("viewmanager.do_doublebuffering", true);
2069 
2070 // enable single finger gesture input (win7+ tablets)
2071 pref("gestures.enable_single_finger_input", true);
2072 
2073 pref("editor.resizing.preserve_ratio",       true);
2074 pref("editor.positioning.offset",            0);
2075 
2076 pref("dom.use_watchdog", true);
2077 pref("dom.max_chrome_script_run_time", 20);
2078 pref("dom.max_script_run_time", 10);
2079 
2080 // If true, ArchiveReader will be enabled
2081 pref("dom.archivereader.enabled", false);
2082 
2083 // Hang monitor timeout after which we kill the browser, in seconds
2084 // (0 is disabled)
2085 // Disabled on all platforms per bug 705748 until the found issues are
2086 // resolved.
2087 pref("hangmonitor.timeout", 0);
2088 
2089 pref("plugins.load_appdir_plugins", false);
2090 // If true, plugins will be click to play
2091 pref("plugins.click_to_play", false);
2092 
2093 // A comma-delimited list of plugin name prefixes matching plugins that will be
2094 // exposed when enumerating navigator.plugins[]. For example, prefix "Shockwave"
2095 // matches both Adobe Flash Player ("Shockwave Flash") and Adobe Shockwave
2096 // Player ("Shockwave for Director"). To hide all plugins from enumeration, use
2097 // the empty string "" to match no plugin names. To allow all plugins to be
2098 // enumerated, use the string "*" to match all plugin names.
2099 pref("plugins.enumerable_names", "*");
2100 
2101 // The default value for nsIPluginTag.enabledState (STATE_ENABLED = 2)
2102 pref("plugin.default.state", 2);
2103 
2104 // The MIME type that should bind to legacy java-specific invocations like
2105 // <applet> and <object data="java:foo">. Setting this to a non-java MIME type
2106 // is undefined behavior.
2107 pref("plugin.java.mime", "application/x-java-vm");
2108 
2109 // How long in minutes we will allow a plugin to work after the user has chosen
2110 // to allow it "now"
2111 pref("plugin.sessionPermissionNow.intervalInMinutes", 60);
2112 // How long in days we will allow a plugin to work after the user has chosen
2113 // to allow it persistently.
2114 pref("plugin.persistentPermissionAlways.intervalInDays", 90);
2115 
2116 #ifndef DEBUG
2117 // How long a plugin is allowed to process a synchronous IPC message
2118 // before we consider it "hung".
2119 pref("dom.ipc.plugins.timeoutSecs", 45);
2120 // How long a plugin process will wait for a response from the parent
2121 // to a synchronous request before terminating itself. After this
2122 // point the child assumes the parent is hung. Currently disabled.
2123 pref("dom.ipc.plugins.parentTimeoutSecs", 0);
2124 // How long a plugin launch is allowed to take before
2125 // we consider it failed.
2126 pref("dom.ipc.plugins.processLaunchTimeoutSecs", 45);
2127 #ifdef XP_WIN
2128 // How long a plugin is allowed to process a synchronous IPC message
2129 // before we display the plugin hang UI
2130 pref("dom.ipc.plugins.hangUITimeoutSecs", 11);
2131 // Minimum time that the plugin hang UI will be displayed
2132 pref("dom.ipc.plugins.hangUIMinDisplaySecs", 10);
2133 #endif
2134 // How long a content process can take before closing its IPC channel
2135 // after shutdown is initiated.  If the process exceeds the timeout,
2136 // we fear the worst and kill it.
2137 pref("dom.ipc.tabs.shutdownTimeoutSecs", 5);
2138 #else
2139 // No timeout in DEBUG builds
2140 pref("dom.ipc.plugins.timeoutSecs", 0);
2141 pref("dom.ipc.plugins.processLaunchTimeoutSecs", 0);
2142 pref("dom.ipc.plugins.parentTimeoutSecs", 0);
2143 #ifdef XP_WIN
2144 pref("dom.ipc.plugins.hangUITimeoutSecs", 0);
2145 pref("dom.ipc.plugins.hangUIMinDisplaySecs", 0);
2146 #endif
2147 pref("dom.ipc.tabs.shutdownTimeoutSecs", 0);
2148 #endif
2149 
2150 #ifdef XP_WIN
2151 // Disable oopp for java on windows. They run their own
2152 // process isolation which conflicts with our implementation.
2153 pref("dom.ipc.plugins.java.enabled", false);
2154 #endif
2155 
2156 pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", true);
2157 pref("dom.ipc.plugins.reportCrashURL", true);
2158 
2159 // How long we wait before unloading an idle plugin process.
2160 // Defaults to 30 seconds.
2161 pref("dom.ipc.plugins.unloadTimeoutSecs", 30);
2162 
2163 pref("dom.ipc.processCount", 1);
2164 
2165 // Enable the use of display-lists for SVG hit-testing and painting.
2166 pref("svg.display-lists.hit-testing.enabled", true);
2167 pref("svg.display-lists.painting.enabled", true);
2168 
2169 // Is support for the SVG 2 paint-order property enabled?
2170 pref("svg.paint-order.enabled", true);
2171 
2172 // Is support for the new marker features from SVG 2 enabled?  Currently
2173 // this just includes <marker orient="auto-start-reverse">.
2174 #ifdef RELEASE_BUILD
2175 pref("svg.marker-improvements.enabled", false);
2176 #else
2177 pref("svg.marker-improvements.enabled", true);
2178 #endif
2179 
2180 #ifdef RELEASE_BUILD
2181 pref("svg.svg-iframe.enabled", false);
2182 #else
2183 pref("svg.svg-iframe.enabled", false);
2184 #endif
2185 
2186 // Is support for the new getBBox method from SVG 2 enabled?
2187 // See https://svgwg.org/svg2-draft/single-page.html#types-SVGBoundingBoxOptions
2188 pref("svg.new-getBBox.enabled", false);
2189 
2190 // Default font types and sizes by locale
2191 pref("font.default.ar", "sans-serif");
2192 pref("font.minimum-size.ar", 0);
2193 pref("font.size.variable.ar", 16);
2194 pref("font.size.fixed.ar", 13);
2195 
2196 pref("font.default.el", "serif");
2197 pref("font.minimum-size.el", 0);
2198 pref("font.size.variable.el", 16);
2199 pref("font.size.fixed.el", 13);
2200 
2201 pref("font.default.he", "sans-serif");
2202 pref("font.minimum-size.he", 0);
2203 pref("font.size.variable.he", 16);
2204 pref("font.size.fixed.he", 13);
2205 
2206 pref("font.default.ja", "sans-serif");
2207 pref("font.minimum-size.ja", 0);
2208 pref("font.size.variable.ja", 16);
2209 pref("font.size.fixed.ja", 16);
2210 
2211 pref("font.default.ko", "sans-serif");
2212 pref("font.minimum-size.ko", 0);
2213 pref("font.size.variable.ko", 16);
2214 pref("font.size.fixed.ko", 16);
2215 
2216 pref("font.default.th", "serif");
2217 pref("font.minimum-size.th", 0);
2218 pref("font.size.variable.th", 16);
2219 pref("font.size.fixed.th", 13);
2220 
2221 pref("font.default.tr", "serif");
2222 pref("font.minimum-size.tr", 0);
2223 pref("font.size.variable.tr", 16);
2224 pref("font.size.fixed.tr", 13);
2225 
2226 pref("font.default.x-baltic", "serif");
2227 pref("font.minimum-size.x-baltic", 0);
2228 pref("font.size.variable.x-baltic", 16);
2229 pref("font.size.fixed.x-baltic", 13);
2230 
2231 pref("font.default.x-central-euro", "serif");
2232 pref("font.minimum-size.x-central-euro", 0);
2233 pref("font.size.variable.x-central-euro", 16);
2234 pref("font.size.fixed.x-central-euro", 13);
2235 
2236 pref("font.default.x-cyrillic", "serif");
2237 pref("font.minimum-size.x-cyrillic", 0);
2238 pref("font.size.variable.x-cyrillic", 16);
2239 pref("font.size.fixed.x-cyrillic", 13);
2240 
2241 pref("font.default.x-devanagari", "serif");
2242 pref("font.minimum-size.x-devanagari", 0);
2243 pref("font.size.variable.x-devanagari", 16);
2244 pref("font.size.fixed.x-devanagari", 13);
2245 
2246 pref("font.default.x-tamil", "serif");
2247 pref("font.minimum-size.x-tamil", 0);
2248 pref("font.size.variable.x-tamil", 16);
2249 pref("font.size.fixed.x-tamil", 13);
2250 
2251 pref("font.default.x-armn", "serif");
2252 pref("font.minimum-size.x-armn", 0);
2253 pref("font.size.variable.x-armn", 16);
2254 pref("font.size.fixed.x-armn", 13);
2255 
2256 pref("font.default.x-beng", "serif");
2257 pref("font.minimum-size.x-beng", 0);
2258 pref("font.size.variable.x-beng", 16);
2259 pref("font.size.fixed.x-beng", 13);
2260 
2261 pref("font.default.x-cans", "serif");
2262 pref("font.minimum-size.x-cans", 0);
2263 pref("font.size.variable.x-cans", 16);
2264 pref("font.size.fixed.x-cans", 13);
2265 
2266 pref("font.default.x-ethi", "serif");
2267 pref("font.minimum-size.x-ethi", 0);
2268 pref("font.size.variable.x-ethi", 16);
2269 pref("font.size.fixed.x-ethi", 13);
2270 
2271 pref("font.default.x-geor", "serif");
2272 pref("font.minimum-size.x-geor", 0);
2273 pref("font.size.variable.x-geor", 16);
2274 pref("font.size.fixed.x-geor", 13);
2275 
2276 pref("font.default.x-gujr", "serif");
2277 pref("font.minimum-size.x-gujr", 0);
2278 pref("font.size.variable.x-gujr", 16);
2279 pref("font.size.fixed.x-gujr", 13);
2280 
2281 pref("font.default.x-guru", "serif");
2282 pref("font.minimum-size.x-guru", 0);
2283 pref("font.size.variable.x-guru", 16);
2284 pref("font.size.fixed.x-guru", 13);
2285 
2286 pref("font.default.x-khmr", "serif");
2287 pref("font.minimum-size.x-khmr", 0);
2288 pref("font.size.variable.x-khmr", 16);
2289 pref("font.size.fixed.x-khmr", 13);
2290 
2291 pref("font.default.x-mlym", "serif");
2292 pref("font.minimum-size.x-mlym", 0);
2293 pref("font.size.variable.x-mlym", 16);
2294 pref("font.size.fixed.x-mlym", 13);
2295 
2296 pref("font.default.x-orya", "serif");
2297 pref("font.minimum-size.x-orya", 0);
2298 pref("font.size.variable.x-orya", 16);
2299 pref("font.size.fixed.x-orya", 13);
2300 
2301 pref("font.default.x-telu", "serif");
2302 pref("font.minimum-size.x-telu", 0);
2303 pref("font.size.variable.x-telu", 16);
2304 pref("font.size.fixed.x-telu", 13);
2305 
2306 pref("font.default.x-knda", "serif");
2307 pref("font.minimum-size.x-knda", 0);
2308 pref("font.size.variable.x-knda", 16);
2309 pref("font.size.fixed.x-knda", 13);
2310 
2311 pref("font.default.x-sinh", "serif");
2312 pref("font.minimum-size.x-sinh", 0);
2313 pref("font.size.variable.x-sinh", 16);
2314 pref("font.size.fixed.x-sinh", 13);
2315 
2316 pref("font.default.x-tibt", "serif");
2317 pref("font.minimum-size.x-tibt", 0);
2318 pref("font.size.variable.x-tibt", 16);
2319 pref("font.size.fixed.x-tibt", 13);
2320 
2321 pref("font.default.x-unicode", "serif");
2322 pref("font.minimum-size.x-unicode", 0);
2323 pref("font.size.variable.x-unicode", 16);
2324 pref("font.size.fixed.x-unicode", 13);
2325 
2326 pref("font.default.x-western", "serif");
2327 pref("font.minimum-size.x-western", 0);
2328 pref("font.size.variable.x-western", 16);
2329 pref("font.size.fixed.x-western", 13);
2330 
2331 pref("font.default.zh-CN", "sans-serif");
2332 pref("font.minimum-size.zh-CN", 0);
2333 pref("font.size.variable.zh-CN", 16);
2334 pref("font.size.fixed.zh-CN", 16);
2335 
2336 pref("font.default.zh-HK", "sans-serif");
2337 pref("font.minimum-size.zh-HK", 0);
2338 pref("font.size.variable.zh-HK", 16);
2339 pref("font.size.fixed.zh-HK", 16);
2340 
2341 pref("font.default.zh-TW", "sans-serif");
2342 pref("font.minimum-size.zh-TW", 0);
2343 pref("font.size.variable.zh-TW", 16);
2344 pref("font.size.fixed.zh-TW", 16);
2345 
2346 /*
2347  * A value greater than zero enables font size inflation for
2348  * pan-and-zoom UIs, so that the fonts in a block are at least the size
2349  * that, if a block's width is scaled to match the device's width, the
2350  * fonts in the block are big enough that at most the pref value ems of
2351  * text fit in *the width of the device*.
2352  *
2353  * When both this pref and the next are set, the larger inflation is
2354  * used.
2355  */
2356 pref("font.size.inflation.emPerLine", 0);
2357 /*
2358  * A value greater than zero enables font size inflation for
2359  * pan-and-zoom UIs, so that if a block's width is scaled to match the
2360  * device's width, the fonts in a block are at least the font size
2361  * given.  The value given is in twips, i.e., 1/20 of a point, or 1/1440
2362  * of an inch.
2363  *
2364  * When both this pref and the previous are set, the larger inflation is
2365  * used.
2366  */
2367 pref("font.size.inflation.minTwips", 0);
2368 /*
2369  * In products with multi-mode pan-and-zoom and non-pan-and-zoom UIs,
2370  * this pref forces font inflation to always be enabled in all modes.
2371  * That is, any heuristics used to detect pan-and-zoom
2372  * vs. non-pan-and-zoom modes are disabled and all content is treated
2373  * as pan-and-zoom mode wrt font inflation.
2374  *
2375  * This pref has no effect if font inflation is not enabled through
2376  * either of the prefs above.  It has no meaning in single-mode UIs.
2377  */
2378 pref("font.size.inflation.forceEnabled", false);
2379 /*
2380  * In products with multi-mode pan-and-zoom and non-pan-and-zoom UIs,
2381  * this pref disables font inflation in master-process contexts where
2382  * existing heuristics can't be used determine enabled-ness.
2383  *
2384  * This pref has no effect if font inflation is not enabled through
2385  * either of the prefs above.  The "forceEnabled" pref above overrides
2386  * this pref.
2387  */
2388 pref("font.size.inflation.disabledInMasterProcess", false);
2389 /*
2390  * Since the goal of font size inflation is to avoid having to
2391  * repeatedly scroll side to side to read a block of text, and there are
2392  * a number of page layouts where a relatively small chunk of text is
2393  * better of not being inflated according to the same algorithm we use
2394  * for larger chunks of text, we want a threshold for an amount of text
2395  * that triggers font size inflation.  This preference controls that
2396  * threshold.
2397  *
2398  * It controls the threshold used within an *approximation* of the
2399  * number of lines of text we use.  In particular, if we assume that
2400  * each character (collapsing collapsible whitespace) has a width the
2401  * same as the em-size of the font (when, normally, it's actually quite
2402  * a bit smaller on average), this preference gives the percentage of a
2403  * number of lines of text we'd need to trigger inflation.  This means
2404  * that a percentage of 100 means that we'd need a number of characters
2405  * (we know the font size and the width) equivalent to one line of
2406  * square text (which is actually a lot less than a real line of text).
2407  *
2408  * A value of 0 means there's no character length threshold.
2409  */
2410 pref("font.size.inflation.lineThreshold", 400);
2411 
2412 /*
2413  * Defines the font size inflation mapping intercept parameter.
2414  *
2415  * Font size inflation computes a minimum font size, m, based on
2416  * other preferences (see font.size.inflation.minTwips and
2417  * font.size.inflation.emPerLine, above) and the width of the
2418  * frame in which the text resides. Using this minimum, a specified
2419  * font size, s, is mapped to an inflated font size, i, using an
2420  * equation that varies depending on the value of the font size
2421  * inflation mapping intercept parameter, P:
2422  *
2423  * If the intercept parameter is negative, then the following mapping
2424  * function is used:
2425  *
2426  * i = m + s
2427  *
2428  * If the intercept parameter is non-negative, then the mapping function
2429  * is a function such that its graph meets the graph of i = s at the
2430  * point where both i and s are (1 + P/2) * m for values of s that are
2431  * large enough. This means that when s=0, i is always equal to m.
2432  */
2433 pref("font.size.inflation.mappingIntercept", 1);
2434 
2435 
2436 /*
2437  * This controls the percentage that fonts will be inflated, if font
2438  * size inflation is enabled. Essentially, if we have a specified font
2439  * size, s, and an inflated font size, i, this specifies that the ratio
2440  * i/s * 100 should never exceed the value of this preference.
2441  *
2442  * In order for this preference to have any effect, its value must be
2443  * greater than 100, since font inflation can never decrease the ratio
2444  * i/s.
2445  */
2446 pref("font.size.inflation.maxRatio", 0);
2447 
2448 /*
2449  * When enabled, the touch.radius and mouse.radius prefs allow events to be dispatched
2450  * to nearby elements that are sensitive to the event. See PositionedEventTargeting.cpp.
2451  * The 'mm' prefs define a rectangle around the nominal event target point within which
2452  * we will search for suitable elements. 'visitedWeight' is a percentage weight;
2453  * a value > 100 makes a visited link be treated as further away from the event target
2454  * than it really is, while a value < 100 makes a visited link be treated as closer
2455  * to the event target than it really is.
2456  */
2457 pref("ui.touch.radius.enabled", false);
2458 pref("ui.touch.radius.leftmm", 8);
2459 pref("ui.touch.radius.topmm", 12);
2460 pref("ui.touch.radius.rightmm", 8);
2461 pref("ui.touch.radius.bottommm", 4);
2462 pref("ui.touch.radius.visitedWeight", 120);
2463 
2464 pref("ui.mouse.radius.enabled", false);
2465 pref("ui.mouse.radius.leftmm", 8);
2466 pref("ui.mouse.radius.topmm", 12);
2467 pref("ui.mouse.radius.rightmm", 8);
2468 pref("ui.mouse.radius.bottommm", 4);
2469 pref("ui.mouse.radius.visitedWeight", 120);
2470 
2471 // When true, the ui.mouse.radius.* prefs will only affect simulated mouse events generated by touch input.
2472 // When false, the prefs will be used for all mouse events.
2473 pref("ui.mouse.radius.inputSource.touchOnly", true);
2474 
2475 #ifdef XP_WIN
2476 
2477 pref("font.name.serif.ar", "Times New Roman");
2478 pref("font.name.sans-serif.ar", "Arial");
2479 pref("font.name.monospace.ar", "Courier New");
2480 pref("font.name.cursive.ar", "Comic Sans MS");
2481 
2482 pref("font.name.serif.el", "Times New Roman");
2483 pref("font.name.sans-serif.el", "Arial");
2484 pref("font.name.monospace.el", "Courier New");
2485 pref("font.name.cursive.el", "Comic Sans MS");
2486 
2487 pref("font.name.serif.he", "Narkisim");
2488 pref("font.name.sans-serif.he", "Arial");
2489 pref("font.name.monospace.he", "Fixed Miriam Transparent");
2490 pref("font.name.cursive.he", "Guttman Yad");
2491 pref("font.name-list.serif.he", "Narkisim, David");
2492 pref("font.name-list.monospace.he", "Fixed Miriam Transparent, Miriam Fixed, Rod, Courier New");
2493 pref("font.name-list.cursive.he", "Guttman Yad, Ktav, Arial");
2494 
2495 pref("font.name.serif.ja", "MS PMincho");
2496 pref("font.name.sans-serif.ja", "MS PGothic");
2497 pref("font.name.monospace.ja", "MS Gothic");
2498 pref("font.name-list.serif.ja", "MS PMincho, MS Mincho, MS PGothic, MS Gothic,Meiryo");
2499 pref("font.name-list.sans-serif.ja", "MS PGothic, MS Gothic, MS PMincho, MS Mincho,Meiryo");
2500 pref("font.name-list.monospace.ja", "MS Gothic, MS Mincho, MS PGothic, MS PMincho,Meiryo");
2501 
2502 pref("font.name.serif.ko", "Batang");
2503 pref("font.name.sans-serif.ko", "Gulim");
2504 pref("font.name.monospace.ko", "GulimChe");
2505 pref("font.name.cursive.ko", "Gungsuh");
2506 
2507 pref("font.name-list.serif.ko", "Batang, Gulim");
2508 pref("font.name-list.sans-serif.ko", "Gulim");
2509 pref("font.name-list.monospace.ko", "GulimChe");
2510 pref("font.name-list.cursive.ko", "Gungsuh");
2511 
2512 pref("font.name.serif.th", "Tahoma");
2513 pref("font.name.sans-serif.th", "Tahoma");
2514 pref("font.name.monospace.th", "Tahoma");
2515 pref("font.name.cursive.th", "Tahoma");
2516 
2517 pref("font.name.serif.tr", "Times New Roman");
2518 pref("font.name.sans-serif.tr", "Arial");
2519 pref("font.name.monospace.tr", "Courier New");
2520 pref("font.name.cursive.tr", "Comic Sans MS");
2521 
2522 pref("font.name.serif.x-baltic", "Times New Roman");
2523 pref("font.name.sans-serif.x-baltic", "Arial");
2524 pref("font.name.monospace.x-baltic", "Courier New");
2525 pref("font.name.cursive.x-baltic", "Comic Sans MS");
2526 
2527 pref("font.name.serif.x-central-euro", "Times New Roman");
2528 pref("font.name.sans-serif.x-central-euro", "Arial");
2529 pref("font.name.monospace.x-central-euro", "Courier New");
2530 pref("font.name.cursive.x-central-euro", "Comic Sans MS");
2531 
2532 pref("font.name.serif.x-cyrillic", "Times New Roman");
2533 pref("font.name.sans-serif.x-cyrillic", "Arial");
2534 pref("font.name.monospace.x-cyrillic", "Courier New");
2535 pref("font.name.cursive.x-cyrillic", "Comic Sans MS");
2536 
2537 pref("font.name.serif.x-unicode", "Times New Roman");
2538 pref("font.name.sans-serif.x-unicode", "Arial");
2539 pref("font.name.monospace.x-unicode", "Courier New");
2540 pref("font.name.cursive.x-unicode", "Comic Sans MS");
2541 
2542 pref("font.name.serif.x-western", "Times New Roman");
2543 pref("font.name.sans-serif.x-western", "Arial");
2544 pref("font.name.monospace.x-western", "Courier New");
2545 pref("font.name.cursive.x-western", "Comic Sans MS");
2546 
2547 pref("font.name.serif.zh-CN", "SimSun");
2548 pref("font.name.sans-serif.zh-CN", "SimSun");
2549 pref("font.name.monospace.zh-CN", "SimSun");
2550 pref("font.name-list.serif.zh-CN", "MS Song, SimSun, SimSun-ExtB");
2551 pref("font.name-list.sans-serif.zh-CN", "MS Song, SimSun, SimSun-ExtB");
2552 pref("font.name-list.monospace.zh-CN", "MS Song, SimSun, SimSun-ExtB");
2553 
2554 // Per Taiwanese users' demand. They don't want to use TC fonts for
2555 // rendering Latin letters. (bug 88579)
2556 pref("font.name.serif.zh-TW", "Times New Roman");
2557 pref("font.name.sans-serif.zh-TW", "Arial");
2558 pref("font.name.monospace.zh-TW", "MingLiU");
2559 pref("font.name-list.serif.zh-TW", "PMingLiu, MingLiU, MingLiU-ExtB");
2560 pref("font.name-list.sans-serif.zh-TW", "PMingLiU, MingLiU, MingLiU-ExtB");
2561 pref("font.name-list.monospace.zh-TW", "MingLiU, MingLiU-ExtB");
2562 
2563 // hkscsm3u.ttf (HKSCS-2001) :  http://www.microsoft.com/hk/hkscs
2564 // Hong Kong users have the same demand about glyphs for Latin letters (bug 88579)
2565 pref("font.name.serif.zh-HK", "Times New Roman");
2566 pref("font.name.sans-serif.zh-HK", "Arial");
2567 pref("font.name.monospace.zh-HK", "MingLiu_HKSCS");
2568 pref("font.name-list.serif.zh-HK", "MingLiu_HKSCS, Ming(for ISO10646), MingLiU, MingLiU_HKSCS-ExtB");
2569 pref("font.name-list.sans-serif.zh-HK", "MingLiU_HKSCS, Ming(for ISO10646), MingLiU, MingLiU_HKSCS-ExtB");
2570 pref("font.name-list.monospace.zh-HK", "MingLiU_HKSCS, Ming(for ISO10646), MingLiU, MingLiU_HKSCS-ExtB");
2571 
2572 pref("font.name.serif.x-devanagari", "Kokila");
2573 pref("font.name.sans-serif.x-devanagari", "Nirmala UI");
2574 pref("font.name.monospace.x-devanagari", "Mangal");
2575 pref("font.name-list.serif.x-devanagari", "Kokila, Raghindi");
2576 pref("font.name-list.sans-serif.x-devanagari", "Nirmala UI, Mangal");
2577 pref("font.name-list.monospace.x-devanagari", "Mangal, Nirmala UI");
2578 
2579 pref("font.name.serif.x-tamil", "Latha");
2580 pref("font.name.sans-serif.x-tamil", "Code2000");
2581 pref("font.name.monospace.x-tamil", "Latha");
2582 pref("font.name-list.serif.x-tamil", "Latha, Code2000");
2583 pref("font.name-list.monospace.x-tamil", "Latha, Code2000");
2584 
2585 # http://www.alanwood.net/unicode/fonts.html
2586 
2587 pref("font.name.serif.x-armn", "Sylfaen");
2588 pref("font.name.sans-serif.x-armn", "Arial AMU");
2589 pref("font.name.monospace.x-armn", "Arial AMU");
2590 pref("font.name-list.serif.x-armn", "Sylfaen,Arial Unicode MS, Code2000");
2591 pref("font.name-list.monospace.x-armn", "Arial AMU, Arial Unicode MS, Code2000");
2592 
2593 pref("font.name.serif.x-beng", "Vrinda");
2594 pref("font.name.sans-serif.x-beng", "Vrinda");
2595 pref("font.name.monospace.x-beng", "Mitra Mono");
2596 pref("font.name-list.serif.x-beng", "Vrinda, Akaash, Likhan, Ekushey Punarbhaba, Code2000, Arial Unicode MS");
2597 pref("font.name-list.sans-serif.x-beng", "Vrinda, Akaash, Likhan, Ekushey Punarbhaba, Code2000, Arial Unicode MS");
2598 pref("font.name-list.monospace.x-beng", "Likhan, Mukti Narrow, Code2000, Arial Unicode MS");
2599 
2600 pref("font.name.serif.x-cans", "Aboriginal Serif");
2601 pref("font.name.sans-serif.x-cans", "Aboriginal Sans");
2602 pref("font.name.monospace.x-cans", "Aboriginal Sans");
2603 pref("font.name-list.serif.x-cans", "Aboriginal Serif, BJCree Uni");
2604 pref("font.name-list.monospace.x-cans", "Aboriginal Sans, OskiDakelh, Pigiarniq, Uqammaq");
2605 
2606 pref("font.name.serif.x-ethi", "Visual Geez Unicode");
2607 pref("font.name.sans-serif.x-ethi", "GF Zemen Unicode");
2608 pref("font.name.cursive.x-ethi", "Visual Geez Unicode Title");
2609 pref("font.name.monospace.x-ethi", "Ethiopia Jiret");
2610 pref("font.name-list.serif.x-ethi", "Visual Geez Unicode, Visual Geez Unicode Agazian, Code2000");
2611 pref("font.name-list.monospace.x-ethi", "Ethiopia Jiret, Code2000");
2612 
2613 pref("font.name.serif.x-geor", "Sylfaen");
2614 pref("font.name.sans-serif.x-geor", "BPG Classic 99U");
2615 pref("font.name.monospace.x-geor", "Code2000");
2616 pref("font.name-list.serif.x-geor", "Sylfaen, BPG Paata Khutsuri U, TITUS Cyberbit Basic");
2617 pref("font.name-list.monospace.x-geor", "BPG Classic 99U, Code2000, Arial Unicode MS");
2618 
2619 pref("font.name.serif.x-gujr", "Shruti");
2620 pref("font.name.sans-serif.x-gujr", "Shruti");
2621 pref("font.name.monospace.x-gujr", "Code2000");
2622 pref("font.name-list.serif.x-gujr", "Shruti, Code2000, Arial Unicode MS");
2623 pref("font.name-list.monospace.x-gujr", "Code2000, Shruti, Arial Unicode MS");
2624 
2625 pref("font.name.serif.x-guru", "Raavi");
2626 pref("font.name.sans-serif.x-guru", "Code2000");
2627 pref("font.name.monospace.x-guru", "Code2000");
2628 pref("font.name-list.serif.x-guru", "Raavi, Saab, Code2000, Arial Unicode MS");
2629 pref("font.name-list.monospace.x-guru", "Code2000, Raavi, Saab, Arial Unicode MS");
2630 
2631 pref("font.name.serif.x-khmr", "PhnomPenh OT");
2632 pref("font.name.sans-serif.x-khmr", "Khmer OS");
2633 pref("font.name.monospace.x-khmr", "Code2000");
2634 pref("font.name-list.serif.x-khmr", "PhnomPenh OT,.Mondulkiri U GR 1.5, Khmer OS");
2635 pref("font.name-list.monospace.x-khmr", "Code2000, Khmer OS, Khmer OS System");
2636 
2637 pref("font.name.serif.x-mlym", "Rachana_w01");
2638 pref("font.name.sans-serif.x-mlym", "Rachana_w01");
2639 pref("font.name.monospace.x-mlym", "Rachana_w01");
2640 pref("font.name-list.serif.x-mlym", "AnjaliOldLipi, Kartika, ThoolikaUnicode, Code2000, Arial Unicode MS");
2641 pref("font.name-list.sans-serif.x-mlym", "AnjaliOldLipi, Kartika, ThoolikaUnicode, Code2000, Arial Unicode MS");
2642 pref("font.name-list.monospace.x-mlym", "AnjaliOldLipi, Kartika, ThoolikaUnicode, Code2000, Arial Unicode MS");
2643 
2644 pref("font.name.serif.x-orya", "ori1Uni");
2645 pref("font.name.sans-serif.x-orya", "ori1Uni");
2646 pref("font.name.monospace.x-orya", "ori1Uni");
2647 pref("font.name-list.serif.x-orya", "Kalinga, ori1Uni, Code2000, Arial Unicode MS");
2648 pref("font.name-list.sans-serif.x-orya", "Kalinga, ori1Uni, Code2000, Arial Unicode MS");
2649 pref("font.name-list.monospace.x-orya", "Kalinga, ori1Uni, Code2000, Arial Unicode MS");
2650 
2651 pref("font.name.serif.x-telu", "Gautami");
2652 pref("font.name.sans-serif.x-telu", "Gautami");
2653 pref("font.name.monospace.x-telu", "Gautami");
2654 pref("font.name-list.serif.x-telu", "Gautami, Akshar Unicode, Code2000, Arial Unicode MS");
2655 pref("font.name-list.sans-serif.x-telu", "Gautami, Akshar Unicode, Code2000, Arial Unicode MS");
2656 pref("font.name-list.monospace.x-telu", "Gautami, Akshar Unicode, Code2000, Arial Unicode MS");
2657 
2658 pref("font.name.serif.x-knda", "Tunga");
2659 pref("font.name.sans-serif.x-knda", "Tunga");
2660 pref("font.name.monospace.x-knda", "Tunga");
2661 pref("font.name-list.serif.x-knda", "Tunga, AksharUnicode, Code2000, Arial Unicode MS");
2662 pref("font.name-list.sans-serif.x-knda", "Tunga, AksharUnicode, Code2000, Arial Unicode MS");
2663 pref("font.name-list.monospace.x-knda", "Tunga, AksharUnicode, Code2000, Arial Unicode MS");
2664 
2665 pref("font.name.serif.x-sinh", "Iskoola Pota");
2666 pref("font.name.sans-serif.x-sinh", "Iskoola Pota");
2667 pref("font.name.monospace.x-sinh", "Iskoola Pota");
2668 pref("font.name-list.serif.x-sinh", "Iskoola Pota, AksharUnicode");
2669 pref("font.name-list.sans-serif.x-sinh", "Iskoola Pota, AksharUnicode");
2670 pref("font.name-list.monospace.x-sinh", "Iskoola Pota, AksharUnicode");
2671 
2672 pref("font.name.serif.x-tibt", "Tibetan Machine Uni");
2673 pref("font.name.sans-serif.x-tibt", "Tibetan Machine Uni");
2674 pref("font.name.monospace.x-tibt", "Tibetan Machine Uni");
2675 pref("font.name-list.serif.x-tibt", "Tibetan Machine Uni, Jomolhari, Microsoft Himalaya");
2676 pref("font.name-list.sans-serif.x-tibt", "Tibetan Machine Uni, Jomolhari, Microsoft Himalaya");
2677 pref("font.name-list.monospace.x-tibt", "Tibetan Machine Uni, Jomolhari, Microsoft Himalaya");
2678 
2679 pref("font.minimum-size.th", 10);
2680 
2681 pref("font.default.x-devanagari", "sans-serif");
2682 // We have special support for Monotype Symbol on Windows.
2683 pref("font.mathfont-family", "MathJax_Main, STIXNonUnicode, STIXSizeOneSym, STIXGeneral, Asana Math, Symbol, DejaVu Sans, Cambria Math");
2684 
2685 // cleartype settings - false implies default system settings
2686 
2687 // use cleartype rendering for downloadable fonts (win xp only)
2688 pref("gfx.font_rendering.cleartype.use_for_downloadable_fonts", true);
2689 
2690 // use cleartype rendering for all fonts always (win xp only)
2691 pref("gfx.font_rendering.cleartype.always_use_for_content", false);
2692 
2693 // ClearType tuning parameters for directwrite/d2d.
2694 //
2695 // Allows overriding of underlying registry values in:
2696 //   HKCU/Software/Microsoft/Avalon.Graphics/<display> (contrast and level)
2697 //   HKLM/Software/Microsoft/Avalon.Graphics/<display> (gamma, pixel structure)
2698 // and selection of the ClearType/antialiasing mode.
2699 //
2700 // A value of -1 implies use the default value, otherwise value ranges
2701 // follow registry settings:
2702 //   gamma [1000, 2200]  default: based on screen, typically 2200 (== 2.2)
2703 //   enhanced contrast [0, 1000] default: 50
2704 //   cleartype level [0, 100] default: 100
2705 //   pixel structure [0, 2] default: 0 (flat/RGB/BGR)
2706 //   rendering mode [0, 5] default: 0
2707 //     0 = use default for font & size;
2708 //     1 = aliased;
2709 //     2 = GDI Classic;
2710 //     3 = GDI Natural Widths;
2711 //     4 = Natural;
2712 //     5 = Natural Symmetric
2713 //
2714 // See:
2715 //   http://msdn.microsoft.com/en-us/library/aa970267.aspx
2716 //   http://msdn.microsoft.com/en-us/library/dd368190%28v=VS.85%29.aspx
2717 // Note: DirectWrite uses the "Enhanced Contrast Level" value rather than the
2718 // "Text Contrast Level" value
2719 
2720 pref("gfx.font_rendering.cleartype_params.gamma", -1);
2721 pref("gfx.font_rendering.cleartype_params.enhanced_contrast", -1);
2722 pref("gfx.font_rendering.cleartype_params.cleartype_level", -1);
2723 pref("gfx.font_rendering.cleartype_params.pixel_structure", -1);
2724 pref("gfx.font_rendering.cleartype_params.rendering_mode", -1);
2725 
2726 // A comma-separated list of font family names. Fonts in these families will
2727 // be forced to use "GDI Classic" ClearType mode, provided the value
2728 // of gfx.font_rendering.cleartype_params.rendering_mode is -1
2729 // (i.e. a specific rendering_mode has not been explicitly set).
2730 // Currently we apply this setting to the sans-serif Microsoft "core Web fonts".
2731 pref("gfx.font_rendering.cleartype_params.force_gdi_classic_for_families",
2732      "Arial,Consolas,Courier New,Microsoft Sans Serif,Segoe UI,Tahoma,Trebuchet MS,Verdana");
2733 // The maximum size at which we will force GDI classic mode using
2734 // force_gdi_classic_for_families.
2735 pref("gfx.font_rendering.cleartype_params.force_gdi_classic_max_size", 15);
2736 
2737 pref("ui.key.menuAccessKeyFocuses", true);
2738 
2739 // override double-click word selection behavior.
2740 pref("layout.word_select.eat_space_to_next_word", true);
2741 
2742 // scrollbar snapping region
2743 pref("slider.snapMultiplier", 6);
2744 
2745 // print_extra_margin enables platforms to specify an extra gap or margin
2746 // around the content of the page for Print Preview only
2747 pref("print.print_extra_margin", 90); // twips (90 twips is an eigth of an inch)
2748 
2749 // Whether to extend the native dialog with information on printing frames.
2750 pref("print.extend_native_print_dialog", true);
2751 
2752 // Locate plugins by scanning the Adobe Acrobat installation directory with a minimum version
2753 pref("plugin.scan.Acrobat", "5.0");
2754 
2755 // Locate plugins by scanning the Quicktime installation directory with a minimum version
2756 pref("plugin.scan.Quicktime", "5.0");
2757 
2758 // Locate and scan the Window Media Player installation directory for plugins with a minimum version
2759 pref("plugin.scan.WindowsMediaPlayer", "7.0");
2760 
2761 // Locate plugins by the directories specified in the Windows registry for PLIDs
2762 // Which is currently HKLM\Software\MozillaPlugins\xxxPLIDxxx\Path
2763 pref("plugin.scan.plid.all", true);
2764 
2765 // Allow the new AsyncDrawing mode to be used for plugins.
2766 pref("plugin.allow.asyncdrawing", false);
2767 
2768 // Help Windows NT, 2000, and XP dialup a RAS connection
2769 // when a network address is unreachable.
2770 pref("network.autodial-helper.enabled", true);
2771 
2772 // Switch the keyboard layout per window
2773 pref("intl.keyboard.per_window_layout", false);
2774 
2775 #ifdef NS_ENABLE_TSF
2776 // Enable/Disable TSF support on Vista or later.
2777 pref("intl.tsf.enable", false);
2778 // Force enable TSF even on WinXP or WinServer 2003.
2779 // Be aware, TSF framework on prior to Vista is not enough stable.
2780 pref("intl.tsf.force_enable", false);
2781 
2782 // Support IMEs implemented with IMM in TSF mode.
2783 pref("intl.tsf.support_imm", true);
2784 
2785 // Enables/Disables hack for specific TIP.
2786 
2787 // Whether creates native caret for ATOK or not.
2788 pref("intl.tsf.hack.atok.create_native_caret", true);
2789 #endif
2790 
2791 // See bug 448927, on topmost panel, some IMEs are not usable on Windows.
2792 pref("ui.panel.default_level_parent", false);
2793 
2794 pref("mousewheel.system_scroll_override_on_root_content.enabled", true);
2795 
2796 // High resolution scrolling with supported mouse drivers on Vista or later.
2797 pref("mousewheel.enable_pixel_scrolling", true);
2798 
2799 // If your mouse drive sends WM_*SCROLL messages when you turn your mouse wheel,
2800 // set this to true.  Then, gecko processes them as mouse wheel messages.
2801 pref("mousewheel.emulate_at_wm_scroll", false);
2802 
2803 // Enables or disabled the TrackPoint hack, -1 is autodetect, 0 is off,
2804 // and 1 is on.  Set this to 1 if TrackPoint scrolling is not working.
2805 pref("ui.trackpoint_hack.enabled", -1);
2806 
2807 // Setting this to a non-empty string overrides the Win32 "window class" used
2808 // for "normal" windows. Setting this to MozillaUIWindowClass might make
2809 // some trackpad drivers behave better.
2810 pref("ui.window_class_override", "");
2811 
2812 // Enables or disables the Elantech gesture hacks.  -1 is autodetect, 0 is off,
2813 // and 1 is on.  Set this to 1 if three-finger swipe gestures do not cause
2814 // page back/forward actions, or if pinch-to-zoom does not work.
2815 pref("ui.elantech_gesture_hacks.enabled", -1);
2816 
2817 # XP_WIN
2818 #endif
2819 
2820 #ifdef XP_MACOSX
2821 // Mac specific preference defaults
2822 pref("browser.drag_out_of_frame_style", 1);
2823 pref("ui.key.saveLink.shift", false); // true = shift, false = meta
2824 
2825 // default fonts (in UTF8 and using canonical names)
2826 // to determine canonical font names, use a debug build and
2827 // enable NSPR logging for module fontInfoLog:5
2828 // canonical names immediately follow '(fontinit) family:' in the log
2829 
2830 pref("font.name.serif.ar", "Al Bayan");
2831 pref("font.name.sans-serif.ar", "Geeza Pro");
2832 pref("font.name.monospace.ar", "Geeza Pro");
2833 pref("font.name.cursive.ar", "DecoType Naskh");
2834 pref("font.name.fantasy.ar", "KufiStandardGK");
2835 pref("font.name-list.serif.ar", "Al Bayan");
2836 pref("font.name-list.sans-serif.ar", "Geeza Pro");
2837 pref("font.name-list.monospace.ar", "Geeza Pro");
2838 pref("font.name-list.cursive.ar", "DecoType Naskh");
2839 pref("font.name-list.fantasy.ar", "KufiStandardGK");
2840 
2841 pref("font.name.serif.el", "Times");
2842 pref("font.name.sans-serif.el", "Helvetica");
2843 pref("font.name.monospace.el", "Courier New");
2844 pref("font.name.cursive.el", "Lucida Grande");
2845 pref("font.name.fantasy.el", "Lucida Grande");
2846 pref("font.name-list.serif.el", "Times,Times New Roman");
2847 pref("font.name-list.sans-serif.el", "Helvetica,Lucida Grande");
2848 pref("font.name-list.monospace.el", "Courier New,Lucida Grande");
2849 pref("font.name-list.cursive.el", "Times,Lucida Grande");
2850 pref("font.name-list.fantasy.el", "Times,Lucida Grande");
2851 
2852 pref("font.name.serif.he", "Times New Roman");
2853 pref("font.name.sans-serif.he", "Arial");
2854 pref("font.name.monospace.he", "Courier New");
2855 pref("font.name.cursive.he", "Times New Roman");
2856 pref("font.name.fantasy.he", "Times New Roman");
2857 pref("font.name-list.serif.he", "Times New Roman");
2858 pref("font.name-list.sans-serif.he", "Arial");
2859 pref("font.name-list.monospace.he", "Courier New");
2860 pref("font.name-list.cursive.he", "Times New Roman");
2861 pref("font.name-list.fantasy.he", "Times New Roman");
2862 
2863 pref("font.name.serif.ja", "Hiragino Mincho ProN");
2864 pref("font.name.sans-serif.ja", "Hiragino Kaku Gothic ProN");
2865 pref("font.name.monospace.ja", "Osaka-Mono");
2866 pref("font.name-list.serif.ja", "Hiragino Mincho ProN,Hiragino Mincho Pro");
2867 pref("font.name-list.sans-serif.ja", "Hiragino Kaku Gothic ProN,Hiragino Kaku Gothic Pro");
2868 pref("font.name-list.monospace.ja", "Osaka-Mono");
2869 
2870 pref("font.name.serif.ko", "AppleMyungjo");
2871 pref("font.name.sans-serif.ko", "Apple SD Gothic Neo");
2872 pref("font.name.monospace.ko", "Apple SD Gothic Neo");
2873 pref("font.name-list.serif.ko", "AppleMyungjo");
2874 pref("font.name-list.sans-serif.ko", "Apple SD Gothic Neo,AppleGothic");
2875 pref("font.name-list.monospace.ko", "Apple SD Gothic Neo,AppleGothic");
2876 
2877 pref("font.name.serif.th", "Thonburi");
2878 pref("font.name.sans-serif.th", "Thonburi");
2879 pref("font.name.monospace.th", "Ayuthaya");
2880 pref("font.name-list.serif.th", "Thonburi");
2881 pref("font.name-list.sans-serif.th", "Thonburi");
2882 pref("font.name-list.monospace.th", "Ayuthaya");
2883 
2884 pref("font.name.serif.tr", "Times");
2885 pref("font.name.sans-serif.tr", "Helvetica");
2886 pref("font.name.monospace.tr", "Courier");
2887 pref("font.name.cursive.tr", "Apple Chancery");
2888 pref("font.name.fantasy.tr", "Papyrus");
2889 pref("font.name-list.serif.tr", "Times");
2890 pref("font.name-list.sans-serif.tr", "Helvetica");
2891 pref("font.name-list.monospace.tr", "Courier");
2892 pref("font.name-list.cursive.tr", "Apple Chancery");
2893 pref("font.name-list.fantasy.tr", "Papyrus");
2894 
2895 pref("font.name.serif.x-armn", "Mshtakan");
2896 pref("font.name.sans-serif.x-armn", "Mshtakan");
2897 pref("font.name.monospace.x-armn", "Mshtakan");
2898 pref("font.name-list.serif.x-armn", "Mshtakan");
2899 pref("font.name-list.sans-serif.x-armn", "Mshtakan");
2900 pref("font.name-list.monospace.x-armn", "Mshtakan");
2901 
2902 pref("font.name.serif.x-baltic", "Times");
2903 pref("font.name.sans-serif.x-baltic", "Helvetica");
2904 pref("font.name.monospace.x-baltic", "Courier");
2905 pref("font.name.cursive.x-baltic", "Apple Chancery");
2906 pref("font.name.fantasy.x-baltic", "Papyrus");
2907 pref("font.name-list.serif.x-baltic", "Times");
2908 pref("font.name-list.sans-serif.x-baltic", "Helvetica");
2909 pref("font.name-list.monospace.x-baltic", "Courier");
2910 pref("font.name-list.cursive.x-baltic", "Apple Chancery");
2911 pref("font.name-list.fantasy.x-baltic", "Papyrus");
2912 
2913 // SolaimanLipi, Rupali http://ekushey.org/?page/mac_download
2914 pref("font.name.serif.x-beng", "Bangla MN");
2915 pref("font.name.sans-serif.x-beng", "Bangla Sangam MN");
2916 pref("font.name.monospace.x-beng", "Bangla Sangam MN");
2917 pref("font.name-list.serif.x-beng", "Bangla MN");
2918 pref("font.name-list.sans-serif.x-beng", "Bangla Sangam MN");
2919 pref("font.name-list.monospace.x-beng", "Bangla Sangam MN");
2920 
2921 pref("font.name.serif.x-cans", "Euphemia UCAS");
2922 pref("font.name.sans-serif.x-cans", "Euphemia UCAS");
2923 pref("font.name.monospace.x-cans", "Euphemia UCAS");
2924 pref("font.name-list.serif.x-cans", "Euphemia UCAS");
2925 pref("font.name-list.sans-serif.x-cans", "Euphemia UCAS");
2926 pref("font.name-list.monospace.x-cans", "Euphemia UCAS");
2927 
2928 pref("font.name.serif.x-central-euro", "Times");
2929 pref("font.name.sans-serif.x-central-euro", "Helvetica");
2930 pref("font.name.monospace.x-central-euro", "Courier");
2931 pref("font.name.cursive.x-central-euro", "Apple Chancery");
2932 pref("font.name.fantasy.x-central-euro", "Papyrus");
2933 pref("font.name-list.serif.x-central-euro", "Times");
2934 pref("font.name-list.sans-serif.x-central-euro", "Helvetica");
2935 pref("font.name-list.monospace.x-central-euro", "Courier");
2936 pref("font.name-list.cursive.x-central-euro", "Apple Chancery");
2937 pref("font.name-list.fantasy.x-central-euro", "Papyrus");
2938 
2939 pref("font.name.serif.x-cyrillic", "Times");
2940 pref("font.name.sans-serif.x-cyrillic", "Helvetica");
2941 pref("font.name.monospace.x-cyrillic", "Monaco");
2942 pref("font.name.cursive.x-cyrillic", "Geneva");
2943 pref("font.name.fantasy.x-cyrillic", "Charcoal CY");
2944 pref("font.name-list.serif.x-cyrillic", "Times,Times New Roman");
2945 pref("font.name-list.sans-serif.x-cyrillic", "Helvetica,Arial");
2946 pref("font.name-list.monospace.x-cyrillic", "Monaco,Courier New");
2947 pref("font.name-list.cursive.x-cyrillic", "Geneva");
2948 pref("font.name-list.fantasy.x-cyrillic", "Charcoal CY");
2949 
2950 pref("font.name.serif.x-devanagari", "Devanagari MT");
2951 pref("font.name.sans-serif.x-devanagari", "Devanagari Sangam MN");
2952 pref("font.name.monospace.x-devanagari", "Devanagari Sangam MN");
2953 pref("font.name-list.serif.x-devanagari", "Devanagari MT");
2954 pref("font.name-list.sans-serif.x-devanagari", "Devanagari Sangam MN,Devanagari MT");
2955 pref("font.name-list.monospace.x-devanagari", "Devanagari Sangam MN,Devanagari MT");
2956 
2957 // Abyssinica SIL http://scripts.sil.org/AbyssinicaSIL_Download
2958 pref("font.name.serif.x-ethi", "Kefa");
2959 pref("font.name.sans-serif.x-ethi", "Kefa");
2960 pref("font.name.monospace.x-ethi", "Kefa");
2961 pref("font.name-list.serif.x-ethi", "Kefa,Abyssinica SIL");
2962 pref("font.name-list.sans-serif.x-ethi", "Kefa,Abyssinica SIL");
2963 pref("font.name-list.monospace.x-ethi", "Kefa,Abyssinica SIL");
2964 
2965 // no suitable fonts for georgian ship with mac os x
2966 // however some can be freely downloaded
2967 // TITUS Cyberbit Basic http://titus.fkidg1.uni-frankfurt.de/unicode/tituut.asp
2968 // Zuzumbo http://homepage.mac.com/rsiradze/FileSharing91.html
2969 pref("font.name.serif.x-geor", "TITUS Cyberbit Basic");
2970 pref("font.name.sans-serif.x-geor", "Zuzumbo");
2971 pref("font.name.monospace.x-geor", "Zuzumbo");
2972 pref("font.name-list.serif.x-geor", "TITUS Cyberbit Basic");
2973 pref("font.name-list.sans-serif.x-geor", "Zuzumbo");
2974 pref("font.name-list.monospace.x-geor", "Zuzumbo");
2975 
2976 pref("font.name.serif.x-gujr", "Gujarati MT");
2977 pref("font.name.sans-serif.x-gujr", "Gujarati Sangam MN");
2978 pref("font.name.monospace.x-gujr", "Gujarati Sangam MN");
2979 pref("font.name-list.serif.x-gujr", "Gujarati MT");
2980 pref("font.name-list.sans-serif.x-gujr", "Gujarati Sangam MN,Gujarati MT");
2981 pref("font.name-list.monospace.x-gujr", "Gujarati Sangam MN,Gujarati MT");
2982 
2983 pref("font.name.serif.x-guru", "Gurmukhi MT");
2984 pref("font.name.sans-serif.x-guru", "Gurmukhi MT");
2985 pref("font.name.monospace.x-guru", "Gurmukhi MT");
2986 pref("font.name-list.serif.x-guru", "Gurmukhi MT");
2987 pref("font.name-list.sans-serif.x-guru", "Gurmukhi MT");
2988 pref("font.name-list.monospace.x-guru", "Gurmukhi MT");
2989 
2990 pref("font.name.serif.x-khmr", "Khmer MN");
2991 pref("font.name.sans-serif.x-khmr", "Khmer Sangam MN");
2992 pref("font.name.monospace.x-khmr", "Khmer Sangam MN");
2993 pref("font.name-list.serif.x-khmr", "Khmer MN");
2994 pref("font.name-list.sans-serif.x-khmr", "Khmer Sangam MN");
2995 pref("font.name-list.monospace.x-khmr", "Khmer Sangam MN");
2996 
2997 pref("font.name.serif.x-mlym", "Malayalam MN");
2998 pref("font.name.sans-serif.x-mlym", "Malayalam Sangam MN");
2999 pref("font.name.monospace.x-mlym", "Malayalam Sangam MN");
3000 pref("font.name-list.serif.x-mlym", "Malayalam MN");
3001 pref("font.name-list.sans-serif.x-mlym", "Malayalam Sangam MN");
3002 pref("font.name-list.monospace.x-mlym", "Malayalam Sangam MN");
3003 
3004 pref("font.name.serif.x-orya", "Oriya MN");
3005 pref("font.name.sans-serif.x-orya", "Oriya Sangam MN");
3006 pref("font.name.monospace.x-orya", "Oriya Sangam MN");
3007 pref("font.name-list.serif.x-orya", "Oriya MN");
3008 pref("font.name-list.sans-serif.x-orya", "Oriya Sangam MN");
3009 pref("font.name-list.monospace.x-orya", "Oriya Sangam MN");
3010 
3011 // Pothana http://web.nickshanks.com/typography/telugu/
3012 pref("font.name.serif.x-telu", "Telugu MN");
3013 pref("font.name.sans-serif.x-telu", "Telugu Sangam MN");
3014 pref("font.name.monospace.x-telu", "Telugu Sangam MN");
3015 pref("font.name-list.serif.x-telu", "Telugu MN,Pothana");
3016 pref("font.name-list.sans-serif.x-telu", "Telugu Sangam MN,Pothana");
3017 pref("font.name-list.monospace.x-telu", "Telugu Sangam MN,Pothana");
3018 
3019 // Kedage http://web.nickshanks.com/typography/kannada/
3020 pref("font.name.serif.x-knda", "Kannada MN");
3021 pref("font.name.sans-serif.x-knda", "Kannada Sangam MN");
3022 pref("font.name.monospace.x-knda", "Kannada Sangam MN");
3023 pref("font.name-list.serif.x-knda", "Kannada MN,Kedage");
3024 pref("font.name-list.sans-serif.x-knda", "Kannada Sangam MN,Kedage");
3025 pref("font.name-list.monospace.x-knda", "Kannada Sangam MN,Kedage");
3026 
3027 pref("font.name.serif.x-sinh", "Sinhala MN");
3028 pref("font.name.sans-serif.x-sinh", "Sinhala Sangam MN");
3029 pref("font.name.monospace.x-sinh", "Sinhala Sangam MN");
3030 pref("font.name-list.serif.x-sinh", "Sinhala MN");
3031 pref("font.name-list.sans-serif.x-sinh", "Sinhala Sangam MN");
3032 pref("font.name-list.monospace.x-sinh", "Sinhala Sangam MN");
3033 
3034 pref("font.name.serif.x-tamil", "InaiMathi");
3035 pref("font.name.sans-serif.x-tamil", "InaiMathi");
3036 pref("font.name.monospace.x-tamil", "InaiMathi");
3037 pref("font.name-list.serif.x-tamil", "InaiMathi");
3038 pref("font.name-list.sans-serif.x-tamil", "InaiMathi");
3039 pref("font.name-list.monospace.x-tamil", "InaiMathi");
3040 
3041 // Kailasa ships with mac os x >= 10.5
3042 pref("font.name.serif.x-tibt", "Kailasa");
3043 pref("font.name.sans-serif.x-tibt", "Kailasa");
3044 pref("font.name.monospace.x-tibt", "Kailasa");
3045 pref("font.name-list.serif.x-tibt", "Kailasa");
3046 pref("font.name-list.sans-serif.x-tibt", "Kailasa");
3047 pref("font.name-list.monospace.x-tibt", "Kailasa");
3048 
3049 pref("font.name.serif.x-unicode", "Times");
3050 pref("font.name.sans-serif.x-unicode", "Helvetica");
3051 pref("font.name.monospace.x-unicode", "Courier");
3052 pref("font.name.cursive.x-unicode", "Apple Chancery");
3053 pref("font.name.fantasy.x-unicode", "Papyrus");
3054 pref("font.name-list.serif.x-unicode", "Times");
3055 pref("font.name-list.sans-serif.x-unicode", "Helvetica");
3056 pref("font.name-list.monospace.x-unicode", "Courier");
3057 pref("font.name-list.cursive.x-unicode", "Apple Chancery");
3058 pref("font.name-list.fantasy.x-unicode", "Papyrus");
3059 
3060 pref("font.name.serif.x-western", "Times");
3061 pref("font.name.sans-serif.x-western", "Helvetica");
3062 pref("font.name.monospace.x-western", "Courier");
3063 pref("font.name.cursive.x-western", "Apple Chancery");
3064 pref("font.name.fantasy.x-western", "Papyrus");
3065 pref("font.name-list.serif.x-western", "Times,Times New Roman");
3066 pref("font.name-list.sans-serif.x-western", "Helvetica,Arial");
3067 pref("font.name-list.monospace.x-western", "Courier,Courier New");
3068 pref("font.name-list.cursive.x-western", "Apple Chancery");
3069 pref("font.name-list.fantasy.x-western", "Papyrus");
3070 
3071 pref("font.name.serif.zh-CN", "Times");
3072 pref("font.name.sans-serif.zh-CN", "Helvetica");
3073 pref("font.name.monospace.zh-CN", "Courier");
3074 pref("font.name-list.serif.zh-CN", "Times,STSong,Heiti SC");
3075 pref("font.name-list.sans-serif.zh-CN", "Helvetica,STHeiti,Heiti SC");
3076 pref("font.name-list.monospace.zh-CN", "Courier,STHeiti,Heiti SC");
3077 
3078 pref("font.name.serif.zh-TW", "Times");
3079 pref("font.name.sans-serif.zh-TW", "Helvetica");
3080 pref("font.name.monospace.zh-TW", "Courier");
3081 pref("font.name-list.serif.zh-TW", "Times,LiSong Pro,Heiti TC");
3082 pref("font.name-list.sans-serif.zh-TW", "Helvetica,Heiti TC,LiHei Pro");
3083 pref("font.name-list.monospace.zh-TW", "Courier,Heiti TC,LiHei Pro");
3084 
3085 pref("font.name.serif.zh-HK", "Times");
3086 pref("font.name.sans-serif.zh-HK", "Helvetica");
3087 pref("font.name.monospace.zh-HK", "Courier");
3088 pref("font.name-list.serif.zh-HK", "Times,LiSong Pro,Heiti TC");
3089 pref("font.name-list.sans-serif.zh-HK", "Helvetica,Heiti TC,LiHei Pro");
3090 pref("font.name-list.monospace.zh-HK", "Courier,Heiti TC,LiHei Pro");
3091 
3092 // XP_MACOSX changes to default font sizes
3093 pref("font.minimum-size.th", 10);
3094 pref("font.size.variable.zh-CN", 15);
3095 pref("font.size.variable.zh-HK", 15);
3096 pref("font.size.variable.zh-TW", 15);
3097 
3098 // Apple's Symbol is Unicode so use it
3099 pref("font.mathfont-family", "Latin Modern Math, XITS Math, STIX Math, Cambria Math, Asana Math, TeX Gyre Bonum Math, TeX Gyre Pagella Math, TeX Gyre Termes Math, Neo Euler, Lucida Bright Math, MathJax_Main, STIXNonUnicode, STIXSizeOneSym, STIXGeneral, Symbol, DejaVu Sans");
3100 
3101 // individual font faces to be treated as independent families
3102 // names are Postscript names of each face
3103 pref("font.single-face-list", "Osaka-Mono");
3104 
3105 // optimization hint for fonts with localized names to be read in at startup, otherwise read in at lookup miss
3106 // names are canonical family names (typically English names)
3107 pref("font.preload-names-list", "Hiragino Kaku Gothic ProN,Hiragino Mincho ProN,STSong");
3108 
3109 // Override font-weight values for some problematic families Apple ships
3110 // (see bug 931426).
3111 // The name here is the font's PostScript name, which can be checked in
3112 // the Font Book utility or other tools.
3113 pref("font.weight-override.AppleSDGothicNeo-Thin", 100); // Ensure Thin < UltraLight < Light
3114 pref("font.weight-override.AppleSDGothicNeo-UltraLight", 200);
3115 pref("font.weight-override.AppleSDGothicNeo-Light", 300);
3116 pref("font.weight-override.AppleSDGothicNeo-Heavy", 900); // Ensure Heavy > ExtraBold (800)
3117 
3118 pref("font.weight-override.Avenir-Book", 300); // Ensure Book < Roman (400)
3119 pref("font.weight-override.Avenir-BookOblique", 300);
3120 pref("font.weight-override.Avenir-MediumOblique", 500); // Harmonize MediumOblique with Medium
3121 pref("font.weight-override.Avenir-Black", 900); // Ensure Black > Heavy (800)
3122 pref("font.weight-override.Avenir-BlackOblique", 900);
3123 
3124 pref("font.weight-override.AvenirNext-MediumItalic", 500); // Harmonize MediumItalic with Medium
3125 pref("font.weight-override.AvenirNextCondensed-MediumItalic", 500);
3126 
3127 pref("font.weight-override.HelveticaNeue-Light", 300); // Ensure Light > Thin (200)
3128 pref("font.weight-override.HelveticaNeue-LightItalic", 300);
3129 pref("font.weight-override.HelveticaNeue-MediumItalic", 500); // Harmonize MediumItalic with Medium
3130 
3131 // Override the Windows settings: no menu key, meta accelerator key. ctrl for general access key in HTML/XUL
3132 // Use 17 for Ctrl, 18 for Option, 224 for Cmd, 0 for none
3133 pref("ui.key.menuAccessKey", 0);
3134 pref("ui.key.accelKey", 224);
3135 // (pinkerton, joki, saari) IE5 for mac uses Control for access keys. The HTML4 spec
3136 // suggests to use command on mac, but this really sucks (imagine someone having a "q"
3137 // as an access key and not letting you quit the app!). As a result, we've made a
3138 // command decision 1 day before tree lockdown to change it to the control key.
3139 pref("ui.key.generalAccessKey", -1);
3140 
3141 // If generalAccessKey is -1, use the following two prefs instead.
3142 // Use 0 for disabled, 1 for Shift, 2 for Ctrl, 4 for Alt, 8 for Meta (Cmd)
3143 // (values can be combined, e.g. 3 for Ctrl+Shift)
3144 pref("ui.key.chromeAccess", 2);
3145 pref("ui.key.contentAccess", 6);
3146 
3147 // print_extra_margin enables platforms to specify an extra gap or margin
3148 // around the content of the page for Print Preview only
3149 pref("print.print_extra_margin", 90); // twips (90 twips is an eigth of an inch)
3150 
3151 // See bug 404131, topmost <panel> element wins to Dashboard on MacOSX.
3152 pref("ui.panel.default_level_parent", false);
3153 
3154 pref("ui.plugin.cancel_composition_at_input_source_changed", false);
3155 
3156 // The min width of composition window for plugins
3157 pref("ui.plugin.panel.min-width", 500);
3158 
3159 pref("mousewheel.system_scroll_override_on_root_content.enabled", false);
3160 
3161 // Macbook touchpad two finger pixel scrolling
3162 pref("mousewheel.enable_pixel_scrolling", true);
3163 
3164 # XP_MACOSX
3165 #endif
3166 
3167 #ifdef ANDROID
3168 // Handled differently under Mac/Windows
3169 pref("network.protocol-handler.warn-external.file", false);
3170 pref("browser.drag_out_of_frame_style", 1);
3171 
3172 // Middle-mouse handling
3173 pref("middlemouse.paste", true);
3174 pref("middlemouse.contentLoadURL", true);
3175 pref("middlemouse.openNewWindow", true);
3176 pref("middlemouse.scrollbarPosition", true);
3177 
3178 pref("browser.urlbar.clickSelectsAll", false);
3179 
3180 // Tab focus model bit field:
3181 // 1 focuses text controls, 2 focuses other form elements, 4 adds links.
3182 // Leave this at the default, 7, to match mozilla1.0-era user expectations.
3183 // pref("accessibility.tabfocus", 1);
3184 
3185 // autocomplete keyboard grab workaround
3186 pref("autocomplete.grab_during_popup", true);
3187 pref("autocomplete.ungrab_during_mode_switch", true);
3188 
3189 // Default to using the system filepicker if possible, but allow
3190 // toggling to use the XUL filepicker
3191 pref("ui.allow_platform_file_picker", true);
3192 
3193 pref("helpers.global_mime_types_file", "/etc/mime.types");
3194 pref("helpers.global_mailcap_file", "/etc/mailcap");
3195 pref("helpers.private_mime_types_file", "~/.mime.types");
3196 pref("helpers.private_mailcap_file", "~/.mailcap");
3197 pref("print.print_command", "lpr ${MOZ_PRINTER_NAME:+-P\"$MOZ_PRINTER_NAME\"}");
3198 pref("print.printer_list", ""); // list of printers, separated by spaces
3199 pref("print.print_reversed", false);
3200 pref("print.print_color", true);
3201 pref("print.print_landscape", false);
3202 pref("print.print_paper_size", 0);
3203 
3204 // print_extra_margin enables platforms to specify an extra gap or margin
3205 // around the content of the page for Print Preview only
3206 pref("print.print_extra_margin", 0); // twips
3207 
3208 # ANDROID
3209 #endif
3210 
3211 #if defined(ANDROID) || defined(FXOS_SIMULATOR)
3212 // font names
3213 
3214 pref("font.alias-list", "sans,sans-serif,serif,monospace");
3215 
3216 // Gonk (along with FxOS Simulator) and Android ship different sets of fonts
3217 #if defined(MOZ_WIDGET_GONK) || defined(FXOS_SIMULATOR)
3218 
3219 // TODO: some entries could probably be cleaned up.
3220 
3221 // ar
3222 
3223 pref("font.name.serif.el", "Droid Serif"); // not Charis SIL Compact, only has a few Greek chars
3224 pref("font.name.sans-serif.el", "Roboto"); // To be updated once the Greek letters in Fira are revised
3225 pref("font.name.monospace.el", "Droid Sans Mono");
3226 
3227 pref("font.name.serif.he", "Charis SIL Compact");
3228 pref("font.name.sans-serif.he", "Fira Sans");
3229 pref("font.name.monospace.he", "Fira Mono");
3230 pref("font.name-list.sans-serif.he", "Droid Sans Hebrew, Fira Sans");
3231 
3232 pref("font.name.serif.ja", "Charis SIL Compact");
3233 pref("font.name.sans-serif.ja", "Fira Sans");
3234 pref("font.name.monospace.ja", "MotoyaLMaru");
3235 pref("font.name-list.sans-serif.ja", "Fira Sans, MotoyaLMaru, MotoyaLCedar, Droid Sans Japanese");
3236 pref("font.name-list.monospace.ja", "MotoyaLMaru, MotoyaLCedar, Fira Mono");
3237 
3238 pref("font.name.serif.ko", "Charis SIL Compact");
3239 pref("font.name.sans-serif.ko", "Fira Sans");
3240 pref("font.name.monospace.ko", "Fira Mono");
3241 
3242 pref("font.name.serif.th", "Charis SIL Compact");
3243 pref("font.name.sans-serif.th", "Fira Sans");
3244 pref("font.name.monospace.th", "Fira Mono");
3245 pref("font.name-list.sans-serif.th", "Fira Sans, Noto Sans Thai, Droid Sans Thai");
3246 
3247 pref("font.name.serif.tr", "Charis SIL Compact");
3248 pref("font.name.sans-serif.tr", "Fira Sans");
3249 pref("font.name.monospace.tr", "Fira Mono");
3250 
3251 pref("font.name.serif.x-baltic", "Charis SIL Compact");
3252 pref("font.name.sans-serif.x-baltic", "Fira Sans");
3253 pref("font.name.monospace.x-baltic", "Fira Mono");
3254 
3255 pref("font.name.serif.x-central-euro", "Charis SIL Compact");
3256 pref("font.name.sans-serif.x-central-euro", "Fira Sans");
3257 pref("font.name.monospace.x-central-euro", "Fira Mono");
3258 
3259 pref("font.name.serif.x-cyrillic", "Charis SIL Compact");
3260 pref("font.name.sans-serif.x-cyrillic", "Fira Sans");
3261 pref("font.name.monospace.x-cyrillic", "Fira Mono");
3262 
3263 pref("font.name.serif.x-unicode", "Charis SIL Compact");
3264 pref("font.name.sans-serif.x-unicode", "Fira Sans");
3265 pref("font.name.monospace.x-unicode", "Fira Mono");
3266 
3267 pref("font.name.serif.x-western", "Charis SIL Compact");
3268 pref("font.name.sans-serif.x-western", "Fira Sans");
3269 pref("font.name.monospace.x-western", "Fira Mono");
3270 
3271 pref("font.name.serif.zh-CN", "Charis SIL Compact");
3272 pref("font.name.sans-serif.zh-CN", "Fira Sans");
3273 pref("font.name.monospace.zh-CN", "Fira Mono");
3274 
3275 pref("font.name.serif.zh-HK", "Charis SIL Compact");
3276 pref("font.name.sans-serif.zh-HK", "Fira Sans");
3277 pref("font.name.monospace.zh-HK", "Fira Mono");
3278 
3279 pref("font.name.serif.zh-TW", "Charis SIL Compact");
3280 pref("font.name.sans-serif.zh-TW", "Fira Sans");
3281 pref("font.name.monospace.zh-TW", "Fira Mono");
3282 
3283 #else
3284 
3285 // not MOZ_WIDGET_GONK / FXOS_SIMULATOR
3286 // (i.e. this is Firefox for Android) - here, we use the bundled fonts
3287 
3288 // ar
3289 
3290 pref("font.name.serif.el", "Droid Serif"); // not Charis SIL Compact, only has a few Greek chars
3291 pref("font.name.sans-serif.el", "Clear Sans");
3292 pref("font.name.monospace.el", "Droid Sans Mono");
3293 pref("font.name-list.sans-serif.el", "Clear Sans, Roboto, Droid Sans");
3294 
3295 pref("font.name.serif.he", "Droid Serif");
3296 pref("font.name.sans-serif.he", "Clear Sans");
3297 pref("font.name.monospace.he", "Droid Sans Mono");
3298 pref("font.name-list.sans-serif.he", "Droid Sans Hebrew, Clear Sans, Droid Sans");
3299 
3300 pref("font.name.serif.ja", "Charis SIL Compact");
3301 pref("font.name.sans-serif.ja", "Clear Sans");
3302 pref("font.name.monospace.ja", "MotoyaLMaru");
3303 pref("font.name-list.serif.ja", "Droid Serif");
3304 pref("font.name-list.sans-serif.ja", "Clear Sans, Roboto, Droid Sans, MotoyaLMaru, MotoyaLCedar, Droid Sans Japanese");
3305 pref("font.name-list.monospace.ja", "MotoyaLMaru, MotoyaLCedar, Droid Sans Mono");
3306 
3307 pref("font.name.serif.ko", "Charis SIL Compact");
3308 pref("font.name.sans-serif.ko", "Clear Sans");
3309 pref("font.name.monospace.ko", "Droid Sans Mono");
3310 pref("font.name-list.serif.ko", "Droid Serif, HYSerif");
3311 pref("font.name-list.sans-serif.ko", "SmartGothic, NanumGothic, DroidSansFallback, Droid Sans Fallback");
3312 
3313 pref("font.name.serif.th", "Charis SIL Compact");
3314 pref("font.name.sans-serif.th", "Clear Sans");
3315 pref("font.name.monospace.th", "Droid Sans Mono");
3316 pref("font.name-list.serif.th", "Droid Serif");
3317 pref("font.name-list.sans-serif.th", "Droid Sans Thai, Clear Sans, Droid Sans");
3318 
3319 pref("font.name.serif.tr", "Charis SIL Compact");
3320 pref("font.name.sans-serif.tr", "Clear Sans");
3321 pref("font.name.monospace.tr", "Droid Sans Mono");
3322 pref("font.name-list.serif.tr", "Droid Serif");
3323 pref("font.name-list.sans-serif.tr", "Clear Sans, Roboto, Droid Sans");
3324 
3325 pref("font.name.serif.x-baltic", "Charis SIL Compact");
3326 pref("font.name.sans-serif.x-baltic", "Clear Sans");
3327 pref("font.name.monospace.x-baltic", "Droid Sans Mono");
3328 pref("font.name-list.serif.x-baltic", "Droid Serif");
3329 pref("font.name-list.sans-serif.x-baltic", "Clear Sans, Roboto, Droid Sans");
3330 
3331 pref("font.name.serif.x-central-euro", "Charis SIL Compact");
3332 pref("font.name.sans-serif.x-central-euro", "Clear Sans");
3333 pref("font.name.monospace.x-central-euro", "Droid Sans Mono");
3334 pref("font.name-list.serif.x-central-euro", "Droid Serif");
3335 pref("font.name-list.sans-serif.x-central-euro", "Clear Sans, Roboto, Droid Sans");
3336 
3337 pref("font.name.serif.x-cyrillic", "Charis SIL Compact");
3338 pref("font.name.sans-serif.x-cyrillic", "Clear Sans");
3339 pref("font.name.monospace.x-cyrillic", "Droid Sans Mono");
3340 pref("font.name-list.serif.x-cyrillic", "Droid Serif");
3341 pref("font.name-list.sans-serif.x-cyrillic", "Clear Sans, Roboto, Droid Sans");
3342 
3343 pref("font.name.serif.x-unicode", "Charis SIL Compact");
3344 pref("font.name.sans-serif.x-unicode", "Clear Sans");
3345 pref("font.name.monospace.x-unicode", "Droid Sans Mono");
3346 pref("font.name-list.serif.x-unicode", "Droid Serif");
3347 pref("font.name-list.sans-serif.x-unicode", "Clear Sans, Roboto, Droid Sans");
3348 
3349 pref("font.name.serif.x-western", "Charis SIL Compact");
3350 pref("font.name.sans-serif.x-western", "Clear Sans");
3351 pref("font.name.monospace.x-western", "Droid Sans Mono");
3352 pref("font.name-list.serif.x-western", "Droid Serif");
3353 pref("font.name-list.sans-serif.x-western", "Clear Sans, Roboto, Droid Sans");
3354 
3355 pref("font.name.serif.zh-CN", "Charis SIL Compact");
3356 pref("font.name.sans-serif.zh-CN", "Clear Sans");
3357 pref("font.name.monospace.zh-CN", "Droid Sans Mono");
3358 pref("font.name-list.serif.zh-CN", "Droid Serif, Droid Sans Fallback");
3359 pref("font.name-list.sans-serif.zh-CN", "Roboto, Droid Sans, Droid Sans Fallback");
3360 pref("font.name-list.monospace.zh-CN", "Droid Sans Fallback");
3361 
3362 pref("font.name.serif.zh-HK", "Charis SIL Compact");
3363 pref("font.name.sans-serif.zh-HK", "Clear Sans");
3364 pref("font.name.monospace.zh-HK", "Droid Sans Mono");
3365 pref("font.name-list.serif.zh-HK", "Droid Serif, Droid Sans Fallback");
3366 pref("font.name-list.sans-serif.zh-HK", "Roboto, Droid Sans, Droid Sans Fallback");
3367 pref("font.name-list.monospace.zh-HK", "Droid Sans Fallback");
3368 
3369 pref("font.name.serif.zh-TW", "Charis SIL Compact");
3370 pref("font.name.sans-serif.zh-TW", "Clear Sans");
3371 pref("font.name.monospace.zh-TW", "Droid Sans Mono");
3372 pref("font.name-list.serif.zh-TW", "Droid Serif, Droid Sans Fallback");
3373 pref("font.name-list.sans-serif.zh-TW", "Roboto, Droid Sans, Droid Sans Fallback");
3374 pref("font.name-list.monospace.zh-TW", "Droid Sans Fallback");
3375 
3376 // end ! (MOZ_WIDGET_GONK || FXOS_SIMULATOR)
3377 
3378 #endif
3379 
3380 pref("font.size.fixed.ar", 12);
3381 
3382 pref("font.default.el", "sans-serif");
3383 pref("font.size.fixed.el", 12);
3384 
3385 pref("font.size.fixed.he", 12);
3386 
3387 pref("font.minimum-size.th", 13);
3388 
3389 pref("font.default.tr", "sans-serif");
3390 pref("font.size.fixed.tr", 12);
3391 
3392 pref("font.default.x-baltic", "sans-serif");
3393 pref("font.size.fixed.x-baltic", 12);
3394 
3395 pref("font.default.x-central-euro", "sans-serif");
3396 pref("font.size.fixed.x-central-euro", 12);
3397 
3398 pref("font.default.x-cyrillic", "sans-serif");
3399 pref("font.size.fixed.x-cyrillic", 12);
3400 
3401 pref("font.default.x-unicode", "sans-serif");
3402 pref("font.size.fixed.x-unicode", 12);
3403 
3404 pref("font.default.x-western", "sans-serif");
3405 pref("font.size.fixed.x-western", 12);
3406 
3407 # ANDROID || FXOS_SIMUALTOR
3408 #endif
3409 
3410 #ifdef ANDROID
3411 /* PostScript print module prefs */
3412 // pref("print.postscript.enabled",      true);
3413 pref("print.postscript.paper_size",    "letter");
3414 pref("print.postscript.orientation",   "portrait");
3415 pref("print.postscript.print_command", "lpr ${MOZ_PRINTER_NAME:+-P\"$MOZ_PRINTER_NAME\"}");
3416 
3417 // Setting default_level_parent to true makes the default level for popup
3418 // windows "top" instead of "parent".  On GTK2 platform, this is implemented
3419 // with override-redirect windows which is the normal way to implement
3420 // temporary popup windows.  Setting this to false would make the default
3421 // level "parent" which is implemented with managed windows.
3422 // A problem with using managed windows is that metacity sometimes deactivates
3423 // the parent window when the managed popup is shown.
3424 pref("ui.panel.default_level_parent", true);
3425 
3426 pref("mousewheel.system_scroll_override_on_root_content.enabled", false);
3427 
3428 # ANDROID
3429 #endif
3430 
3431 #ifndef ANDROID
3432 #ifndef XP_MACOSX
3433 #ifdef XP_UNIX
3434 // Handled differently under Mac/Windows
3435 pref("network.protocol-handler.warn-external.file", false);
3436 pref("browser.drag_out_of_frame_style", 1);
3437 
3438 // Middle-mouse handling
3439 pref("middlemouse.paste", true);
3440 pref("middlemouse.contentLoadURL", true);
3441 pref("middlemouse.openNewWindow", true);
3442 pref("middlemouse.scrollbarPosition", true);
3443 
3444 // Clipboard behavior
3445 pref("clipboard.autocopy", true);
3446 
3447 pref("browser.urlbar.clickSelectsAll", false);
3448 
3449 // Tab focus model bit field:
3450 // 1 focuses text controls, 2 focuses other form elements, 4 adds links.
3451 // Leave this at the default, 7, to match mozilla1.0-era user expectations.
3452 // pref("accessibility.tabfocus", 1);
3453 
3454 // autocomplete keyboard grab workaround
3455 pref("autocomplete.grab_during_popup", true);
3456 pref("autocomplete.ungrab_during_mode_switch", true);
3457 
3458 // Default to using the system filepicker if possible, but allow
3459 // toggling to use the XUL filepicker
3460 pref("ui.allow_platform_file_picker", true);
3461 
3462 pref("helpers.global_mime_types_file", "/etc/mime.types");
3463 pref("helpers.global_mailcap_file", "/etc/mailcap");
3464 pref("helpers.private_mime_types_file", "~/.mime.types");
3465 pref("helpers.private_mailcap_file", "~/.mailcap");
3466 pref("print.print_command", "lpr ${MOZ_PRINTER_NAME:+-P\"$MOZ_PRINTER_NAME\"}");
3467 pref("print.printer_list", ""); // list of printers, separated by spaces
3468 pref("print.print_reversed", false);
3469 pref("print.print_color", true);
3470 pref("print.print_landscape", false);
3471 pref("print.print_paper_size", 0);
3472 
3473 // print_extra_margin enables platforms to specify an extra gap or margin
3474 // around the content of the page for Print Preview only
3475 pref("print.print_extra_margin", 0); // twips
3476 
3477 // font names
3478 
3479 pref("font.alias-list", "sans,sans-serif,serif,monospace");
3480 
3481 pref("font.size.fixed.ar", 12);
3482 
3483 pref("font.name.serif.el", "serif");
3484 pref("font.name.sans-serif.el", "sans-serif");
3485 pref("font.name.monospace.el", "monospace");
3486 pref("font.size.fixed.el", 12);
3487 
3488 pref("font.name.serif.he", "serif");
3489 pref("font.name.sans-serif.he", "sans-serif");
3490 pref("font.name.monospace.he", "monospace");
3491 pref("font.size.fixed.he", 12);
3492 
3493 pref("font.name.serif.ja", "serif");
3494 pref("font.name.sans-serif.ja", "sans-serif");
3495 pref("font.name.monospace.ja", "monospace");
3496 
3497 pref("font.name.serif.ko", "serif");
3498 pref("font.name.sans-serif.ko", "sans-serif");
3499 pref("font.name.monospace.ko", "monospace");
3500 
3501 pref("font.name.serif.th", "serif");
3502 pref("font.name.sans-serif.th", "sans-serif");
3503 pref("font.minimum-size.th", 13);
3504 pref("font.name.monospace.th", "monospace");
3505 
3506 pref("font.name.serif.tr", "serif");
3507 pref("font.name.sans-serif.tr", "sans-serif");
3508 pref("font.name.monospace.tr", "monospace");
3509 pref("font.size.fixed.tr", 12);
3510 
3511 pref("font.name.serif.x-baltic", "serif");
3512 pref("font.name.sans-serif.x-baltic", "sans-serif");
3513 pref("font.name.monospace.x-baltic", "monospace");
3514 pref("font.size.fixed.x-baltic", 12);
3515 
3516 pref("font.name.serif.x-central-euro", "serif");
3517 pref("font.name.sans-serif.x-central-euro", "sans-serif");
3518 pref("font.name.monospace.x-central-euro", "monospace");
3519 pref("font.size.fixed.x-central-euro", 12);
3520 
3521 pref("font.name.serif.x-cyrillic", "serif");
3522 pref("font.name.sans-serif.x-cyrillic", "sans-serif");
3523 pref("font.name.monospace.x-cyrillic", "monospace");
3524 pref("font.size.fixed.x-cyrillic", 12);
3525 
3526 pref("font.name.serif.x-unicode", "serif");
3527 pref("font.name.sans-serif.x-unicode", "sans-serif");
3528 pref("font.name.monospace.x-unicode", "monospace");
3529 pref("font.size.fixed.x-unicode", 12);
3530 
3531 pref("font.name.serif.x-western", "serif");
3532 pref("font.name.sans-serif.x-western", "sans-serif");
3533 pref("font.name.monospace.x-western", "monospace");
3534 pref("font.size.fixed.x-western", 12);
3535 
3536 pref("font.name.serif.zh-CN", "serif");
3537 pref("font.name.sans-serif.zh-CN", "sans-serif");
3538 pref("font.name.monospace.zh-CN", "monospace");
3539 
3540 // ming_uni.ttf (HKSCS-2001)
3541 // http://www.info.gov.hk/digital21/eng/hkscs/download/uime.exe
3542 pref("font.name.serif.zh-HK", "serif");
3543 pref("font.name.sans-serif.zh-HK", "sans-serif");
3544 pref("font.name.monospace.zh-HK", "monospace");
3545 
3546 // zh-TW
3547 
3548 /* PostScript print module prefs */
3549 // pref("print.postscript.enabled",      true);
3550 pref("print.postscript.paper_size",    "letter");
3551 pref("print.postscript.orientation",   "portrait");
3552 pref("print.postscript.print_command", "lpr ${MOZ_PRINTER_NAME:+-P\"$MOZ_PRINTER_NAME\"}");
3553 
3554 // On GTK2 platform, we should use topmost window level for the default window
3555 // level of <panel> element of XUL. GTK2 has only two window types. One is
3556 // normal top level window, other is popup window. The popup window is always
3557 // topmost window level, therefore, we are using normal top level window for
3558 // non-topmost panel, but it is pretty hacky. On some Window Managers, we have
3559 // 2 problems:
3560 // 1. The non-topmost panel steals focus from its parent window at showing.
3561 // 2. The parent of non-topmost panel is not activated when the panel is hidden.
3562 // So, we have no reasons we should use non-toplevel window for popup.
3563 pref("ui.panel.default_level_parent", true);
3564 
3565 pref("mousewheel.system_scroll_override_on_root_content.enabled", false);
3566 
3567 #if MOZ_WIDGET_GTK == 2
3568 pref("intl.ime.use_simple_context_on_password_field", true);
3569 #else
3570 pref("intl.ime.use_simple_context_on_password_field", false);
3571 #endif
3572 
3573 # XP_UNIX
3574 #endif
3575 #endif
3576 #endif
3577 
3578 #if OS_ARCH==AIX
3579 
3580 // Override default Japanese fonts
3581 pref("font.name.serif.ja", "dt-interface system-jisx0208.1983-0");
3582 pref("font.name.sans-serif.ja", "dt-interface system-jisx0208.1983-0");
3583 pref("font.name.monospace.ja", "dt-interface user-jisx0208.1983-0");
3584 
3585 // Override default Cyrillic fonts
3586 pref("font.name.serif.x-cyrillic", "dt-interface system-iso8859-5");
3587 pref("font.name.sans-serif.x-cyrillic", "dt-interface system-iso8859-5");
3588 pref("font.name.monospace.x-cyrillic", "dt-interface user-iso8859-5");
3589 
3590 // Override default Unicode fonts
3591 pref("font.name.serif.x-unicode", "dt-interface system-ucs2.cjk_japan-0");
3592 pref("font.name.sans-serif.x-unicode", "dt-interface system-ucs2.cjk_japan-0");
3593 pref("font.name.monospace.x-unicode", "dt-interface user-ucs2.cjk_japan-0");
3594 
3595 # AIX
3596 #endif
3597 
3598 #ifdef SOLARIS
3599 
3600 pref("print.postscript.print_command", "lp -c -s ${MOZ_PRINTER_NAME:+-d\"$MOZ_PRINTER_NAME\"}");
3601 pref("print.print_command", "lp -c -s ${MOZ_PRINTER_NAME:+-d\"$MOZ_PRINTER_NAME\"}");
3602 
3603 # Solaris
3604 #endif
3605 
3606 // Login Manager prefs
3607 pref("signon.rememberSignons",              true);
3608 pref("signon.autofillForms",                true);
3609 pref("signon.autologin.proxy",              false);
3610 pref("signon.storeWhenAutocompleteOff",     true);
3611 pref("signon.debug",                        false);
3612 
3613 // Satchel (Form Manager) prefs
3614 pref("browser.formfill.debug",            false);
3615 pref("browser.formfill.enable",           true);
3616 pref("browser.formfill.expire_days",      180);
3617 pref("browser.formfill.saveHttpsForms",   true);
3618 pref("browser.formfill.agedWeight",       2);
3619 pref("browser.formfill.bucketSize",       1);
3620 pref("browser.formfill.maxTimeGroupings", 25);
3621 pref("browser.formfill.timeGroupingSize", 604800);
3622 pref("browser.formfill.boundaryWeight",   25);
3623 pref("browser.formfill.prefixWeight",     5);
3624 
3625 // Zoom prefs
3626 pref("browser.zoom.full", false);
3627 pref("zoom.minPercent", 30);
3628 pref("zoom.maxPercent", 300);
3629 pref("toolkit.zoomManager.zoomValues", ".3,.5,.67,.8,.9,1,1.1,1.2,1.33,1.5,1.7,2,2.4,3");
3630 
3631 /**
3632  * Specify whether or not the browser should generate a reflow event on zoom.
3633  * For a pan-and-zoom ui on mobile, it is sometimes desirable for a zoom event
3634  * to limit the max line box width of text in order to enable easier reading
3635  * of large amounts of text.
3636  *
3637  * If enabled, this will limit the max line box width of all text on a page to
3638  * the viewport width (also generating a reflow), after a zoom event occurs.
3639  *
3640  * By default, this is not enabled.
3641  */
3642 pref("browser.zoom.reflowOnZoom", false);
3643 
3644 /**
3645  * Specifies the number of milliseconds to wait after a given reflow-on-zoom
3646  * operation has completed before allowing another one to be triggered. This
3647  * is to prevent a buildup of reflow-zoom events.
3648  */
3649 pref("browser.zoom.reflowZoom.reflowTimeout", 500);
3650 
3651 /**
3652  * Controls whether or not the reflow-on-zoom behavior happens on page load.
3653  * This can be enabled in conjunction with the above preference (reflowOnZoom),
3654  * but has no effect if browser.zoom.reflowOnZoom is disabled.
3655  *
3656  * Note that this should be turned off only in cases where debugging of the
3657  * reflow-on-zoom feature is necessary, and enabling the feature during
3658  * a page load inhbits this debugging.
3659  */
3660 pref("browser.zoom.reflowZoom.reflowTextOnPageLoad", true);
3661 
3662 // Image-related prefs
3663 // The maximum size, in bytes, of the decoded images we cache
3664 pref("image.cache.size", 5242880);
3665 // A weight, from 0-1000, to place on time when comparing to size.
3666 // Size is given a weight of 1000 - timeweight.
3667 pref("image.cache.timeweight", 500);
3668 
3669 // The default Accept header sent for images loaded over HTTP(S)
3670 pref("image.http.accept", "image/png,image/*;q=0.8,*/*;q=0.5");
3671 
3672 // Whether we do high-quality image downscaling. OS X natively supports
3673 // high-quality image scaling.
3674 #ifdef XP_MACOSX
3675 pref("image.high_quality_downscaling.enabled", false);
3676 #else
3677 pref("image.high_quality_downscaling.enabled", true);
3678 #endif
3679 
3680 // The minimum percent downscaling we'll use high-quality downscaling on,
3681 // interpreted as a floating-point number / 1000.
3682 pref("image.high_quality_downscaling.min_factor", 1000);
3683 
3684 // The maximum memory size which we'll use high-quality uspcaling on,
3685 // interpreted as number of decoded bytes.
3686 pref("image.high_quality_upscaling.max_size", 20971520);
3687 
3688 //
3689 // Image memory management prefs
3690 //
3691 
3692 // Discards inactive image frames and re-decodes them on demand from
3693 // compressed data.
3694 pref("image.mem.discardable", true);
3695 
3696 // Prevents images from automatically being decoded on load, instead allowing
3697 // them to be decoded on demand when they are drawn.
3698 pref("image.mem.decodeondraw", true);
3699 
3700 // Allows image locking of decoded image data in content processes.
3701 pref("image.mem.allow_locking_in_content_processes", true);
3702 
3703 // Minimum timeout for image discarding (in milliseconds). The actual time in
3704 // which an image must inactive for it to be discarded will vary between this
3705 // value and twice this value.
3706 //
3707 // This used to be 120 seconds, but having it that high causes our working
3708 // set to grow very large. Switching it back to 10 seconds will hopefully
3709 // be better.
3710 pref("image.mem.min_discard_timeout_ms", 10000);
3711 
3712 // Chunk size for calls to the image decoders
3713 pref("image.mem.decode_bytes_at_a_time", 16384);
3714 
3715 // The longest time we can spend in an iteration of an async decode
3716 pref("image.mem.max_ms_before_yield", 5);
3717 
3718 // The maximum amount of decoded image data we'll willingly keep around (we
3719 // might keep around more than this, but we'll try to get down to this value).
3720 pref("image.mem.max_decoded_image_kb", 51200);
3721 
3722 // Hard limit for the amount of decoded image data, 0 means we don't have the
3723 // hard limit for it.
3724 pref("image.mem.hard_limit_decoded_image_kb", 0);
3725 
3726 // Minimum timeout for expiring unused images from the surface cache, in
3727 // milliseconds. This controls how long we store cached temporary surfaces.
3728 pref("image.mem.surfacecache.min_expiration_ms", 60000); // 60ms
3729 
3730 // Maximum size for the surface cache, in kilobytes.
3731 pref("image.mem.surfacecache.max_size_kb", 102400); // 100MB
3732 
3733 // The surface cache's size, within the constraints of the maximum size set
3734 // above, is determined using a formula based on system capabilities like memory
3735 // size. The size factor is used to tune this formula. Larger size factors
3736 // result in smaller caches. The default should be a good balance for most
3737 // systems.
3738 pref("image.mem.surfacecache.size_factor", 64);
3739 
3740 // Whether we decode images on multiple background threads rather than the
3741 // foreground thread.
3742 pref("image.multithreaded_decoding.enabled", true);
3743 
3744 // How many threads we'll use for multithreaded decoding. If < 0, will be
3745 // automatically determined based on the system's number of cores.
3746 pref("image.multithreaded_decoding.limit", -1);
3747 
3748 // Limit for the canvas image cache. 0 means we don't limit the size of the
3749 // cache.
3750 pref("canvas.image.cache.limit", 0);
3751 
3752 // How many images to eagerly decode on a given page. 0 means "no limit".
3753 pref("image.onload.decode.limit", 0);
3754 
3755 // WebGL prefs
3756 #ifdef ANDROID
3757 // Disable MSAA on mobile.
3758 pref("gl.msaa-level", 0);
3759 #else
3760 pref("gl.msaa-level", 2);
3761 #endif
3762 pref("webgl.force-enabled", false);
3763 pref("webgl.disabled", false);
3764 pref("webgl.shader_validator", true);
3765 pref("webgl.prefer-native-gl", false);
3766 pref("webgl.min_capability_mode", false);
3767 pref("webgl.disable-extensions", false);
3768 pref("webgl.msaa-force", false);
3769 pref("webgl.prefer-16bpp", false);
3770 pref("webgl.default-no-alpha", false);
3771 pref("webgl.force-layers-readback", false);
3772 pref("webgl.lose-context-on-memory-preasure", false);
3773 pref("webgl.can-lose-context-in-foreground", true);
3774 pref("webgl.restore-context-when-visible", true);
3775 pref("webgl.max-warnings-per-context", 32);
3776 pref("webgl.enable-draft-extensions", false);
3777 pref("webgl.enable-privileged-extensions", false);
3778 #ifdef MOZ_WIDGET_GONK
3779 pref("gfx.gralloc.fence-with-readpixels", false);
3780 #endif
3781 
3782 
3783 // Stagefright prefs
3784 pref("stagefright.force-enabled", false);
3785 pref("stagefright.disabled", false);
3786 
3787 #ifdef XP_WIN
3788 // The default TCP send window on Windows is too small, and autotuning only occurs on receive
3789 pref("network.tcp.sendbuffer", 131072);
3790 #endif
3791 // TCP Keepalive
3792 pref("network.tcp.keepalive.enabled", true);
3793 // Default idle time before first TCP keepalive probe; same time for interval
3794 // between successful probes. Can be overridden in socket transport API.
3795 // Win, Linux and Mac.
3796 pref("network.tcp.keepalive.idle_time", 600); // seconds; 10 mins
3797 // Default timeout for retransmission of unack'd keepalive probes.
3798 // Win and Linux only; not configurable on Mac.
3799 #if defined(XP_UNIX) && !defined(XP_MACOSX) || defined(XP_WIN)
3800 pref("network.tcp.keepalive.retry_interval", 1); // seconds
3801 #endif
3802 // Default maximum probe retransmissions.
3803 // Linux only; not configurable on Win and Mac; fixed at 10 and 8 respectively.
3804 #ifdef XP_UNIX && !defined(XP_MACOSX)
3805 pref("network.tcp.keepalive.probe_count", 4);
3806 #endif
3807 
3808 // Whether to disable acceleration for all widgets.
3809 pref("layers.acceleration.disabled", false);
3810 // Preference that when switched at runtime will run a series of benchmarks
3811 // and output the result to stderr.
3812 pref("layers.bench.enabled", false);
3813 
3814 // Whether to force acceleration on, ignoring blacklists.
3815 #ifdef ANDROID
3816 // bug 838603 -- on Android, accidentally blacklisting OpenGL layers
3817 // means a startup crash for everyone.
3818 pref("layers.acceleration.force-enabled", true);
3819 #else
3820 pref("layers.acceleration.force-enabled", false);
3821 #endif
3822 
3823 pref("layers.acceleration.draw-fps", false);
3824 
3825 pref("layers.dump", false);
3826 pref("layers.draw-borders", false);
3827 pref("layers.draw-tile-borders", false);
3828 pref("layers.draw-bigimage-borders", false);
3829 pref("layers.frame-counter", false);
3830 pref("layers.enable-tiles", false);
3831 pref("layers.low-precision-buffer", false);
3832 pref("layers.tile-width", 256);
3833 pref("layers.tile-height", 256);
3834 // Max number of layers per container. See Overwrite in mobile prefs.
3835 pref("layers.max-active", -1);
3836 // When a layer is moving it will add a scroll graph to measure the smoothness
3837 // of the movement. NOTE: This pref triggers composites to refresh
3838 // the graph.
3839 pref("layers.scroll-graph", false);
3840 
3841 // Set the default values, and then override per-platform as needed
3842 pref("layers.offmainthreadcomposition.enabled", false);
3843 // Compositor target frame rate. NOTE: If vsync is enabled the compositor
3844 // frame rate will still be capped.
3845 // -1 -> default (match layout.frame_rate or 60 FPS)
3846 // 0  -> full-tilt mode: Recomposite even if not transaction occured.
3847 pref("layers.offmainthreadcomposition.frame-rate", -1);
3848 
3849 // Asynchonous video compositing using the ImageBridge IPDL protocol.
3850 // requires off-main-thread compositing.
3851 pref("layers.async-video.enabled", true);
3852 pref("layers.async-video-oop.enabled",true);
3853 
3854 #ifdef XP_WIN
3855 pref("layers.offmainthreadcomposition.enabled", true);
3856 // XXX - see bug 1009616
3857 pref("layers.async-video-oop.enabled", false);
3858 #endif
3859 
3860 #ifdef MOZ_WIDGET_QT
3861 pref("layers.offmainthreadcomposition.enabled", true);
3862 #endif
3863 
3864 #ifdef XP_MACOSX
3865 pref("layers.offmainthreadcomposition.enabled", true);
3866 #endif
3867 
3868 // ANDROID covers android and b2g
3869 #ifdef ANDROID
3870 pref("layers.offmainthreadcomposition.enabled", true);
3871 #endif
3872 
3873 // same effect as layers.offmainthreadcomposition.enabled, but specifically for
3874 // use with tests.
3875 pref("layers.offmainthreadcomposition.testing.enabled", false);
3876 
3877 // whether to allow use of the basic compositor
3878 pref("layers.offmainthreadcomposition.force-basic", false);
3879 
3880 // Whether to animate simple opacity and transforms on the compositor
3881 pref("layers.offmainthreadcomposition.async-animations", false);
3882 
3883 // Whether to log information about off main thread animations to stderr
3884 pref("layers.offmainthreadcomposition.log-animations", false);
3885 
3886 pref("layers.bufferrotation.enabled", true);
3887 
3888 pref("layers.componentalpha.enabled", true);
3889 
3890 #ifdef ANDROID
3891 pref("gfx.apitrace.enabled",false);
3892 #endif
3893 
3894 #ifdef MOZ_X11
3895 #ifdef MOZ_WIDGET_GTK
3896 pref("gfx.xrender.enabled",true);
3897 #endif
3898 #endif
3899 
3900 #ifdef XP_WIN
3901 // Whether to disable the automatic detection and use of direct2d.
3902 pref("gfx.direct2d.disabled", false);
3903 
3904 // Whether to attempt to enable Direct2D regardless of automatic detection or
3905 // blacklisting
3906 pref("gfx.direct2d.force-enabled", false);
3907 
3908 pref("layers.prefer-opengl", false);
3909 pref("layers.prefer-d3d9", false);
3910 #endif
3911 
3912 // Force all possible layers to be always active layers
3913 pref("layers.force-active", false);
3914 
3915 // Enable/Disable the geolocation API for content
3916 pref("geo.enabled", true);
3917 
3918 // Enable/Disable the orientation API for content
3919 pref("device.sensors.enabled", true);
3920 
3921 // Enable/Disable the device storage API for content
3922 pref("device.storage.enabled", false);
3923 
3924 // Toggle which thread the HTML5 parser uses for stream parsing
3925 pref("html5.offmainthread", true);
3926 // Time in milliseconds between the time a network buffer is seen and the
3927 // timer firing when the timer hasn't fired previously in this parse in the
3928 // off-the-main-thread HTML5 parser.
3929 pref("html5.flushtimer.initialdelay", 120);
3930 // Time in milliseconds between the time a network buffer is seen and the
3931 // timer firing when the timer has already fired previously in this parse.
3932 pref("html5.flushtimer.subsequentdelay", 120);
3933 
3934 // Push/Pop/Replace State prefs
3935 pref("browser.history.allowPushState", true);
3936 pref("browser.history.allowReplaceState", true);
3937 pref("browser.history.allowPopState", true);
3938 pref("browser.history.maxStateObjectSize", 655360);
3939 
3940 // XPInstall prefs
3941 pref("xpinstall.whitelist.required", true);
3942 pref("extensions.alwaysUnpack", false);
3943 pref("extensions.minCompatiblePlatformVersion", "2.0");
3944 
3945 pref("network.buffer.cache.count", 24);
3946 pref("network.buffer.cache.size",  32768);
3947 
3948 // Desktop Notification
3949 pref("notification.feature.enabled", false);
3950 
3951 // Web Notification
3952 pref("dom.webnotifications.enabled", true);
3953 
3954 // Alert animation effect, name is disableSlidingEffect for backwards-compat.
3955 pref("alerts.disableSlidingEffect", false);
3956 
3957 // DOM full-screen API.
3958 pref("full-screen-api.enabled", false);
3959 pref("full-screen-api.allow-trusted-requests-only", true);
3960 pref("full-screen-api.content-only", false);
3961 pref("full-screen-api.pointer-lock.enabled", true);
3962 
3963 // DOM idle observers API
3964 pref("dom.idle-observers-api.enabled", true);
3965 
3966 // Time limit, in milliseconds, for EventStateManager::IsHandlingUserInput().
3967 // Used to detect long running handlers of user-generated events.
3968 pref("dom.event.handling-user-input-time-limit", 1000);
3969 
3970 // Whether we should layerize all animated images (if otherwise possible).
3971 pref("layout.animated-image-layers.enabled", false);
3972 
3973 pref("dom.vibrator.enabled", true);
3974 pref("dom.vibrator.max_vibrate_ms", 10000);
3975 pref("dom.vibrator.max_vibrate_list_len", 128);
3976 
3977 // Battery API
3978 pref("dom.battery.enabled", true);
3979 
3980 // Image srcset
3981 pref("dom.image.srcset.enabled", false);
3982 
3983 // <picture> element and sizes
3984 pref("dom.image.picture.enabled", false);
3985 
3986 // WebSMS
3987 pref("dom.sms.enabled", false);
3988 // Enable Latin characters replacement with corresponding ones in GSM SMS
3989 // 7-bit default alphabet.
3990 pref("dom.sms.strict7BitEncoding", false);
3991 pref("dom.sms.requestStatusReport", true);
3992 // Numeric default service id for SMS API calls with |serviceId| parameter
3993 // omitted.
3994 pref("dom.sms.defaultServiceId", 0);
3995 
3996 // WebContacts
3997 pref("dom.mozContacts.enabled", false);
3998 pref("dom.navigator-property.disable.mozContacts", true);
3999 pref("dom.global-constructor.disable.mozContact", true);
4000 
4001 // WebAlarms
4002 pref("dom.mozAlarms.enabled", false);
4003 
4004 // SimplePush
4005 pref("services.push.enabled", false);
4006 
4007 // WebNetworkStats
4008 pref("dom.mozNetworkStats.enabled", false);
4009 
4010 // WebSettings
4011 pref("dom.mozSettings.enabled", false);
4012 pref("dom.mozPermissionSettings.enabled", false);
4013 
4014 // W3C touch events
4015 // 0 - disabled, 1 - enabled, 2 - autodetect (win)
4016 #ifdef XP_WIN
4017 pref("dom.w3c_touch_events.enabled", 2);
4018 #endif
4019 
4020 // W3C draft pointer events
4021 pref("dom.w3c_pointer_events.enabled", false);
4022 
4023 // W3C touch-action css property (related to touch and pointer events)
4024 pref("layout.css.touch_action.enabled", false);
4025 
4026 // enable JS dump() function.
4027 pref("browser.dom.window.dump.enabled", false);
4028 
4029 // SPS Profiler
4030 pref("profiler.enabled", false);
4031 pref("profiler.interval", 10);
4032 pref("profiler.entries", 100000);
4033 
4034 #if defined(MOZ_WIDGET_GONK) || defined(MOZ_WIDGET_ANDROID)
4035 // Network Information API
4036 pref("dom.netinfo.enabled", true);
4037 #else
4038 pref("dom.netinfo.enabled", false);
4039 #endif
4040 
4041 #ifdef XP_WIN
4042 // On 32-bit Windows, fire a low-memory notification if we have less than this
4043 // many mb of virtual address space available.
4044 pref("memory.low_virtual_memory_threshold_mb", 128);
4045 
4046 // On Windows 32- or 64-bit, fire a low-memory notification if we have less
4047 // than this many mb of commit space (physical memory plus page file) left.
4048 pref("memory.low_commit_space_threshold_mb", 128);
4049 
4050 // On Windows 32- or 64-bit, fire a low-memory notification if we have less
4051 // than this many mb of physical memory available on the whole machine.
4052 pref("memory.low_physical_memory_threshold_mb", 0);
4053 
4054 // On Windows 32- or 64-bit, don't fire a low-memory notification because of
4055 // low available physical memory or low commit space more than once every
4056 // low_memory_notification_interval_ms.
4057 pref("memory.low_memory_notification_interval_ms", 10000);
4058 #endif
4059 
4060 // How long must we wait before declaring that a window is a "ghost" (i.e., a
4061 // likely leak)?  This should be longer than it usually takes for an eligible
4062 // window to be collected via the GC/CC.
4063 pref("memory.ghost_window_timeout_seconds", 60);
4064 
4065 // Disable freeing dirty pages when minimizing memory.
4066 pref("memory.free_dirty_pages", false);
4067 
4068 // Disable the Linux-specific, system-wide memory reporter.
4069 #ifdef XP_LINUX
4070 pref("memory.system_memory_reporter", false);
4071 #endif
4072 
4073 // Don't dump memory reports on OOM, by default.
4074 pref("memory.dump_reports_on_oom", false);
4075 
4076 // Number of stack frames to capture in createObjectURL for about:memory.
4077 pref("memory.blob_report.stack_frames", 0);
4078 
4079 // comma separated list of domain origins (e.g. https://domain.com) that still
4080 // need localStorage in the frameworker
4081 pref("social.whitelist", "https://mozsocial.cliqz.com");
4082 // comma separated list of domain origins (e.g. https://domain.com) for
4083 // directory websites (e.g. AMO) that can install providers for other sites
4084 pref("social.directories", "https://activations.cdn.mozilla.net");
4085 // remote-install allows any website to activate a provider, with extended UI
4086 // notifying user of installation. we can later pref off remote install if
4087 // necessary. This does not affect whitelisted and directory installs.
4088 pref("social.remote-install.enabled", true);
4089 pref("social.toast-notifications.enabled", true);
4090 
4091 // Disable idle observer fuzz, because only privileged content can access idle
4092 // observers (bug 780507).
4093 pref("dom.idle-observers-api.fuzz_time.disabled", true);
4094 
4095 // Lowest localId for apps.
4096 pref("dom.mozApps.maxLocalId", 1000);
4097 
4098 // XXX Security: You CANNOT safely add a new app store for
4099 // installing privileged apps just by modifying this pref and
4100 // adding the signing cert for that store to the cert trust
4101 // database. *Any* origin listed can install apps signed with
4102 // *any* certificate trusted; we don't try to maintain a strong
4103 // association between certificate with installOrign. The
4104 // expectation here is that in production builds the pref will
4105 // contain exactly one origin. However, in custom development
4106 // builds it may contain more than one origin so we can test
4107 // different stages (dev, staging, prod) of the same app store.
4108 pref("dom.mozApps.signed_apps_installable_from", "https://marketplace.firefox.com");
4109 
4110 // Whether or not to dump mozApps debug messages to the console.
4111 // Only checked on startup, so restart after changing this pref.
4112 // Ignored on Android, where we always report debug messages because it's
4113 // unnecessary to restrict reporting, per bug 1003469.
4114 pref("dom.mozApps.debug", false);
4115 
4116 // Minimum delay in milliseconds between network activity notifications (0 means
4117 // no notifications). The delay is the same for both download and upload, though
4118 // they are handled separately. This pref is only read once at startup:
4119 // a restart is required to enable a new value.
4120 pref("network.activity.blipIntervalMilliseconds", 0);
4121 
4122 // If true, reuse the same global for everything loaded by the component loader
4123 // (JS components, JSMs, etc).  This saves memory, but makes it possible for
4124 // the scripts to interfere with each other.  A restart is required for this
4125 // to take effect.
4126 pref("jsloader.reuseGlobal", false);
4127 
4128 // When we're asked to take a screenshot, don't wait more than 2000ms for the
4129 // event loop to become idle before actually taking the screenshot.
4130 pref("dom.browserElement.maxScreenshotDelayMS", 2000);
4131 
4132 // Whether we should show the placeholder when the element is focused but empty.
4133 pref("dom.placeholder.show_on_focus", true);
4134 
4135 // MMS UA Profile settings
4136 pref("wap.UAProf.url", "");
4137 pref("wap.UAProf.tagname", "x-wap-profile");
4138 
4139 // MMS version 1.1 = 0x11 (or decimal 17)
4140 // MMS version 1.3 = 0x13 (or decimal 19)
4141 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.34
4142 pref("dom.mms.version", 19);
4143 
4144 pref("dom.mms.requestStatusReport", true);
4145 
4146 // Retrieval mode for MMS
4147 // manual: Manual retrieval mode.
4148 // automatic: Automatic retrieval mode even in roaming.
4149 // automatic-home: Automatic retrieval mode in home network.
4150 // never: Never retrieval mode.
4151 pref("dom.mms.retrieval_mode", "manual");
4152 
4153 pref("dom.mms.sendRetryCount", 3);
4154 pref("dom.mms.sendRetryInterval", "10000,60000,180000");
4155 
4156 pref("dom.mms.retrievalRetryCount", 4);
4157 pref("dom.mms.retrievalRetryIntervals", "60000,300000,600000,1800000");
4158 // Numeric default service id for MMS API calls with |serviceId| parameter
4159 // omitted.
4160 pref("dom.mms.defaultServiceId", 0);
4161 // Debug enabler for MMS.
4162 pref("mms.debugging.enabled", false);
4163 
4164 // Request read report while sending MMS.
4165 pref("dom.mms.requestReadReport", true);
4166 
4167 // Number of RadioInterface instances to create.
4168 pref("ril.numRadioInterfaces", 0);
4169 
4170 // If the user puts a finger down on an element and we think the user
4171 // might be executing a pan gesture, how long do we wait before
4172 // tentatively deciding the gesture is actually a tap and activating
4173 // the target element?
4174 pref("ui.touch_activation.delay_ms", 100);
4175 
4176 // If the user has clicked an element, how long do we keep the
4177 // :active state before it is cleared by the mouse sequences
4178 // fired after a touchstart/touchend.
4179 pref("ui.touch_activation.duration_ms", 10);
4180 
4181 // nsMemoryInfoDumper can watch a fifo in the temp directory and take various
4182 // actions when the fifo is written to.  Disable this in general.
4183 pref("memory_info_dumper.watch_fifo.enabled", false);
4184 
4185 #ifdef MOZ_CAPTIVEDETECT
4186 pref("captivedetect.maxWaitingTime", 5000);
4187 pref("captivedetect.pollingTime", 3000);
4188 pref("captivedetect.maxRetryCount", 5);
4189 #endif
4190 
4191 #ifdef RELEASE_BUILD
4192 pref("dom.forms.inputmode", false);
4193 #else
4194 pref("dom.forms.inputmode", true);
4195 #endif
4196 
4197 // InputMethods for soft keyboards in B2G
4198 pref("dom.mozInputMethod.enabled", false);
4199 
4200 // DataStore is disabled by default
4201 pref("dom.datastore.enabled", false);
4202 
4203 // Telephony API
4204 #ifdef MOZ_B2G_RIL
4205 pref("dom.telephony.enabled", true);
4206 #else
4207 pref("dom.telephony.enabled", false);
4208 #endif
4209 // Numeric default service id for WebTelephony API calls with |serviceId|
4210 // parameter omitted.
4211 pref("dom.telephony.defaultServiceId", 0);
4212 
4213 // Cell Broadcast API
4214 #ifdef MOZ_B2G_RIL
4215 pref("dom.cellbroadcast.enabled", true);
4216 #else
4217 pref("dom.cellbroadcast.enabled", false);
4218 #endif
4219 
4220 // ICC API
4221 #ifdef MOZ_B2G_RIL
4222 pref("dom.icc.enabled", true);
4223 #else
4224 pref("dom.icc.enabled", false);
4225 #endif
4226 
4227 // Mobile Connection API
4228 #ifdef MOZ_B2G_RIL
4229 pref("dom.mobileconnection.enabled", true);
4230 #else
4231 pref("dom.mobileconnection.enabled", false);
4232 #endif
4233 
4234 // Voice Mail API
4235 #ifdef MOZ_B2G_RIL
4236 pref("dom.voicemail.enabled", true);
4237 #else
4238 pref("dom.voicemail.enabled", false);
4239 #endif
4240 // Numeric default service id for Voice