1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/metro/profile/metro.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,677 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#filter substitution 1.9 + 1.10 +#ifdef DEBUG 1.11 +// disable content and content script caching 1.12 +pref("nglayout.debug.disable_xul_cache", true); 1.13 +pref("nglayout.debug.disable_xul_fastload", true); 1.14 +pref("devtools.errorconsole.enabled", true); 1.15 +pref("devtools.chrome.enabled", true); 1.16 +#else 1.17 +pref("devtools.errorconsole.enabled", false); 1.18 +pref("devtools.chrome.enabled", false); 1.19 +#endif 1.20 + 1.21 +// Automatically submit crash reports 1.22 +#ifdef RELEASE_BUILD 1.23 +pref("app.crashreporter.autosubmit", false); 1.24 +pref("app.crashreporter.submitURLs", false); 1.25 +#else 1.26 +// For Nightly and Aurora we turn this on by default 1.27 +pref("app.crashreporter.autosubmit", true); 1.28 +pref("app.crashreporter.submitURLs", false); 1.29 +#endif 1.30 +// Has the user been prompted about crash reporting? 1.31 +pref("app.crashreporter.prompted", false); 1.32 + 1.33 +// Debug prefs, see input.js 1.34 +pref("metro.debug.colorizeInputOverlay", false); 1.35 +pref("metro.debug.selection.displayRanges", false); 1.36 +pref("metro.debug.selection.dumpRanges", false); 1.37 +pref("metro.debug.selection.dumpEvents", false); 1.38 + 1.39 +// Private browsing is disabled by default until implementation and testing are complete 1.40 +pref("metro.private_browsing.enabled", false); 1.41 + 1.42 +// Enable tab-modal prompts 1.43 +pref("prompts.tab_modal.enabled", true); 1.44 + 1.45 +// NewTabUtils pref related to top site thumbnail updating. 1.46 +pref("browser.newtabpage.enabled", true); 1.47 + 1.48 +// Enable off main thread compositing 1.49 +pref("layers.offmainthreadcomposition.enabled", true); 1.50 +pref("layers.async-pan-zoom.enabled", true); 1.51 +pref("layers.componentalpha.enabled", false); 1.52 + 1.53 +// Prefs to control the async pan/zoom behaviour 1.54 +pref("apz.touch_start_tolerance", "0.1"); // dpi * tolerance = pixel threshold 1.55 +pref("apz.pan_repaint_interval", 50); // prefer 20 fps 1.56 +pref("apz.fling_repaint_interval", 50); // prefer 20 fps 1.57 +pref("apz.fling_stopped_threshold", "0.2"); 1.58 +pref("apz.x_skate_size_multiplier", "2.5"); 1.59 +pref("apz.y_skate_size_multiplier", "2.5"); 1.60 +pref("apz.min_skate_speed", "10.0"); 1.61 +// 0 = free, 1 = standard, 2 = sticky 1.62 +pref("apz.axis_lock_mode", 2); 1.63 +pref("apz.cross_slide.enabled", true); 1.64 +pref("apz.subframe.enabled", true); 1.65 + 1.66 +// Enable Microsoft TSF support by default for imes. 1.67 +pref("intl.tsf.enable", true); 1.68 +pref("intl.tsf.support_imm", false); 1.69 +pref("intl.tsf.hack.atok.create_native_caret", false); 1.70 + 1.71 +pref("general.autoScroll", true); 1.72 +pref("general.smoothScroll", true); 1.73 +pref("general.smoothScroll.durationToIntervalRatio", 200); 1.74 +pref("mousewheel.enable_pixel_scrolling", true); 1.75 + 1.76 +// For browser.xml binding 1.77 +// 1.78 +// cacheRatio* is a ratio that determines the amount of pixels to cache. The 1.79 +// ratio is multiplied by the viewport width or height to get the displayport's 1.80 +// width or height, respectively. 1.81 +// 1.82 +// (divide integer value by 1000 to get the ratio) 1.83 +// 1.84 +// For instance: cachePercentageWidth is 1500 1.85 +// viewport height is 500 1.86 +// => display port height will be 500 * 1.5 = 750 1.87 +// 1.88 +pref("toolkit.browser.cacheRatioWidth", 2000); 1.89 +pref("toolkit.browser.cacheRatioHeight", 3000); 1.90 + 1.91 +// How long before a content view (a handle to a remote scrollable object) 1.92 +// expires. 1.93 +pref("toolkit.browser.contentViewExpire", 3000); 1.94 + 1.95 + 1.96 +pref("toolkit.defaultChromeURI", "chrome://browser/content/browser.xul"); 1.97 +pref("browser.chromeURL", "chrome://browser/content/"); 1.98 + 1.99 +pref("browser.tabs.remote", false); 1.100 + 1.101 +// Telemetry 1.102 +#ifdef MOZ_TELEMETRY_ON_BY_DEFAULT 1.103 +pref("toolkit.telemetry.enabledPreRelease", true); 1.104 +#else 1.105 +pref("toolkit.telemetry.enabled", true); 1.106 +#endif 1.107 +pref("toolkit.telemetry.prompted", 2); 1.108 + 1.109 +pref("toolkit.screen.lock", false); 1.110 + 1.111 +// From libpref/src/init/all.js. Disabling text zoom in favor of APZ zoom. See bug 936940. 1.112 +pref("zoom.minPercent", 100); 1.113 +pref("zoom.maxPercent", 100); 1.114 +pref("toolkit.zoomManager.zoomValues", "1"); 1.115 + 1.116 +// Device pixel to CSS px ratio, in percent. Set to -1 to calculate based on display density. 1.117 +pref("browser.viewport.scaleRatio", -1); 1.118 + 1.119 +// use long press to display a context menu 1.120 +pref("ui.click_hold_context_menus", false); 1.121 + 1.122 +// offline cache prefs 1.123 +pref("browser.offline-apps.notify", true); 1.124 + 1.125 +// protocol warning prefs 1.126 +pref("network.protocol-handler.warn-external.tel", false); 1.127 +pref("network.protocol-handler.warn-external.mailto", false); 1.128 +pref("network.protocol-handler.warn-external.vnd.youtube", false); 1.129 +pref("network.protocol-handler.warn-external.ms-windows-store", false); 1.130 +pref("network.protocol-handler.external.ms-windows-store", true); 1.131 + 1.132 +/* startui prefs */ 1.133 +// display the overlay nav buttons 1.134 +pref("browser.display.overlaynavbuttons", true); 1.135 +// max number of top site tiles to display in the startui 1.136 +pref("browser.display.startUI.topsites.maxresults", 8); 1.137 +// max items for the bookmarks compartment in the startui 1.138 +pref("browser.display.startUI.bookmarks.maxresults", 16); 1.139 +// max items for the history compartment in the startui 1.140 +pref("browser.display.startUI.history.maxresults", 16); 1.141 +// Number of times to display firstrun instructions on new tab page 1.142 +pref("browser.firstrun.count", 3); 1.143 +// Has the content first run been dismissed 1.144 +pref("browser.firstrun-content.dismissed", false); 1.145 + 1.146 +// Backspace and Shift+Backspace behavior 1.147 +// 0 goes Back/Forward 1.148 +// 1 act like PgUp/PgDown 1.149 +// 2 and other values, nothing 1.150 +pref("browser.backspace_action", 0); 1.151 + 1.152 +// session history 1.153 +pref("browser.sessionhistory.max_entries", 50); 1.154 + 1.155 +// On startup, don't automatically restore tabs 1.156 +pref("browser.startup.page", 1); 1.157 + 1.158 +/* session store */ 1.159 +pref("browser.sessionstore.resume_from_crash", true); 1.160 +pref("browser.sessionstore.resume_session_once", false); 1.161 +pref("browser.sessionstore.resume_from_crash_timeout", 60); // minutes 1.162 +// minimal interval between two save operations in milliseconds 1.163 +pref("browser.sessionstore.interval", 15000); // milliseconds 1.164 +// maximum amount of POSTDATA to be saved in bytes per history entry (-1 = all of it) 1.165 +// (NB: POSTDATA will be saved either entirely or not at all) 1.166 +pref("browser.sessionstore.postdata", 0); 1.167 +// on which sites to save text data, POSTDATA and cookies 1.168 +// 0 = everywhere, 1 = unencrypted sites, 2 = nowhere 1.169 +pref("browser.sessionstore.privacy_level", 0); 1.170 +// the same as browser.sessionstore.privacy_level, but for saving deferred session data 1.171 +pref("browser.sessionstore.privacy_level_deferred", 1); 1.172 +// how many tabs can be reopened (per window) 1.173 +pref("browser.sessionstore.max_tabs_undo", 10); 1.174 +// number of crashes that can occur before the about:sessionrestore page is displayed 1.175 +// (this pref has no effect if more than 6 hours have passed since the last crash) 1.176 +pref("browser.sessionstore.max_resumed_crashes", 1); 1.177 +// restore_on_demand overrides MAX_CONCURRENT_TAB_RESTORES (sessionstore constant) 1.178 +// and restore_hidden_tabs. When true, tabs will not be restored until they are 1.179 +// focused (also applies to tabs that aren't visible). When false, the values 1.180 +// for MAX_CONCURRENT_TAB_RESTORES and restore_hidden_tabs are respected. 1.181 +// Selected tabs are always restored regardless of this pref. 1.182 +pref("browser.sessionstore.restore_on_demand", true); 1.183 + 1.184 +/* these should help performance */ 1.185 +pref("mozilla.widget.force-24bpp", true); 1.186 +pref("mozilla.widget.use-buffer-pixmap", true); 1.187 +pref("mozilla.widget.disable-native-theme", false); 1.188 +pref("layout.reflow.synthMouseMove", false); 1.189 + 1.190 +/* "Preview" of framerate increase for animations, discussed in 710563. */ 1.191 +pref("layout.frame_rate.precise", true); 1.192 + 1.193 +/* download manager (don't show the window or alert) */ 1.194 +pref("browser.download.useDownloadDir", true); 1.195 +pref("browser.download.folderList", 1); // Default to ~/Downloads 1.196 +pref("browser.download.manager.showAlertOnComplete", false); 1.197 +pref("browser.download.manager.showAlertInterval", 2000); 1.198 +pref("browser.download.manager.retention", 2); 1.199 +pref("browser.download.manager.showWhenStarting", false); 1.200 +pref("browser.download.manager.closeWhenDone", true); 1.201 +pref("browser.download.manager.openDelay", 0); 1.202 +pref("browser.download.manager.focusWhenStarting", false); 1.203 +pref("browser.download.manager.flashCount", 2); 1.204 +pref("browser.download.manager.addToRecentDocs", true); 1.205 +pref("browser.download.manager.displayedHistoryDays", 7); 1.206 +pref("browser.download.manager.resumeOnWakeDelay", 10000); 1.207 +pref("browser.download.manager.quitBehavior", 0); 1.208 + 1.209 +/* download alerts (disabled above) */ 1.210 +pref("alerts.totalOpenTime", 6000); 1.211 + 1.212 +/* download helper */ 1.213 +pref("browser.helperApps.deleteTempFileOnExit", false); 1.214 + 1.215 +/* password manager */ 1.216 +pref("signon.rememberSignons", true); 1.217 + 1.218 +// this will automatically enable inline spellchecking (if it is available) for 1.219 +// editable elements in HTML 1.220 +// 0 = spellcheck nothing 1.221 +// 1 = check multi-line controls [default] 1.222 +// 2 = check multi/single line controls 1.223 +pref("layout.spellcheckDefault", 1); 1.224 + 1.225 +/* extension manager and xpinstall */ 1.226 +// Completely disable extensions 1.227 +pref("extensions.defaultProviders.enabled", false); 1.228 +// Disable version checks making addons compatible by default 1.229 +pref("extensions.strictCompatibility", false); 1.230 +// Disable all add-on locations other than the profile 1.231 +pref("extensions.enabledScopes", 1); 1.232 +// Auto-disable any add-ons that are "dropped in" to the profile 1.233 +pref("extensions.autoDisableScopes", 1); 1.234 +// Disable add-on installation via the web-exposed APIs 1.235 +pref("xpinstall.enabled", false); 1.236 +pref("xpinstall.whitelist.add", "addons.mozilla.org"); 1.237 +pref("extensions.autoupdate.enabled", false); 1.238 +pref("extensions.update.enabled", false); 1.239 + 1.240 +/* blocklist preferences */ 1.241 +pref("extensions.blocklist.enabled", true); 1.242 +pref("extensions.blocklist.interval", 86400); 1.243 +pref("extensions.blocklist.url", "https://addons.mozilla.org/blocklist/3/%APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%PING_COUNT%/%TOTAL_PING_COUNT%/%DAYS_SINCE_LAST_PING%/"); 1.244 +pref("extensions.blocklist.detailsURL", "https://www.mozilla.org/%LOCALE%/blocklist/"); 1.245 +pref("extensions.showMismatchUI", false); 1.246 + 1.247 +/* block popups by default, and notify the user about blocked popups */ 1.248 +pref("dom.disable_open_during_load", true); 1.249 +pref("privacy.popups.showBrowserMessage", true); 1.250 + 1.251 +// Metro Firefox keeps this set to -1 when donottrackheader.enabled is false. 1.252 +pref("privacy.donottrackheader.value", -1); 1.253 + 1.254 +/* disable opening windows with the dialog feature */ 1.255 +pref("dom.disable_window_open_dialog_feature", true); 1.256 + 1.257 +pref("keyword.enabled", true); 1.258 + 1.259 +pref("accessibility.typeaheadfind", false); 1.260 +pref("accessibility.typeaheadfind.timeout", 5000); 1.261 +pref("accessibility.typeaheadfind.flashBar", 1); 1.262 +pref("accessibility.typeaheadfind.linksonly", false); 1.263 +pref("accessibility.typeaheadfind.casesensitive", 0); 1.264 + 1.265 +// Trun on F7 caret browsing hot key 1.266 +pref("accessibility.browsewithcaret_shortcut.enabled", true); 1.267 +pref("accessibility.browsewithcaret", false); 1.268 + 1.269 +// Whether or not we show a dialog box informing the user that the update was 1.270 +// successfully applied. 1.271 +pref("app.update.showInstalledUI", false); 1.272 + 1.273 +// pointer to the default engine name 1.274 +pref("browser.search.defaultenginename", "chrome://browser/locale/region.properties"); 1.275 + 1.276 +// SSL error page behaviour 1.277 +pref("browser.ssl_override_behavior", 2); 1.278 +pref("browser.xul.error_pages.expert_bad_cert", false); 1.279 + 1.280 +// disable logging for the search service by default 1.281 +pref("browser.search.log", false); 1.282 + 1.283 +// ordering of search engines in the engine list. 1.284 +pref("browser.search.order.1", "chrome://browser/locale/region.properties"); 1.285 +pref("browser.search.order.2", "chrome://browser/locale/region.properties"); 1.286 +pref("browser.search.order.3", "chrome://browser/locale/region.properties"); 1.287 + 1.288 +// send ping to the server to update 1.289 +pref("browser.search.update", true); 1.290 + 1.291 +// disable logging for the search service update system by default 1.292 +pref("browser.search.update.log", false); 1.293 + 1.294 +// Check whether we need to perform engine updates every 6 hours 1.295 +pref("browser.search.update.interval", 21600); 1.296 + 1.297 +// enable search suggestions by default 1.298 +pref("browser.search.suggest.enabled", true); 1.299 + 1.300 +// tell the search service that we don't really expose the "current engine" 1.301 +pref("browser.search.noCurrentEngine", true); 1.302 + 1.303 +#ifdef MOZ_OFFICIAL_BRANDING 1.304 +// {moz:official} expands to "official" 1.305 +pref("browser.search.official", true); 1.306 +#endif 1.307 + 1.308 +// enable xul error pages 1.309 +pref("browser.xul.error_pages.enabled", true); 1.310 + 1.311 +// Specify emptyRestriction = 0 so that bookmarks appear in the list by default 1.312 +pref("browser.urlbar.default.behavior", 0); 1.313 +pref("browser.urlbar.default.behavior.emptyRestriction", 0); 1.314 + 1.315 +// Let the faviconservice know that we display favicons as 25x25px so that it 1.316 +// uses the right size when optimizing favicons 1.317 +pref("places.favicons.optimizeToDimension", 25); 1.318 + 1.319 +// various and sundry awesomebar prefs (should remove/re-evaluate 1.320 +// these once bug 447900 is fixed) 1.321 +pref("browser.urlbar.trimURLs", true); 1.322 +pref("browser.urlbar.formatting.enabled", true); 1.323 +pref("browser.urlbar.clickSelectsAll", true); 1.324 +pref("browser.urlbar.doubleClickSelectsAll", true); 1.325 +pref("browser.urlbar.autoFill", false); 1.326 +pref("browser.urlbar.matchOnlyTyped", false); 1.327 +pref("browser.urlbar.matchBehavior", 1); 1.328 +pref("browser.urlbar.filter.javascript", true); 1.329 +pref("browser.urlbar.maxRichResults", 8); 1.330 +pref("browser.urlbar.search.chunkSize", 1000); 1.331 +pref("browser.urlbar.search.timeout", 100); 1.332 +pref("browser.urlbar.restrict.history", "^"); 1.333 +pref("browser.urlbar.restrict.bookmark", "*"); 1.334 +pref("browser.urlbar.restrict.tag", "+"); 1.335 +pref("browser.urlbar.match.title", "#"); 1.336 +pref("browser.urlbar.match.url", "@"); 1.337 +pref("browser.history.grouping", "day"); 1.338 +pref("browser.history.showSessions", false); 1.339 +pref("browser.sessionhistory.max_entries", 50); 1.340 +pref("browser.history_expire_sites", 40000); 1.341 +pref("browser.places.migratePostDataAnnotations", true); 1.342 +pref("browser.places.updateRecentTagsUri", true); 1.343 +pref("places.frecency.numVisits", 10); 1.344 +pref("places.frecency.numCalcOnIdle", 50); 1.345 +pref("places.frecency.numCalcOnMigrate", 50); 1.346 +pref("places.frecency.updateIdleTime", 60000); 1.347 +pref("places.frecency.firstBucketCutoff", 4); 1.348 +pref("places.frecency.secondBucketCutoff", 14); 1.349 +pref("places.frecency.thirdBucketCutoff", 31); 1.350 +pref("places.frecency.fourthBucketCutoff", 90); 1.351 +pref("places.frecency.firstBucketWeight", 100); 1.352 +pref("places.frecency.secondBucketWeight", 70); 1.353 +pref("places.frecency.thirdBucketWeight", 50); 1.354 +pref("places.frecency.fourthBucketWeight", 30); 1.355 +pref("places.frecency.defaultBucketWeight", 10); 1.356 +pref("places.frecency.embedVisitBonus", 0); 1.357 +pref("places.frecency.linkVisitBonus", 100); 1.358 +pref("places.frecency.typedVisitBonus", 2000); 1.359 +pref("places.frecency.bookmarkVisitBonus", 150); 1.360 +pref("places.frecency.downloadVisitBonus", 0); 1.361 +pref("places.frecency.permRedirectVisitBonus", 0); 1.362 +pref("places.frecency.tempRedirectVisitBonus", 0); 1.363 +pref("places.frecency.defaultVisitBonus", 0); 1.364 +pref("places.frecency.unvisitedBookmarkBonus", 140); 1.365 +pref("places.frecency.unvisitedTypedBonus", 200); 1.366 + 1.367 +// disable color management 1.368 +pref("gfx.color_management.mode", 0); 1.369 + 1.370 +// don't allow JS to move and resize existing windows 1.371 +pref("dom.disable_window_move_resize", true); 1.372 + 1.373 +// prevent click image resizing for nsImageDocument 1.374 +pref("browser.enable_click_image_resizing", false); 1.375 + 1.376 +// open in tab preferences 1.377 +// 0=default window, 1=current window/tab, 2=new window, 3=new tab in most window 1.378 +pref("browser.link.open_external", 3); 1.379 +pref("browser.link.open_newwindow", 3); 1.380 +// 0=force all new windows to tabs, 1=don't force, 2=only force those with no features set 1.381 +pref("browser.link.open_newwindow.restriction", 0); 1.382 + 1.383 +// controls which bits of private data to clear. by default we clear them all. 1.384 +pref("privacy.item.cache", true); 1.385 +pref("privacy.item.cookies", true); 1.386 +pref("privacy.item.offlineApps", true); 1.387 +pref("privacy.item.history", true); 1.388 +pref("privacy.item.formdata", true); 1.389 +pref("privacy.item.downloads", true); 1.390 +pref("privacy.item.passwords", true); 1.391 +pref("privacy.item.sessions", true); 1.392 +pref("privacy.item.geolocation", true); 1.393 +pref("privacy.item.siteSettings", true); 1.394 +pref("privacy.item.syncAccount", true); 1.395 + 1.396 +pref("plugins.force.wmode", "opaque"); 1.397 + 1.398 +// What default should we use for the time span in the sanitizer: 1.399 +// 0 - Clear everything 1.400 +// 1 - Last Hour 1.401 +// 2 - Last 2 Hours 1.402 +// 3 - Last 4 Hours 1.403 +// 4 - Today 1.404 +pref("privacy.sanitize.timeSpan", 1); 1.405 +pref("privacy.sanitize.sanitizeOnShutdown", false); 1.406 +pref("privacy.sanitize.migrateFx3Prefs", false); 1.407 + 1.408 +// enable geo 1.409 +pref("geo.enabled", true); 1.410 +pref("geo.wifi.uri", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%"); 1.411 + 1.412 +// snapped view 1.413 +pref("browser.ui.snapped.maxWidth", 600); 1.414 + 1.415 +// kinetic tweakables 1.416 +pref("browser.ui.kinetic.updateInterval", 16); 1.417 +pref("browser.ui.kinetic.exponentialC", 1400); 1.418 +pref("browser.ui.kinetic.polynomialC", 100); 1.419 +pref("browser.ui.kinetic.swipeLength", 160); 1.420 +pref("browser.ui.zoom.animationDuration", 200); // ms duration of double-tap zoom animation 1.421 + 1.422 +pref("ui.mouse.radius.enabled", true); 1.423 +pref("ui.touch.radius.enabled", true); 1.424 + 1.425 +// plugins 1.426 +pref("plugin.disable", true); 1.427 +pref("dom.ipc.plugins.enabled", true); 1.428 + 1.429 +// process priority 1.430 +// higher values give content process less CPU time 1.431 +pref("dom.ipc.content.nice", 1); 1.432 + 1.433 +// product URLs 1.434 +// The breakpad report server to link to in about:crashes 1.435 +pref("breakpad.reportURL", "https://crash-stats.mozilla.com/report/index/"); 1.436 +// TODO: This is not the correct article for metro!!! 1.437 +pref("app.sync.tutorialURL", "https://support.mozilla.org/kb/sync-firefox-between-desktop-and-mobile"); 1.438 +pref("app.support.baseURL", "https://support.mozilla.org/1/touch/%VERSION%/%OS%/%LOCALE%/"); 1.439 +pref("app.support.inputURL", "https://input.mozilla.org/feedback/metrofirefox"); 1.440 +pref("app.privacyURL", "http://www.mozilla.org/%LOCALE%/legal/privacy/firefox.html"); 1.441 +pref("app.creditsURL", "http://www.mozilla.org/credits/"); 1.442 +pref("app.channelURL", "http://www.mozilla.org/%LOCALE%/firefox/channel/"); 1.443 + 1.444 +// Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror) 1.445 +pref("security.alternate_certificate_error_page", "certerror"); 1.446 + 1.447 +pref("security.warn_viewing_mixed", false); // Warning is disabled. See Bug 616712. 1.448 + 1.449 +// Override some named colors to avoid inverse OS themes 1.450 + 1.451 +/* app update prefs */ 1.452 + 1.453 +#ifdef MOZ_UPDATER 1.454 + 1.455 +// Whether or not app updates are enabled 1.456 +pref("app.update.enabled", true); 1.457 + 1.458 +// This preference turns on app.update.mode and allows automatic download and 1.459 +// install to take place. We use a separate boolean toggle for this to make 1.460 +// the UI easier to construct. 1.461 +pref("app.update.auto", true); 1.462 + 1.463 +// See chart in nsUpdateService.js source for more details 1.464 +pref("app.update.mode", 0); 1.465 + 1.466 +// Enables update checking in the Metro environment. 1.467 +// add-on incompatibilities are ignored by updates in Metro. 1.468 +pref("app.update.metro.enabled", true); 1.469 + 1.470 +// If set to true, the Update Service will present no UI for any event. 1.471 +pref("app.update.silent", true); 1.472 + 1.473 +// If set to true, the Update Service will apply updates in the background 1.474 +// when it finishes downloading them. 1.475 +pref("app.update.staging.enabled", true); 1.476 + 1.477 +// Update service URL: 1.478 +#ifndef RELEASE_BUILD 1.479 +pref("app.update.url", "https://aus4.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml"); 1.480 +#else 1.481 +pref("app.update.url", "https://aus3.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml"); 1.482 +#endif 1.483 + 1.484 +// Show the Update Checking/Ready UI when the user was idle for x seconds 1.485 +pref("app.update.idletime", 60); 1.486 + 1.487 +// Whether or not we show a dialog box informing the user that the update was 1.488 +// successfully applied. This is off in Firefox by default since we show a 1.489 +// upgrade start page instead! Other apps may wish to show this UI, and supply 1.490 +// a whatsNewURL field in their brand.properties that contains a link to a page 1.491 +// which tells users what's new in this new update. 1.492 +pref("app.update.showInstalledUI", false); 1.493 + 1.494 +// 0 = suppress prompting for incompatibilities if there are updates available 1.495 +// to newer versions of installed addons that resolve them. 1.496 +// 1 = suppress prompting for incompatibilities only if there are VersionInfo 1.497 +// updates available to installed addons that resolve them, not newer 1.498 +// versions. 1.499 +pref("app.update.incompatible.mode", 0); 1.500 + 1.501 +// Whether or not to attempt using the service for updates. 1.502 +#ifdef MOZ_MAINTENANCE_SERVICE 1.503 +pref("app.update.service.enabled", true); 1.504 +#endif 1.505 + 1.506 +// The minimum delay in seconds for the timer to fire. 1.507 +// default=2 minutes 1.508 +pref("app.update.timerMinimumDelay", 120); 1.509 + 1.510 +// Enables some extra Application Update Logging (can reduce performance) 1.511 +pref("app.update.log", false); 1.512 + 1.513 +// The number of general background check failures to allow before notifying the 1.514 +// user of the failure. User initiated update checks always notify the user of 1.515 +// the failure. 1.516 +pref("app.update.backgroundMaxErrors", 10); 1.517 + 1.518 +// The aus update xml certificate checks for application update are disabled on 1.519 +// Windows since the mar signature check which is currently only implemented on 1.520 +// Windows is sufficient for preventing us from applying a mar that is not 1.521 +// valid. 1.522 + 1.523 +// When |app.update.cert.requireBuiltIn| is true or not specified the 1.524 +// final certificate and all certificates the connection is redirected to before 1.525 +// the final certificate for the url specified in the |app.update.url| 1.526 +// preference must be built-in. 1.527 +pref("app.update.cert.requireBuiltIn", false); 1.528 + 1.529 +// When |app.update.cert.checkAttributes| is true or not specified the 1.530 +// certificate attributes specified in the |app.update.certs.| preference branch 1.531 +// are checked against the certificate for the url specified by the 1.532 +// |app.update.url| preference. 1.533 +pref("app.update.cert.checkAttributes", false); 1.534 + 1.535 +// User-settable override to app.update.url for testing purposes. 1.536 +//pref("app.update.url.override", ""); 1.537 + 1.538 +// replace newlines with spaces on paste into single-line text boxes 1.539 +pref("editor.singleLine.pasteNewlines", 2); 1.540 + 1.541 +#ifdef MOZ_SERVICES_SYNC 1.542 +// sync service 1.543 +pref("services.sync.registerEngines", "Tab,Bookmarks,Form,History,Password,Prefs"); 1.544 + 1.545 +// prefs to sync by default 1.546 +pref("services.sync.prefs.sync.browser.tabs.warnOnClose", true); 1.547 +pref("services.sync.prefs.sync.devtools.errorconsole.enabled", true); 1.548 +pref("services.sync.prefs.sync.lightweightThemes.isThemeSelected", true); 1.549 +pref("services.sync.prefs.sync.lightweightThemes.usedThemes", true); 1.550 +pref("services.sync.prefs.sync.privacy.donottrackheader.enabled", true); 1.551 +pref("services.sync.prefs.sync.privacy.donottrackheader.value", true); 1.552 +pref("services.sync.prefs.sync.signon.rememberSignons", true); 1.553 +#endif 1.554 + 1.555 +// threshold where a tap becomes a drag, in 1/240" reference pixels 1.556 +// The names of the preferences are to be in sync with EventStateManager.cpp 1.557 +pref("ui.dragThresholdX", 50); 1.558 +pref("ui.dragThresholdY", 50); 1.559 + 1.560 +// prevent tooltips from showing up 1.561 +pref("browser.chrome.toolbar_tips", false); 1.562 + 1.563 +#ifdef NIGHTLY_BUILD 1.564 +// Completely disable pdf.js as an option to preview pdfs within firefox. 1.565 +// Note: if this is not disabled it does not necessarily mean pdf.js is the pdf 1.566 +// handler just that it is an option. 1.567 +pref("pdfjs.disabled", true); 1.568 +// Used by pdf.js to know the first time firefox is run with it installed so it 1.569 +// can become the default pdf viewer. 1.570 +pref("pdfjs.firstRun", true); 1.571 +// The values of preferredAction and alwaysAskBeforeHandling before pdf.js 1.572 +// became the default. 1.573 +pref("pdfjs.previousHandler.preferredAction", 0); 1.574 +pref("pdfjs.previousHandler.alwaysAskBeforeHandling", false); 1.575 +#endif 1.576 + 1.577 +#ifdef NIGHTLY_BUILD 1.578 +// Shumay is currently experimental. Toggle this pref to enable Shumway for 1.579 +// testing and development. 1.580 +pref("shumway.disabled", true); 1.581 +// When Shumway is enabled, use it all the time, not only when Flash is set to 1.582 +// click-to-play (because Metro doesn't even load the native Flash plugin). 1.583 +pref("shumway.ignoreCTP", true); 1.584 +#endif 1.585 + 1.586 +// The maximum amount of decoded image data we'll willingly keep around (we 1.587 +// might keep around more than this, but we'll try to get down to this value). 1.588 +// (This is intentionally on the high side; see bug 746055.) 1.589 +pref("image.mem.max_decoded_image_kb", 256000); 1.590 + 1.591 +// enable touch events interfaces 1.592 +pref("dom.w3c_touch_events.enabled", 1); 1.593 +pref("dom.w3c_touch_events.safetyX", 5); // escape borders in units of 1/240" 1.594 +pref("dom.w3c_touch_events.safetyY", 20); // escape borders in units of 1/240" 1.595 + 1.596 +#ifdef MOZ_SAFE_BROWSING 1.597 +// Safe browsing does nothing unless this pref is set 1.598 +pref("browser.safebrowsing.enabled", true); 1.599 + 1.600 +// Prevent loading of pages identified as malware 1.601 +pref("browser.safebrowsing.malware.enabled", true); 1.602 + 1.603 +// Non-enhanced mode (local url lists) URL list to check for updates 1.604 +pref("browser.safebrowsing.provider.0.updateURL", "https://safebrowsing.google.com/safebrowsing/downloads?client={moz:client}&appver={moz:version}&pver=2.2&key=%GOOGLE_API_KEY%"); 1.605 + 1.606 +pref("browser.safebrowsing.dataProvider", 0); 1.607 + 1.608 +// Does the provider name need to be localizable? 1.609 +pref("browser.safebrowsing.provider.0.name", "Google"); 1.610 +pref("browser.safebrowsing.provider.0.reportURL", "https://safebrowsing.google.com/safebrowsing/report?"); 1.611 +pref("browser.safebrowsing.provider.0.gethashURL", "https://safebrowsing.google.com/safebrowsing/gethash?client={moz:client}&appver={moz:version}&pver=2.2"); 1.612 + 1.613 +// HTML report pages 1.614 +pref("browser.safebrowsing.provider.0.reportGenericURL", "http://{moz:locale}.phish-generic.mozilla.com/?hl={moz:locale}"); 1.615 +pref("browser.safebrowsing.provider.0.reportErrorURL", "http://{moz:locale}.phish-error.mozilla.com/?hl={moz:locale}"); 1.616 +pref("browser.safebrowsing.provider.0.reportPhishURL", "http://{moz:locale}.phish-report.mozilla.com/?hl={moz:locale}"); 1.617 +pref("browser.safebrowsing.provider.0.reportMalwareURL", "http://{moz:locale}.malware-report.mozilla.com/?hl={moz:locale}"); 1.618 +pref("browser.safebrowsing.provider.0.reportMalwareErrorURL", "http://{moz:locale}.malware-error.mozilla.com/?hl={moz:locale}"); 1.619 + 1.620 +// FAQ URLs 1.621 +pref("browser.geolocation.warning.infoURL", "https://www.mozilla.org/%LOCALE%/firefox/geolocation/"); 1.622 + 1.623 +// Name of the about: page contributed by safebrowsing to handle display of error 1.624 +// pages on phishing/malware hits. (bug 399233) 1.625 +pref("urlclassifier.alternate_error_page", "blocked"); 1.626 + 1.627 +// The number of random entries to send with a gethash request. 1.628 +pref("urlclassifier.gethashnoise", 4); 1.629 + 1.630 +// If an urlclassifier table has not been updated in this number of seconds, 1.631 +// a gethash request will be forced to check that the result is still in 1.632 +// the database. 1.633 +pref("urlclassifier.max-complete-age", 2700); 1.634 + 1.635 +// Maximum size of the sqlite3 cache during an update, in bytes 1.636 +pref("urlclassifier.updatecachemax", 41943040); 1.637 + 1.638 +// URL for checking the reason for a malware warning. 1.639 +pref("browser.safebrowsing.malware.reportURL", "https://safebrowsing.google.com/safebrowsing/diagnostic?client=%NAME%&hl=%LOCALE%&site="); 1.640 +#endif 1.641 + 1.642 +// True if this is the first time we are showing about:firstrun 1.643 +pref("browser.firstrun.show.localepicker", false); 1.644 + 1.645 +// True if you always want dump() to work 1.646 +pref("javascript.options.showInConsole", true); 1.647 +pref("browser.dom.window.dump.enabled", true); 1.648 + 1.649 +// controls if we want camera support 1.650 +pref("device.camera.enabled", true); 1.651 +pref("media.realtime_decoder.enabled", true); 1.652 + 1.653 +// Metro manages state by autodetection 1.654 +pref("network.manage-offline-status", true); 1.655 + 1.656 +// Enable HTML fullscreen API in content. 1.657 +pref("full-screen-api.enabled", true); 1.658 +// But don't require approval when content enters fullscreen; we'll keep our 1.659 +// UI/chrome visible still, so there's no need to approve entering fullscreen. 1.660 +pref("full-screen-api.approval-required", false); 1.661 +// Don't allow fullscreen requests to percolate across content/chrome boundary, 1.662 +// so that our chrome/UI remains visible after content enters fullscreen. 1.663 +pref("full-screen-api.content-only", true); 1.664 +// Don't make top-level widgets fullscreen. This only applies when running in 1.665 +// "metrodesktop" mode, not when running in full metro mode. This prevents the 1.666 +// window from changing size when we go fullscreen; the content expands to fill 1.667 +// the window, the window size doesn't change. This pref has no effect when 1.668 +// running in actual Metro mode, as the widget will already be fullscreen then. 1.669 +pref("full-screen-api.ignore-widgets", true); 1.670 + 1.671 +// image visibility prefs. 1.672 +// image visibility tries to only keep images near the viewport decoded instead 1.673 +// of keeping all images decoded. 1.674 +pref("layout.imagevisibility.enabled", true); 1.675 +pref("layout.imagevisibility.numscrollportwidths", 1); 1.676 +pref("layout.imagevisibility.numscrollportheights", 1); 1.677 + 1.678 +// Don't enable <input type=color> yet as we don't have a color picker 1.679 +// implemented for Windows Metro (bug 895464) 1.680 +pref("dom.forms.color", false);