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