addon-sdk/source/python-lib/cuddlefish/prefs.py

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial