зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1385201 - [Form Autofill] Rename "extensions.formautofill.experimental". r=MattN
MozReview-Commit-ID: 8SRu5PoQcMO --HG-- extra : rebase_source : b841b8890b2c0bf607f677cdd9a824ef3e4e63e5
This commit is contained in:
Родитель
f29f9f515a
Коммит
6cab6486e4
|
@ -1695,10 +1695,12 @@ pref("browser.crashReports.unsubmittedCheck.chancesUntilSuppress", 4);
|
|||
pref("browser.crashReports.unsubmittedCheck.autoSubmit", false);
|
||||
|
||||
// Preferences for the form autofill system extension
|
||||
// The value of "extensions.formautofill.available" can be "on", "off" and "detect".
|
||||
// The "detect" means it's enabled if conditions defined in the extension are met.
|
||||
#ifdef NIGHTLY_BUILD
|
||||
pref("extensions.formautofill.experimental", true);
|
||||
pref("extensions.formautofill.available", "on");
|
||||
#else
|
||||
pref("extensions.formautofill.experimental", false);
|
||||
pref("extensions.formautofill.available", "detect");
|
||||
#endif
|
||||
pref("extensions.formautofill.addresses.enabled", true);
|
||||
pref("extensions.formautofill.firstTimeUse", true);
|
||||
|
|
|
@ -41,7 +41,7 @@ function onMaybeOpenPopup(evt) {
|
|||
}
|
||||
|
||||
function startup() {
|
||||
if (!Services.prefs.getBoolPref("extensions.formautofill.experimental")) {
|
||||
if (Services.prefs.getStringPref("extensions.formautofill.available") != "on") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -201,13 +201,13 @@ function objectMatches(object, fields) {
|
|||
}
|
||||
|
||||
add_task(async function head_initialize() {
|
||||
Services.prefs.setBoolPref("extensions.formautofill.experimental", true);
|
||||
Services.prefs.setStringPref("extensions.formautofill.available", "on");
|
||||
Services.prefs.setBoolPref("extensions.formautofill.heuristics.enabled", true);
|
||||
Services.prefs.setBoolPref("dom.forms.autocomplete.formautofill", true);
|
||||
|
||||
// Clean up after every test.
|
||||
do_register_cleanup(function head_cleanup() {
|
||||
Services.prefs.clearUserPref("extensions.formautofill.experimental");
|
||||
Services.prefs.clearUserPref("extensions.formautofill.available");
|
||||
Services.prefs.clearUserPref("extensions.formautofill.heuristics.enabled");
|
||||
Services.prefs.clearUserPref("dom.forms.autocomplete.formautofill");
|
||||
});
|
||||
|
|
|
@ -379,7 +379,7 @@ user_pref("media.openUnsupportedTypeWithExternalApp", false);
|
|||
user_pref("signon.rememberSignons", false);
|
||||
|
||||
// Enable form autofill feature testing.
|
||||
user_pref("extensions.formautofill.experimental", true);
|
||||
user_pref("extensions.formautofill.available", "on");
|
||||
|
||||
// Disable all recommended Marionette preferences for Gecko tests.
|
||||
// The prefs recommended by Marionette are typically geared towards
|
||||
|
|
Загрузка…
Ссылка в новой задаче