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