1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/addon-sdk/source/python-lib/cuddlefish/prefs.py Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,119 @@ 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 +DEFAULT_COMMON_PREFS = { 1.9 + # allow debug output via dump to be printed to the system console 1.10 + # (setting it here just in case, even though PlainTextConsole also 1.11 + # sets this preference) 1.12 + 'browser.dom.window.dump.enabled': True, 1.13 + # warn about possibly incorrect code 1.14 + 'javascript.options.showInConsole': True, 1.15 + 1.16 + # Allow remote connections to the debugger 1.17 + 'devtools.debugger.remote-enabled' : True, 1.18 + 1.19 + 'extensions.sdk.console.logLevel': 'info', 1.20 + 1.21 + 'extensions.checkCompatibility.nightly' : False, 1.22 + 1.23 + # Disable extension updates and notifications. 1.24 + 'extensions.update.enabled' : False, 1.25 + 'extensions.update.notifyUser' : False, 1.26 + 1.27 + # From: 1.28 + # http://hg.mozilla.org/mozilla-central/file/1dd81c324ac7/build/automation.py.in#l372 1.29 + # Only load extensions from the application and user profile. 1.30 + # AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION 1.31 + 'extensions.enabledScopes' : 5, 1.32 + # Disable metadata caching for installed add-ons by default 1.33 + 'extensions.getAddons.cache.enabled' : False, 1.34 + # Disable intalling any distribution add-ons 1.35 + 'extensions.installDistroAddons' : False, 1.36 + # Allow installing extensions dropped into the profile folder 1.37 + 'extensions.autoDisableScopes' : 10, 1.38 + 1.39 + # Disable app update 1.40 + 'app.update.enabled' : False, 1.41 + 1.42 + # Point update checks to a nonexistent local URL for fast failures. 1.43 + 'extensions.update.url' : 'http://localhost/extensions-dummy/updateURL', 1.44 + 'extensions.blocklist.url' : 'http://localhost/extensions-dummy/blocklistURL', 1.45 + # Make sure opening about:addons won't hit the network. 1.46 + 'extensions.webservice.discoverURL' : 'http://localhost/extensions-dummy/discoveryURL' 1.47 +} 1.48 + 1.49 +DEFAULT_FENNEC_PREFS = { 1.50 + 'browser.console.showInPanel': True, 1.51 + 'browser.firstrun.show.uidiscovery': False 1.52 +} 1.53 + 1.54 +# When launching a temporary new Firefox profile, use these preferences. 1.55 +DEFAULT_FIREFOX_PREFS = { 1.56 + 'browser.startup.homepage' : 'about:blank', 1.57 + 'startup.homepage_welcome_url' : 'about:blank', 1.58 + 'devtools.errorconsole.enabled' : True, 1.59 + 'devtools.chrome.enabled' : True, 1.60 + 1.61 + # From: 1.62 + # http://hg.mozilla.org/mozilla-central/file/1dd81c324ac7/build/automation.py.in#l388 1.63 + # Make url-classifier updates so rare that they won't affect tests. 1.64 + 'urlclassifier.updateinterval' : 172800, 1.65 + # Point the url-classifier to a nonexistent local URL for fast failures. 1.66 + 'browser.safebrowsing.provider.0.gethashURL' : 'http://localhost/safebrowsing-dummy/gethash', 1.67 + 'browser.safebrowsing.provider.0.updateURL' : 'http://localhost/safebrowsing-dummy/update', 1.68 + } 1.69 + 1.70 +# When launching a temporary new Thunderbird profile, use these preferences. 1.71 +# Note that these were taken from: 1.72 +# http://mxr.mozilla.org/comm-central/source/mail/test/mozmill/runtest.py 1.73 +DEFAULT_THUNDERBIRD_PREFS = { 1.74 + # say no to slow script warnings 1.75 + 'dom.max_chrome_script_run_time': 200, 1.76 + 'dom.max_script_run_time': 0, 1.77 + # do not ask about being the default mail client 1.78 + 'mail.shell.checkDefaultClient': False, 1.79 + # disable non-gloda indexing daemons 1.80 + 'mail.winsearch.enable': False, 1.81 + 'mail.winsearch.firstRunDone': True, 1.82 + 'mail.spotlight.enable': False, 1.83 + 'mail.spotlight.firstRunDone': True, 1.84 + # disable address books for undisclosed reasons 1.85 + 'ldap_2.servers.osx.position': 0, 1.86 + 'ldap_2.servers.oe.position': 0, 1.87 + # disable the first use junk dialog 1.88 + 'mailnews.ui.junk.firstuse': False, 1.89 + # other unknown voodoo 1.90 + # -- dummied up local accounts to stop the account wizard 1.91 + 'mail.account.account1.server' : "server1", 1.92 + 'mail.account.account2.identities' : "id1", 1.93 + 'mail.account.account2.server' : "server2", 1.94 + 'mail.accountmanager.accounts' : "account1,account2", 1.95 + 'mail.accountmanager.defaultaccount' : "account2", 1.96 + 'mail.accountmanager.localfoldersserver' : "server1", 1.97 + 'mail.identity.id1.fullName' : "Tinderbox", 1.98 + 'mail.identity.id1.smtpServer' : "smtp1", 1.99 + 'mail.identity.id1.useremail' : "tinderbox@invalid.com", 1.100 + 'mail.identity.id1.valid' : True, 1.101 + 'mail.root.none-rel' : "[ProfD]Mail", 1.102 + 'mail.root.pop3-rel' : "[ProfD]Mail", 1.103 + 'mail.server.server1.directory-rel' : "[ProfD]Mail/Local Folders", 1.104 + 'mail.server.server1.hostname' : "Local Folders", 1.105 + 'mail.server.server1.name' : "Local Folders", 1.106 + 'mail.server.server1.type' : "none", 1.107 + 'mail.server.server1.userName' : "nobody", 1.108 + 'mail.server.server2.check_new_mail' : False, 1.109 + 'mail.server.server2.directory-rel' : "[ProfD]Mail/tinderbox", 1.110 + 'mail.server.server2.download_on_biff' : True, 1.111 + 'mail.server.server2.hostname' : "tinderbox", 1.112 + 'mail.server.server2.login_at_startup' : False, 1.113 + 'mail.server.server2.name' : "tinderbox@invalid.com", 1.114 + 'mail.server.server2.type' : "pop3", 1.115 + 'mail.server.server2.userName' : "tinderbox", 1.116 + 'mail.smtp.defaultserver' : "smtp1", 1.117 + 'mail.smtpserver.smtp1.hostname' : "tinderbox", 1.118 + 'mail.smtpserver.smtp1.username' : "tinderbox", 1.119 + 'mail.smtpservers' : "smtp1", 1.120 + 'mail.startup.enabledMailCheckOnce' : True, 1.121 + 'mailnews.start_page_override.mstone' : "ignore", 1.122 + }