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