Bug 1326153 - Change Form Autofill feature flag to browser.formautofill.experimental draft
authorScott Wu <scottcwwu@gmail.com>
Thu, 29 Dec 2016 16:09:33 +0800
changeset 454460 df19453950b148b4f35723da2547416ec84d412b
parent 454351 143bb4b9249e528e658f6ccc449991794b8675f8
child 540715 bb0435fe720eb4e3b8ba586128238f60098c1600
push id39936
push userbmo:scwwu@mozilla.com
push dateThu, 29 Dec 2016 10:53:34 +0000
bugs1326153
milestone53.0a1
Bug 1326153 - Change Form Autofill feature flag to browser.formautofill.experimental MozReview-Commit-ID: 6QF0RVLRS61
browser/app/profile/firefox.js
browser/extensions/formautofill/bootstrap.js
browser/extensions/formautofill/test/unit/head.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1545,9 +1545,9 @@ pref("browser.crashReports.unsubmittedCh
 
 #ifdef NIGHTLY_BUILD
 // Enable the (fairly costly) client/server validation on nightly only. The other prefs
 // controlling validation are located in /services/sync/services-sync.js
 pref("services.sync.validation.enabled", true);
 #endif
 
 // Preferences for the form autofill system extension
-pref("browser.formautofill.enabled", false);
+pref("browser.formautofill.experimental", false);
--- a/browser/extensions/formautofill/bootstrap.js
+++ b/browser/extensions/formautofill/bootstrap.js
@@ -12,17 +12,17 @@ Cu.import("resource://gre/modules/Servic
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 XPCOMUtils.defineLazyModuleGetter(this, "FormAutofillParent",
                                   "resource://formautofill/FormAutofillParent.jsm");
 
 function startup() {
   // Besides this pref, we'll need dom.forms.autocomplete.experimental enabled
   // as well to make sure form autocomplete works correctly.
-  if (!Services.prefs.getBoolPref("browser.formautofill.enabled")) {
+  if (!Services.prefs.getBoolPref("browser.formautofill.experimental")) {
     return;
   }
 
   FormAutofillParent.init();
   Services.mm.loadFrameScript("chrome://formautofill/content/FormAutofillContent.js", true);
 }
 
 function shutdown() {}
--- a/browser/extensions/formautofill/test/unit/head.js
+++ b/browser/extensions/formautofill/test/unit/head.js
@@ -77,18 +77,18 @@ function getTempFile(leafName) {
       file.remove(false);
     }
   });
 
   return file;
 }
 
 add_task(function* test_common_initialize() {
-  Services.prefs.setBoolPref("browser.formautofill.enabled", true);
+  Services.prefs.setBoolPref("browser.formautofill.experimental", true);
   Services.prefs.setBoolPref("dom.forms.autocomplete.experimental", true);
   loadFormAutofillContent();
 
   // Clean up after every test.
   do_register_cleanup(() => {
-    Services.prefs.clearUserPref("browser.formautofill.enabled");
+    Services.prefs.clearUserPref("browser.formautofill.experimental");
     Services.prefs.clearUserPref("dom.forms.autocomplete.experimental");
   });
 });