browser/metro/profile/metro.js

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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

mercurial