prefs.py 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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/.
  4. DEFAULT_COMMON_PREFS = {
  5. # allow debug output via dump to be printed to the system console
  6. # (setting it here just in case, even though PlainTextConsole also
  7. # sets this preference)
  8. 'browser.dom.window.dump.enabled': True,
  9. # warn about possibly incorrect code
  10. 'javascript.options.strict': True,
  11. 'javascript.options.showInConsole': True,
  12. # Allow remote connections to the debugger
  13. 'devtools.debugger.remote-enabled' : True,
  14. 'extensions.sdk.console.logLevel': 'info',
  15. 'extensions.checkCompatibility.nightly' : False,
  16. # Disable extension updates and notifications.
  17. 'extensions.update.enabled' : False,
  18. 'extensions.update.notifyUser' : False,
  19. # From:
  20. # http://hg.mozilla.org/mozilla-central/file/1dd81c324ac7/build/automation.py.in#l372
  21. # Only load extensions from the application and user profile.
  22. # AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION
  23. 'extensions.enabledScopes' : 5,
  24. # Disable metadata caching for installed add-ons by default
  25. 'extensions.getAddons.cache.enabled' : False,
  26. # Disable intalling any distribution add-ons
  27. 'extensions.installDistroAddons' : False,
  28. # Allow installing extensions dropped into the profile folder
  29. 'extensions.autoDisableScopes' : 10,
  30. # Disable app update
  31. 'app.update.enabled' : False,
  32. # Point update checks to a nonexistent local URL for fast failures.
  33. 'extensions.update.url' : 'http://localhost/extensions-dummy/updateURL',
  34. 'extensions.blocklist.url' : 'http://localhost/extensions-dummy/blocklistURL',
  35. # Make sure opening about:addons won't hit the network.
  36. 'extensions.webservice.discoverURL' : 'http://localhost/extensions-dummy/discoveryURL'
  37. }
  38. DEFAULT_FENNEC_PREFS = {
  39. 'browser.console.showInPanel': True,
  40. 'browser.firstrun.show.uidiscovery': False
  41. }
  42. # When launching a temporary new Firefox profile, use these preferences.
  43. DEFAULT_FIREFOX_PREFS = {
  44. 'browser.startup.homepage' : 'about:blank',
  45. 'startup.homepage_welcome_url' : 'about:blank',
  46. 'devtools.errorconsole.enabled' : True,
  47. 'devtools.chrome.enabled' : True,
  48. # From:
  49. # http://hg.mozilla.org/mozilla-central/file/1dd81c324ac7/build/automation.py.in#l388
  50. # Make url-classifier updates so rare that they won't affect tests.
  51. 'urlclassifier.updateinterval' : 172800,
  52. # Point the url-classifier to a nonexistent local URL for fast failures.
  53. 'browser.safebrowsing.provider.0.gethashURL' : 'http://localhost/safebrowsing-dummy/gethash',
  54. 'browser.safebrowsing.provider.0.updateURL' : 'http://localhost/safebrowsing-dummy/update',
  55. }
  56. # When launching a temporary new Thunderbird profile, use these preferences.
  57. # Note that these were taken from:
  58. # http://mxr.mozilla.org/comm-central/source/mail/test/mozmill/runtest.py
  59. DEFAULT_THUNDERBIRD_PREFS = {
  60. # say no to slow script warnings
  61. 'dom.max_chrome_script_run_time': 200,
  62. 'dom.max_script_run_time': 0,
  63. # do not ask about being the default mail client
  64. 'mail.shell.checkDefaultClient': False,
  65. # disable non-gloda indexing daemons
  66. 'mail.winsearch.enable': False,
  67. 'mail.winsearch.firstRunDone': True,
  68. 'mail.spotlight.enable': False,
  69. 'mail.spotlight.firstRunDone': True,
  70. # disable address books for undisclosed reasons
  71. 'ldap_2.servers.osx.position': 0,
  72. 'ldap_2.servers.oe.position': 0,
  73. # disable the first use junk dialog
  74. 'mailnews.ui.junk.firstuse': False,
  75. # other unknown voodoo
  76. # -- dummied up local accounts to stop the account wizard
  77. 'mail.account.account1.server' : "server1",
  78. 'mail.account.account2.identities' : "id1",
  79. 'mail.account.account2.server' : "server2",
  80. 'mail.accountmanager.accounts' : "account1,account2",
  81. 'mail.accountmanager.defaultaccount' : "account2",
  82. 'mail.accountmanager.localfoldersserver' : "server1",
  83. 'mail.identity.id1.fullName' : "Tinderbox",
  84. 'mail.identity.id1.smtpServer' : "smtp1",
  85. 'mail.identity.id1.useremail' : "tinderbox@invalid.com",
  86. 'mail.identity.id1.valid' : True,
  87. 'mail.root.none-rel' : "[ProfD]Mail",
  88. 'mail.root.pop3-rel' : "[ProfD]Mail",
  89. 'mail.server.server1.directory-rel' : "[ProfD]Mail/Local Folders",
  90. 'mail.server.server1.hostname' : "Local Folders",
  91. 'mail.server.server1.name' : "Local Folders",
  92. 'mail.server.server1.type' : "none",
  93. 'mail.server.server1.userName' : "nobody",
  94. 'mail.server.server2.check_new_mail' : False,
  95. 'mail.server.server2.directory-rel' : "[ProfD]Mail/tinderbox",
  96. 'mail.server.server2.download_on_biff' : True,
  97. 'mail.server.server2.hostname' : "tinderbox",
  98. 'mail.server.server2.login_at_startup' : False,
  99. 'mail.server.server2.name' : "tinderbox@invalid.com",
  100. 'mail.server.server2.type' : "pop3",
  101. 'mail.server.server2.userName' : "tinderbox",
  102. 'mail.smtp.defaultserver' : "smtp1",
  103. 'mail.smtpserver.smtp1.hostname' : "tinderbox",
  104. 'mail.smtpserver.smtp1.username' : "tinderbox",
  105. 'mail.smtpservers' : "smtp1",
  106. 'mail.startup.enabledMailCheckOnce' : True,
  107. 'mailnews.start_page_override.mstone' : "ignore",
  108. }