Bug 1385201 - [Form Autofill] Rename "extensions.formautofill.experimental". r=MattN

MozReview-Commit-ID: 8SRu5PoQcMO

--HG--
extra : rebase_source : b841b8890b2c0bf607f677cdd9a824ef3e4e63e5
This commit is contained in:
Luke Chang 2017-07-28 15:50:48 +08:00
Родитель f29f9f515a
Коммит 6cab6486e4
4 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -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