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