Bug 788653 - Make enablePrivilege pref name more dire. r=bholley

This commit is contained in:
Joel Maher 2012-10-18 08:03:37 -04:00
parent 7d0d6c3a63
commit 05d832e89a
3 changed files with 4 additions and 3 deletions

View File

@ -448,7 +448,7 @@ user_pref("extensions.getAddons.search.browseURL", "http://%(server)s/extensions
user_pref("extensions.getAddons.search.url", "http://%(server)s/extensions-dummy/repositorySearchURL");
// Make enablePrivilege continue to work for test code. :-(
user_pref("security.enablePrivilege.enable_for_tests", true);
user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
// Get network events.
user_pref("network.activity.blipIntervalMilliseconds", 250);

View File

@ -113,7 +113,7 @@ nsSecurityNameSet::InitializeNameSet(nsIScriptContext* aScriptContext)
// uses enablePrivilege. If you're not doing test automation, you _must_ not
// flip this pref, or you will be exposing all your users to security
// vulnerabilities.
if (!Preferences::GetBool("security.enablePrivilege.enable_for_tests"))
if (!Preferences::GetBool("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer"))
return NS_OK;
/* Define PrivilegeManager object with the necessary "static" methods. */

View File

@ -34,4 +34,5 @@ user_pref("javascript.options.methodjit_always", false);
user_pref("javascript.options.strict", false);
user_pref("javascript.options.werror", false);
user_pref("toolkit.startup.max_resumed_crashes", -1);
user_pref("security.enablePrivilege.enable_for_tests", true);
user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);