browser/metro/profile/metro.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #filter substitution
michael@0 6
michael@0 7 #ifdef DEBUG
michael@0 8 // disable content and content script caching
michael@0 9 pref("nglayout.debug.disable_xul_cache", true);
michael@0 10 pref("nglayout.debug.disable_xul_fastload", true);
michael@0 11 pref("devtools.errorconsole.enabled", true);
michael@0 12 pref("devtools.chrome.enabled", true);
michael@0 13 #else
michael@0 14 pref("devtools.errorconsole.enabled", false);
michael@0 15 pref("devtools.chrome.enabled", false);
michael@0 16 #endif
michael@0 17
michael@0 18 // Automatically submit crash reports
michael@0 19 #ifdef RELEASE_BUILD
michael@0 20 pref("app.crashreporter.autosubmit", false);
michael@0 21 pref("app.crashreporter.submitURLs", false);
michael@0 22 #else
michael@0 23 // For Nightly and Aurora we turn this on by default
michael@0 24 pref("app.crashreporter.autosubmit", true);
michael@0 25 pref("app.crashreporter.submitURLs", false);
michael@0 26 #endif
michael@0 27 // Has the user been prompted about crash reporting?
michael@0 28 pref("app.crashreporter.prompted", false);
michael@0 29
michael@0 30 // Debug prefs, see input.js
michael@0 31 pref("metro.debug.colorizeInputOverlay", false);
michael@0 32 pref("metro.debug.selection.displayRanges", false);
michael@0 33 pref("metro.debug.selection.dumpRanges", false);
michael@0 34 pref("metro.debug.selection.dumpEvents", false);
michael@0 35
michael@0 36 // Private browsing is disabled by default until implementation and testing are complete
michael@0 37 pref("metro.private_browsing.enabled", false);
michael@0 38
michael@0 39 // Enable tab-modal prompts
michael@0 40 pref("prompts.tab_modal.enabled", true);
michael@0 41
michael@0 42 // NewTabUtils pref related to top site thumbnail updating.
michael@0 43 pref("browser.newtabpage.enabled", true);
michael@0 44
michael@0 45 // Enable off main thread compositing
michael@0 46 pref("layers.offmainthreadcomposition.enabled", true);
michael@0 47 pref("layers.async-pan-zoom.enabled", true);
michael@0 48 pref("layers.componentalpha.enabled", false);
michael@0 49
michael@0 50 // Prefs to control the async pan/zoom behaviour
michael@0 51 pref("apz.touch_start_tolerance", "0.1"); // dpi * tolerance = pixel threshold
michael@0 52 pref("apz.pan_repaint_interval", 50); // prefer 20 fps
michael@0 53 pref("apz.fling_repaint_interval", 50); // prefer 20 fps
michael@0 54 pref("apz.fling_stopped_threshold", "0.2");
michael@0 55 pref("apz.x_skate_size_multiplier", "2.5");
michael@0 56 pref("apz.y_skate_size_multiplier", "2.5");
michael@0 57 pref("apz.min_skate_speed", "10.0");
michael@0 58 // 0 = free, 1 = standard, 2 = sticky
michael@0 59 pref("apz.axis_lock_mode", 2);
michael@0 60 pref("apz.cross_slide.enabled", true);
michael@0 61 pref("apz.subframe.enabled", true);
michael@0 62
michael@0 63 // Enable Microsoft TSF support by default for imes.
michael@0 64 pref("intl.tsf.enable", true);
michael@0 65 pref("intl.tsf.support_imm", false);
michael@0 66 pref("intl.tsf.hack.atok.create_native_caret", false);
michael@0 67
michael@0 68 pref("general.autoScroll", true);
michael@0 69 pref("general.smoothScroll", true);
michael@0 70 pref("general.smoothScroll.durationToIntervalRatio", 200);
michael@0 71 pref("mousewheel.enable_pixel_scrolling", true);
michael@0 72
michael@0 73 // For browser.xml binding
michael@0 74 //
michael@0 75 // cacheRatio* is a ratio that determines the amount of pixels to cache. The
michael@0 76 // ratio is multiplied by the viewport width or height to get the displayport's
michael@0 77 // width or height, respectively.
michael@0 78 //
michael@0 79 // (divide integer value by 1000 to get the ratio)
michael@0 80 //
michael@0 81 // For instance: cachePercentageWidth is 1500
michael@0 82 // viewport height is 500
michael@0 83 // => display port height will be 500 * 1.5 = 750
michael@0 84 //
michael@0 85 pref("toolkit.browser.cacheRatioWidth", 2000);
michael@0 86 pref("toolkit.browser.cacheRatioHeight", 3000);
michael@0 87
michael@0 88 // How long before a content view (a handle to a remote scrollable object)
michael@0 89 // expires.
michael@0 90 pref("toolkit.browser.contentViewExpire", 3000);
michael@0 91
michael@0 92
michael@0 93 pref("toolkit.defaultChromeURI", "chrome://browser/content/browser.xul");
michael@0 94 pref("browser.chromeURL", "chrome://browser/content/");
michael@0 95
michael@0 96 pref("browser.tabs.remote", false);
michael@0 97
michael@0 98 // Telemetry
michael@0 99 #ifdef MOZ_TELEMETRY_ON_BY_DEFAULT
michael@0 100 pref("toolkit.telemetry.enabledPreRelease", true);
michael@0 101 #else
michael@0 102 pref("toolkit.telemetry.enabled", true);
michael@0 103 #endif
michael@0 104 pref("toolkit.telemetry.prompted", 2);
michael@0 105
michael@0 106 pref("toolkit.screen.lock", false);
michael@0 107
michael@0 108 // From libpref/src/init/all.js. Disabling text zoom in favor of APZ zoom. See bug 936940.
michael@0 109 pref("zoom.minPercent", 100);
michael@0 110 pref("zoom.maxPercent", 100);
michael@0 111 pref("toolkit.zoomManager.zoomValues", "1");
michael@0 112
michael@0 113 // Device pixel to CSS px ratio, in percent. Set to -1 to calculate based on display density.
michael@0 114 pref("browser.viewport.scaleRatio", -1);
michael@0 115
michael@0 116 // use long press to display a context menu
michael@0 117 pref("ui.click_hold_context_menus", false);
michael@0 118
michael@0 119 // offline cache prefs
michael@0 120 pref("browser.offline-apps.notify", true);
michael@0 121
michael@0 122 // protocol warning prefs
michael@0 123 pref("network.protocol-handler.warn-external.tel", false);
michael@0 124 pref("network.protocol-handler.warn-external.mailto", false);
michael@0 125 pref("network.protocol-handler.warn-external.vnd.youtube", false);
michael@0 126 pref("network.protocol-handler.warn-external.ms-windows-store", false);
michael@0 127 pref("network.protocol-handler.external.ms-windows-store", true);
michael@0 128
michael@0 129 /* startui prefs */
michael@0 130 // display the overlay nav buttons
michael@0 131 pref("browser.display.overlaynavbuttons", true);
michael@0 132 // max number of top site tiles to display in the startui
michael@0 133 pref("browser.display.startUI.topsites.maxresults", 8);
michael@0 134 // max items for the bookmarks compartment in the startui
michael@0 135 pref("browser.display.startUI.bookmarks.maxresults", 16);
michael@0 136 // max items for the history compartment in the startui
michael@0 137 pref("browser.display.startUI.history.maxresults", 16);
michael@0 138 // Number of times to display firstrun instructions on new tab page
michael@0 139 pref("browser.firstrun.count", 3);
michael@0 140 // Has the content first run been dismissed
michael@0 141 pref("browser.firstrun-content.dismissed", false);
michael@0 142
michael@0 143 // Backspace and Shift+Backspace behavior
michael@0 144 // 0 goes Back/Forward
michael@0 145 // 1 act like PgUp/PgDown
michael@0 146 // 2 and other values, nothing
michael@0 147 pref("browser.backspace_action", 0);
michael@0 148
michael@0 149 // session history
michael@0 150 pref("browser.sessionhistory.max_entries", 50);
michael@0 151
michael@0 152 // On startup, don't automatically restore tabs
michael@0 153 pref("browser.startup.page", 1);
michael@0 154
michael@0 155 /* session store */
michael@0 156 pref("browser.sessionstore.resume_from_crash", true);
michael@0 157 pref("browser.sessionstore.resume_session_once", false);
michael@0 158 pref("browser.sessionstore.resume_from_crash_timeout", 60); // minutes
michael@0 159 // minimal interval between two save operations in milliseconds
michael@0 160 pref("browser.sessionstore.interval", 15000); // milliseconds
michael@0 161 // maximum amount of POSTDATA to be saved in bytes per history entry (-1 = all of it)
michael@0 162 // (NB: POSTDATA will be saved either entirely or not at all)
michael@0 163 pref("browser.sessionstore.postdata", 0);
michael@0 164 // on which sites to save text data, POSTDATA and cookies
michael@0 165 // 0 = everywhere, 1 = unencrypted sites, 2 = nowhere
michael@0 166 pref("browser.sessionstore.privacy_level", 0);
michael@0 167 // the same as browser.sessionstore.privacy_level, but for saving deferred session data
michael@0 168 pref("browser.sessionstore.privacy_level_deferred", 1);
michael@0 169 // how many tabs can be reopened (per window)
michael@0 170 pref("browser.sessionstore.max_tabs_undo", 10);
michael@0 171 // number of crashes that can occur before the about:sessionrestore page is displayed
michael@0 172 // (this pref has no effect if more than 6 hours have passed since the last crash)
michael@0 173 pref("browser.sessionstore.max_resumed_crashes", 1);
michael@0 174 // restore_on_demand overrides MAX_CONCURRENT_TAB_RESTORES (sessionstore constant)
michael@0 175 // and restore_hidden_tabs. When true, tabs will not be restored until they are
michael@0 176 // focused (also applies to tabs that aren't visible). When false, the values
michael@0 177 // for MAX_CONCURRENT_TAB_RESTORES and restore_hidden_tabs are respected.
michael@0 178 // Selected tabs are always restored regardless of this pref.
michael@0 179 pref("browser.sessionstore.restore_on_demand", true);
michael@0 180
michael@0 181 /* these should help performance */
michael@0 182 pref("mozilla.widget.force-24bpp", true);
michael@0 183 pref("mozilla.widget.use-buffer-pixmap", true);
michael@0 184 pref("mozilla.widget.disable-native-theme", false);
michael@0 185 pref("layout.reflow.synthMouseMove", false);
michael@0 186
michael@0 187 /* "Preview" of framerate increase for animations, discussed in 710563. */
michael@0 188 pref("layout.frame_rate.precise", true);
michael@0 189
michael@0 190 /* download manager (don't show the window or alert) */
michael@0 191 pref("browser.download.useDownloadDir", true);
michael@0 192 pref("browser.download.folderList", 1); // Default to ~/Downloads
michael@0 193 pref("browser.download.manager.showAlertOnComplete", false);
michael@0 194 pref("browser.download.manager.showAlertInterval", 2000);
michael@0 195 pref("browser.download.manager.retention", 2);
michael@0 196 pref("browser.download.manager.showWhenStarting", false);
michael@0 197 pref("browser.download.manager.closeWhenDone", true);
michael@0 198 pref("browser.download.manager.openDelay", 0);
michael@0 199 pref("browser.download.manager.focusWhenStarting", false);
michael@0 200 pref("browser.download.manager.flashCount", 2);
michael@0 201 pref("browser.download.manager.addToRecentDocs", true);
michael@0 202 pref("browser.download.manager.displayedHistoryDays", 7);
michael@0 203 pref("browser.download.manager.resumeOnWakeDelay", 10000);
michael@0 204 pref("browser.download.manager.quitBehavior", 0);
michael@0 205
michael@0 206 /* download alerts (disabled above) */
michael@0 207 pref("alerts.totalOpenTime", 6000);
michael@0 208
michael@0 209 /* download helper */
michael@0 210 pref("browser.helperApps.deleteTempFileOnExit", false);
michael@0 211
michael@0 212 /* password manager */
michael@0 213 pref("signon.rememberSignons", true);
michael@0 214
michael@0 215 // this will automatically enable inline spellchecking (if it is available) for
michael@0 216 // editable elements in HTML
michael@0 217 // 0 = spellcheck nothing
michael@0 218 // 1 = check multi-line controls [default]
michael@0 219 // 2 = check multi/single line controls
michael@0 220 pref("layout.spellcheckDefault", 1);
michael@0 221
michael@0 222 /* extension manager and xpinstall */
michael@0 223 // Completely disable extensions
michael@0 224 pref("extensions.defaultProviders.enabled", false);
michael@0 225 // Disable version checks making addons compatible by default
michael@0 226 pref("extensions.strictCompatibility", false);
michael@0 227 // Disable all add-on locations other than the profile
michael@0 228 pref("extensions.enabledScopes", 1);
michael@0 229 // Auto-disable any add-ons that are "dropped in" to the profile
michael@0 230 pref("extensions.autoDisableScopes", 1);
michael@0 231 // Disable add-on installation via the web-exposed APIs
michael@0 232 pref("xpinstall.enabled", false);
michael@0 233 pref("xpinstall.whitelist.add", "addons.mozilla.org");
michael@0 234 pref("extensions.autoupdate.enabled", false);
michael@0 235 pref("extensions.update.enabled", false);
michael@0 236
michael@0 237 /* blocklist preferences */
michael@0 238 pref("extensions.blocklist.enabled", true);
michael@0 239 pref("extensions.blocklist.interval", 86400);
michael@0 240 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%/");
michael@0 241 pref("extensions.blocklist.detailsURL", "https://www.mozilla.org/%LOCALE%/blocklist/");
michael@0 242 pref("extensions.showMismatchUI", false);
michael@0 243
michael@0 244 /* block popups by default, and notify the user about blocked popups */
michael@0 245 pref("dom.disable_open_during_load", true);
michael@0 246 pref("privacy.popups.showBrowserMessage", true);
michael@0 247
michael@0 248 // Metro Firefox keeps this set to -1 when donottrackheader.enabled is false.
michael@0 249 pref("privacy.donottrackheader.value", -1);
michael@0 250
michael@0 251 /* disable opening windows with the dialog feature */
michael@0 252 pref("dom.disable_window_open_dialog_feature", true);
michael@0 253
michael@0 254 pref("keyword.enabled", true);
michael@0 255
michael@0 256 pref("accessibility.typeaheadfind", false);
michael@0 257 pref("accessibility.typeaheadfind.timeout", 5000);
michael@0 258 pref("accessibility.typeaheadfind.flashBar", 1);
michael@0 259 pref("accessibility.typeaheadfind.linksonly", false);
michael@0 260 pref("accessibility.typeaheadfind.casesensitive", 0);
michael@0 261
michael@0 262 // Trun on F7 caret browsing hot key
michael@0 263 pref("accessibility.browsewithcaret_shortcut.enabled", true);
michael@0 264 pref("accessibility.browsewithcaret", false);
michael@0 265
michael@0 266 // Whether or not we show a dialog box informing the user that the update was
michael@0 267 // successfully applied.
michael@0 268 pref("app.update.showInstalledUI", false);
michael@0 269
michael@0 270 // pointer to the default engine name
michael@0 271 pref("browser.search.defaultenginename", "chrome://browser/locale/region.properties");
michael@0 272
michael@0 273 // SSL error page behaviour
michael@0 274 pref("browser.ssl_override_behavior", 2);
michael@0 275 pref("browser.xul.error_pages.expert_bad_cert", false);
michael@0 276
michael@0 277 // disable logging for the search service by default
michael@0 278 pref("browser.search.log", false);
michael@0 279
michael@0 280 // ordering of search engines in the engine list.
michael@0 281 pref("browser.search.order.1", "chrome://browser/locale/region.properties");
michael@0 282 pref("browser.search.order.2", "chrome://browser/locale/region.properties");
michael@0 283 pref("browser.search.order.3", "chrome://browser/locale/region.properties");
michael@0 284
michael@0 285 // send ping to the server to update
michael@0 286 pref("browser.search.update", true);
michael@0 287
michael@0 288 // disable logging for the search service update system by default
michael@0 289 pref("browser.search.update.log", false);
michael@0 290
michael@0 291 // Check whether we need to perform engine updates every 6 hours
michael@0 292 pref("browser.search.update.interval", 21600);
michael@0 293
michael@0 294 // enable search suggestions by default
michael@0 295 pref("browser.search.suggest.enabled", true);
michael@0 296
michael@0 297 // tell the search service that we don't really expose the "current engine"
michael@0 298 pref("browser.search.noCurrentEngine", true);
michael@0 299
michael@0 300 #ifdef MOZ_OFFICIAL_BRANDING
michael@0 301 // {moz:official} expands to "official"
michael@0 302 pref("browser.search.official", true);
michael@0 303 #endif
michael@0 304
michael@0 305 // enable xul error pages
michael@0 306 pref("browser.xul.error_pages.enabled", true);
michael@0 307
michael@0 308 // Specify emptyRestriction = 0 so that bookmarks appear in the list by default
michael@0 309 pref("browser.urlbar.default.behavior", 0);
michael@0 310 pref("browser.urlbar.default.behavior.emptyRestriction", 0);
michael@0 311
michael@0 312 // Let the faviconservice know that we display favicons as 25x25px so that it
michael@0 313 // uses the right size when optimizing favicons
michael@0 314 pref("places.favicons.optimizeToDimension", 25);
michael@0 315
michael@0 316 // various and sundry awesomebar prefs (should remove/re-evaluate
michael@0 317 // these once bug 447900 is fixed)
michael@0 318 pref("browser.urlbar.trimURLs", true);
michael@0 319 pref("browser.urlbar.formatting.enabled", true);
michael@0 320 pref("browser.urlbar.clickSelectsAll", true);
michael@0 321 pref("browser.urlbar.doubleClickSelectsAll", true);
michael@0 322 pref("browser.urlbar.autoFill", false);
michael@0 323 pref("browser.urlbar.matchOnlyTyped", false);
michael@0 324 pref("browser.urlbar.matchBehavior", 1);
michael@0 325 pref("browser.urlbar.filter.javascript", true);
michael@0 326 pref("browser.urlbar.maxRichResults", 8);
michael@0 327 pref("browser.urlbar.search.chunkSize", 1000);
michael@0 328 pref("browser.urlbar.search.timeout", 100);
michael@0 329 pref("browser.urlbar.restrict.history", "^");
michael@0 330 pref("browser.urlbar.restrict.bookmark", "*");
michael@0 331 pref("browser.urlbar.restrict.tag", "+");
michael@0 332 pref("browser.urlbar.match.title", "#");
michael@0 333 pref("browser.urlbar.match.url", "@");
michael@0 334 pref("browser.history.grouping", "day");
michael@0 335 pref("browser.history.showSessions", false);
michael@0 336 pref("browser.sessionhistory.max_entries", 50);
michael@0 337 pref("browser.history_expire_sites", 40000);
michael@0 338 pref("browser.places.migratePostDataAnnotations", true);
michael@0 339 pref("browser.places.updateRecentTagsUri", true);
michael@0 340 pref("places.frecency.numVisits", 10);
michael@0 341 pref("places.frecency.numCalcOnIdle", 50);
michael@0 342 pref("places.frecency.numCalcOnMigrate", 50);
michael@0 343 pref("places.frecency.updateIdleTime", 60000);
michael@0 344 pref("places.frecency.firstBucketCutoff", 4);
michael@0 345 pref("places.frecency.secondBucketCutoff", 14);
michael@0 346 pref("places.frecency.thirdBucketCutoff", 31);
michael@0 347 pref("places.frecency.fourthBucketCutoff", 90);
michael@0 348 pref("places.frecency.firstBucketWeight", 100);
michael@0 349 pref("places.frecency.secondBucketWeight", 70);
michael@0 350 pref("places.frecency.thirdBucketWeight", 50);
michael@0 351 pref("places.frecency.fourthBucketWeight", 30);
michael@0 352 pref("places.frecency.defaultBucketWeight", 10);
michael@0 353 pref("places.frecency.embedVisitBonus", 0);
michael@0 354 pref("places.frecency.linkVisitBonus", 100);
michael@0 355 pref("places.frecency.typedVisitBonus", 2000);
michael@0 356 pref("places.frecency.bookmarkVisitBonus", 150);
michael@0 357 pref("places.frecency.downloadVisitBonus", 0);
michael@0 358 pref("places.frecency.permRedirectVisitBonus", 0);
michael@0 359 pref("places.frecency.tempRedirectVisitBonus", 0);
michael@0 360 pref("places.frecency.defaultVisitBonus", 0);
michael@0 361 pref("places.frecency.unvisitedBookmarkBonus", 140);
michael@0 362 pref("places.frecency.unvisitedTypedBonus", 200);
michael@0 363
michael@0 364 // disable color management
michael@0 365 pref("gfx.color_management.mode", 0);
michael@0 366
michael@0 367 // don't allow JS to move and resize existing windows
michael@0 368 pref("dom.disable_window_move_resize", true);
michael@0 369
michael@0 370 // prevent click image resizing for nsImageDocument
michael@0 371 pref("browser.enable_click_image_resizing", false);
michael@0 372
michael@0 373 // open in tab preferences
michael@0 374 // 0=default window, 1=current window/tab, 2=new window, 3=new tab in most window
michael@0 375 pref("browser.link.open_external", 3);
michael@0 376 pref("browser.link.open_newwindow", 3);
michael@0 377 // 0=force all new windows to tabs, 1=don't force, 2=only force those with no features set
michael@0 378 pref("browser.link.open_newwindow.restriction", 0);
michael@0 379
michael@0 380 // controls which bits of private data to clear. by default we clear them all.
michael@0 381 pref("privacy.item.cache", true);
michael@0 382 pref("privacy.item.cookies", true);
michael@0 383 pref("privacy.item.offlineApps", true);
michael@0 384 pref("privacy.item.history", true);
michael@0 385 pref("privacy.item.formdata", true);
michael@0 386 pref("privacy.item.downloads", true);
michael@0 387 pref("privacy.item.passwords", true);
michael@0 388 pref("privacy.item.sessions", true);
michael@0 389 pref("privacy.item.geolocation", true);
michael@0 390 pref("privacy.item.siteSettings", true);
michael@0 391 pref("privacy.item.syncAccount", true);
michael@0 392
michael@0 393 pref("plugins.force.wmode", "opaque");
michael@0 394
michael@0 395 // What default should we use for the time span in the sanitizer:
michael@0 396 // 0 - Clear everything
michael@0 397 // 1 - Last Hour
michael@0 398 // 2 - Last 2 Hours
michael@0 399 // 3 - Last 4 Hours
michael@0 400 // 4 - Today
michael@0 401 pref("privacy.sanitize.timeSpan", 1);
michael@0 402 pref("privacy.sanitize.sanitizeOnShutdown", false);
michael@0 403 pref("privacy.sanitize.migrateFx3Prefs", false);
michael@0 404
michael@0 405 // enable geo
michael@0 406 pref("geo.enabled", true);
michael@0 407 pref("geo.wifi.uri", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%");
michael@0 408
michael@0 409 // snapped view
michael@0 410 pref("browser.ui.snapped.maxWidth", 600);
michael@0 411
michael@0 412 // kinetic tweakables
michael@0 413 pref("browser.ui.kinetic.updateInterval", 16);
michael@0 414 pref("browser.ui.kinetic.exponentialC", 1400);
michael@0 415 pref("browser.ui.kinetic.polynomialC", 100);
michael@0 416 pref("browser.ui.kinetic.swipeLength", 160);
michael@0 417 pref("browser.ui.zoom.animationDuration", 200); // ms duration of double-tap zoom animation
michael@0 418
michael@0 419 pref("ui.mouse.radius.enabled", true);
michael@0 420 pref("ui.touch.radius.enabled", true);
michael@0 421
michael@0 422 // plugins
michael@0 423 pref("plugin.disable", true);
michael@0 424 pref("dom.ipc.plugins.enabled", true);
michael@0 425
michael@0 426 // process priority
michael@0 427 // higher values give content process less CPU time
michael@0 428 pref("dom.ipc.content.nice", 1);
michael@0 429
michael@0 430 // product URLs
michael@0 431 // The breakpad report server to link to in about:crashes
michael@0 432 pref("breakpad.reportURL", "https://crash-stats.mozilla.com/report/index/");
michael@0 433 // TODO: This is not the correct article for metro!!!
michael@0 434 pref("app.sync.tutorialURL", "https://support.mozilla.org/kb/sync-firefox-between-desktop-and-mobile");
michael@0 435 pref("app.support.baseURL", "https://support.mozilla.org/1/touch/%VERSION%/%OS%/%LOCALE%/");
michael@0 436 pref("app.support.inputURL", "https://input.mozilla.org/feedback/metrofirefox");
michael@0 437 pref("app.privacyURL", "http://www.mozilla.org/%LOCALE%/legal/privacy/firefox.html");
michael@0 438 pref("app.creditsURL", "http://www.mozilla.org/credits/");
michael@0 439 pref("app.channelURL", "http://www.mozilla.org/%LOCALE%/firefox/channel/");
michael@0 440
michael@0 441 // Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror)
michael@0 442 pref("security.alternate_certificate_error_page", "certerror");
michael@0 443
michael@0 444 pref("security.warn_viewing_mixed", false); // Warning is disabled. See Bug 616712.
michael@0 445
michael@0 446 // Override some named colors to avoid inverse OS themes
michael@0 447
michael@0 448 /* app update prefs */
michael@0 449
michael@0 450 #ifdef MOZ_UPDATER
michael@0 451
michael@0 452 // Whether or not app updates are enabled
michael@0 453 pref("app.update.enabled", true);
michael@0 454
michael@0 455 // This preference turns on app.update.mode and allows automatic download and
michael@0 456 // install to take place. We use a separate boolean toggle for this to make
michael@0 457 // the UI easier to construct.
michael@0 458 pref("app.update.auto", true);
michael@0 459
michael@0 460 // See chart in nsUpdateService.js source for more details
michael@0 461 pref("app.update.mode", 0);
michael@0 462
michael@0 463 // Enables update checking in the Metro environment.
michael@0 464 // add-on incompatibilities are ignored by updates in Metro.
michael@0 465 pref("app.update.metro.enabled", true);
michael@0 466
michael@0 467 // If set to true, the Update Service will present no UI for any event.
michael@0 468 pref("app.update.silent", true);
michael@0 469
michael@0 470 // If set to true, the Update Service will apply updates in the background
michael@0 471 // when it finishes downloading them.
michael@0 472 pref("app.update.staging.enabled", true);
michael@0 473
michael@0 474 // Update service URL:
michael@0 475 #ifndef RELEASE_BUILD
michael@0 476 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");
michael@0 477 #else
michael@0 478 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");
michael@0 479 #endif
michael@0 480
michael@0 481 // Show the Update Checking/Ready UI when the user was idle for x seconds
michael@0 482 pref("app.update.idletime", 60);
michael@0 483
michael@0 484 // Whether or not we show a dialog box informing the user that the update was
michael@0 485 // successfully applied. This is off in Firefox by default since we show a
michael@0 486 // upgrade start page instead! Other apps may wish to show this UI, and supply
michael@0 487 // a whatsNewURL field in their brand.properties that contains a link to a page
michael@0 488 // which tells users what's new in this new update.
michael@0 489 pref("app.update.showInstalledUI", false);
michael@0 490
michael@0 491 // 0 = suppress prompting for incompatibilities if there are updates available
michael@0 492 // to newer versions of installed addons that resolve them.
michael@0 493 // 1 = suppress prompting for incompatibilities only if there are VersionInfo
michael@0 494 // updates available to installed addons that resolve them, not newer
michael@0 495 // versions.
michael@0 496 pref("app.update.incompatible.mode", 0);
michael@0 497
michael@0 498 // Whether or not to attempt using the service for updates.
michael@0 499 #ifdef MOZ_MAINTENANCE_SERVICE
michael@0 500 pref("app.update.service.enabled", true);
michael@0 501 #endif
michael@0 502
michael@0 503 // The minimum delay in seconds for the timer to fire.
michael@0 504 // default=2 minutes
michael@0 505 pref("app.update.timerMinimumDelay", 120);
michael@0 506
michael@0 507 // Enables some extra Application Update Logging (can reduce performance)
michael@0 508 pref("app.update.log", false);
michael@0 509
michael@0 510 // The number of general background check failures to allow before notifying the
michael@0 511 // user of the failure. User initiated update checks always notify the user of
michael@0 512 // the failure.
michael@0 513 pref("app.update.backgroundMaxErrors", 10);
michael@0 514
michael@0 515 // The aus update xml certificate checks for application update are disabled on
michael@0 516 // Windows since the mar signature check which is currently only implemented on
michael@0 517 // Windows is sufficient for preventing us from applying a mar that is not
michael@0 518 // valid.
michael@0 519
michael@0 520 // When |app.update.cert.requireBuiltIn| is true or not specified the
michael@0 521 // final certificate and all certificates the connection is redirected to before
michael@0 522 // the final certificate for the url specified in the |app.update.url|
michael@0 523 // preference must be built-in.
michael@0 524 pref("app.update.cert.requireBuiltIn", false);
michael@0 525
michael@0 526 // When |app.update.cert.checkAttributes| is true or not specified the
michael@0 527 // certificate attributes specified in the |app.update.certs.| preference branch
michael@0 528 // are checked against the certificate for the url specified by the
michael@0 529 // |app.update.url| preference.
michael@0 530 pref("app.update.cert.checkAttributes", false);
michael@0 531
michael@0 532 // User-settable override to app.update.url for testing purposes.
michael@0 533 //pref("app.update.url.override", "");
michael@0 534
michael@0 535 // replace newlines with spaces on paste into single-line text boxes
michael@0 536 pref("editor.singleLine.pasteNewlines", 2);
michael@0 537
michael@0 538 #ifdef MOZ_SERVICES_SYNC
michael@0 539 // sync service
michael@0 540 pref("services.sync.registerEngines", "Tab,Bookmarks,Form,History,Password,Prefs");
michael@0 541
michael@0 542 // prefs to sync by default
michael@0 543 pref("services.sync.prefs.sync.browser.tabs.warnOnClose", true);
michael@0 544 pref("services.sync.prefs.sync.devtools.errorconsole.enabled", true);
michael@0 545 pref("services.sync.prefs.sync.lightweightThemes.isThemeSelected", true);
michael@0 546 pref("services.sync.prefs.sync.lightweightThemes.usedThemes", true);
michael@0 547 pref("services.sync.prefs.sync.privacy.donottrackheader.enabled", true);
michael@0 548 pref("services.sync.prefs.sync.privacy.donottrackheader.value", true);
michael@0 549 pref("services.sync.prefs.sync.signon.rememberSignons", true);
michael@0 550 #endif
michael@0 551
michael@0 552 // threshold where a tap becomes a drag, in 1/240" reference pixels
michael@0 553 // The names of the preferences are to be in sync with EventStateManager.cpp
michael@0 554 pref("ui.dragThresholdX", 50);
michael@0 555 pref("ui.dragThresholdY", 50);
michael@0 556
michael@0 557 // prevent tooltips from showing up
michael@0 558 pref("browser.chrome.toolbar_tips", false);
michael@0 559
michael@0 560 #ifdef NIGHTLY_BUILD
michael@0 561 // Completely disable pdf.js as an option to preview pdfs within firefox.
michael@0 562 // Note: if this is not disabled it does not necessarily mean pdf.js is the pdf
michael@0 563 // handler just that it is an option.
michael@0 564 pref("pdfjs.disabled", true);
michael@0 565 // Used by pdf.js to know the first time firefox is run with it installed so it
michael@0 566 // can become the default pdf viewer.
michael@0 567 pref("pdfjs.firstRun", true);
michael@0 568 // The values of preferredAction and alwaysAskBeforeHandling before pdf.js
michael@0 569 // became the default.
michael@0 570 pref("pdfjs.previousHandler.preferredAction", 0);
michael@0 571 pref("pdfjs.previousHandler.alwaysAskBeforeHandling", false);
michael@0 572 #endif
michael@0 573
michael@0 574 #ifdef NIGHTLY_BUILD
michael@0 575 // Shumay is currently experimental. Toggle this pref to enable Shumway for
michael@0 576 // testing and development.
michael@0 577 pref("shumway.disabled", true);
michael@0 578 // When Shumway is enabled, use it all the time, not only when Flash is set to
michael@0 579 // click-to-play (because Metro doesn't even load the native Flash plugin).
michael@0 580 pref("shumway.ignoreCTP", true);
michael@0 581 #endif
michael@0 582
michael@0 583 // The maximum amount of decoded image data we'll willingly keep around (we
michael@0 584 // might keep around more than this, but we'll try to get down to this value).
michael@0 585 // (This is intentionally on the high side; see bug 746055.)
michael@0 586 pref("image.mem.max_decoded_image_kb", 256000);
michael@0 587
michael@0 588 // enable touch events interfaces
michael@0 589 pref("dom.w3c_touch_events.enabled", 1);
michael@0 590 pref("dom.w3c_touch_events.safetyX", 5); // escape borders in units of 1/240"
michael@0 591 pref("dom.w3c_touch_events.safetyY", 20); // escape borders in units of 1/240"
michael@0 592
michael@0 593 #ifdef MOZ_SAFE_BROWSING
michael@0 594 // Safe browsing does nothing unless this pref is set
michael@0 595 pref("browser.safebrowsing.enabled", true);
michael@0 596
michael@0 597 // Prevent loading of pages identified as malware
michael@0 598 pref("browser.safebrowsing.malware.enabled", true);
michael@0 599
michael@0 600 // Non-enhanced mode (local url lists) URL list to check for updates
michael@0 601 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%");
michael@0 602
michael@0 603 pref("browser.safebrowsing.dataProvider", 0);
michael@0 604
michael@0 605 // Does the provider name need to be localizable?
michael@0 606 pref("browser.safebrowsing.provider.0.name", "Google");
michael@0 607 pref("browser.safebrowsing.provider.0.reportURL", "https://safebrowsing.google.com/safebrowsing/report?");
michael@0 608 pref("browser.safebrowsing.provider.0.gethashURL", "https://safebrowsing.google.com/safebrowsing/gethash?client={moz:client}&appver={moz:version}&pver=2.2");
michael@0 609
michael@0 610 // HTML report pages
michael@0 611 pref("browser.safebrowsing.provider.0.reportGenericURL", "http://{moz:locale}.phish-generic.mozilla.com/?hl={moz:locale}");
michael@0 612 pref("browser.safebrowsing.provider.0.reportErrorURL", "http://{moz:locale}.phish-error.mozilla.com/?hl={moz:locale}");
michael@0 613 pref("browser.safebrowsing.provider.0.reportPhishURL", "http://{moz:locale}.phish-report.mozilla.com/?hl={moz:locale}");
michael@0 614 pref("browser.safebrowsing.provider.0.reportMalwareURL", "http://{moz:locale}.malware-report.mozilla.com/?hl={moz:locale}");
michael@0 615 pref("browser.safebrowsing.provider.0.reportMalwareErrorURL", "http://{moz:locale}.malware-error.mozilla.com/?hl={moz:locale}");
michael@0 616
michael@0 617 // FAQ URLs
michael@0 618 pref("browser.geolocation.warning.infoURL", "https://www.mozilla.org/%LOCALE%/firefox/geolocation/");
michael@0 619
michael@0 620 // Name of the about: page contributed by safebrowsing to handle display of error
michael@0 621 // pages on phishing/malware hits. (bug 399233)
michael@0 622 pref("urlclassifier.alternate_error_page", "blocked");
michael@0 623
michael@0 624 // The number of random entries to send with a gethash request.
michael@0 625 pref("urlclassifier.gethashnoise", 4);
michael@0 626
michael@0 627 // If an urlclassifier table has not been updated in this number of seconds,
michael@0 628 // a gethash request will be forced to check that the result is still in
michael@0 629 // the database.
michael@0 630 pref("urlclassifier.max-complete-age", 2700);
michael@0 631
michael@0 632 // Maximum size of the sqlite3 cache during an update, in bytes
michael@0 633 pref("urlclassifier.updatecachemax", 41943040);
michael@0 634
michael@0 635 // URL for checking the reason for a malware warning.
michael@0 636 pref("browser.safebrowsing.malware.reportURL", "https://safebrowsing.google.com/safebrowsing/diagnostic?client=%NAME%&hl=%LOCALE%&site=");
michael@0 637 #endif
michael@0 638
michael@0 639 // True if this is the first time we are showing about:firstrun
michael@0 640 pref("browser.firstrun.show.localepicker", false);
michael@0 641
michael@0 642 // True if you always want dump() to work
michael@0 643 pref("javascript.options.showInConsole", true);
michael@0 644 pref("browser.dom.window.dump.enabled", true);
michael@0 645
michael@0 646 // controls if we want camera support
michael@0 647 pref("device.camera.enabled", true);
michael@0 648 pref("media.realtime_decoder.enabled", true);
michael@0 649
michael@0 650 // Metro manages state by autodetection
michael@0 651 pref("network.manage-offline-status", true);
michael@0 652
michael@0 653 // Enable HTML fullscreen API in content.
michael@0 654 pref("full-screen-api.enabled", true);
michael@0 655 // But don't require approval when content enters fullscreen; we'll keep our
michael@0 656 // UI/chrome visible still, so there's no need to approve entering fullscreen.
michael@0 657 pref("full-screen-api.approval-required", false);
michael@0 658 // Don't allow fullscreen requests to percolate across content/chrome boundary,
michael@0 659 // so that our chrome/UI remains visible after content enters fullscreen.
michael@0 660 pref("full-screen-api.content-only", true);
michael@0 661 // Don't make top-level widgets fullscreen. This only applies when running in
michael@0 662 // "metrodesktop" mode, not when running in full metro mode. This prevents the
michael@0 663 // window from changing size when we go fullscreen; the content expands to fill
michael@0 664 // the window, the window size doesn't change. This pref has no effect when
michael@0 665 // running in actual Metro mode, as the widget will already be fullscreen then.
michael@0 666 pref("full-screen-api.ignore-widgets", true);
michael@0 667
michael@0 668 // image visibility prefs.
michael@0 669 // image visibility tries to only keep images near the viewport decoded instead
michael@0 670 // of keeping all images decoded.
michael@0 671 pref("layout.imagevisibility.enabled", true);
michael@0 672 pref("layout.imagevisibility.numscrollportwidths", 1);
michael@0 673 pref("layout.imagevisibility.numscrollportheights", 1);
michael@0 674
michael@0 675 // Don't enable <input type=color> yet as we don't have a color picker
michael@0 676 // implemented for Windows Metro (bug 895464)
michael@0 677 pref("dom.forms.color", false);

mercurial