Bug 1361560 - Enable Form Autofill by default on Nightly. r=lchang
☠☠ backed out by b0c35be45a41 ☠ ☠
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Fri, 05 May 2017 17:10:56 -0700
changeset 357166 dfe330725cf7ff795c71c6857a2952fca7322752
parent 357165 ce92201af9b7d2c02b7283a56a82179513252b88
child 357167 ae2b6025570762d669c219d1e20494a20ad092ce
push id31783
push usercbook@mozilla.com
push dateTue, 09 May 2017 12:03:48 +0000
treeherdermozilla-central@b0ff0c5c0a35 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslchang
bugs1361560
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1361560 - Enable Form Autofill by default on Nightly. r=lchang MozReview-Commit-ID: Ekei9H3nnGW
browser/app/profile/firefox.js
browser/extensions/formautofill/content/manageProfiles.xhtml
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1631,17 +1631,22 @@ pref("browser.crashReports.unsubmittedCh
 // chancesUntilSuppress is how many times we'll show the unsubmitted
 // crash report notification across different days and shutdown
 // without a user choice before we suppress the notification for
 // some number of days.
 pref("browser.crashReports.unsubmittedCheck.chancesUntilSuppress", 4);
 pref("browser.crashReports.unsubmittedCheck.autoSubmit", false);
 
 // Preferences for the form autofill system extension
+#ifdef NIGHTLY_BUILD
+pref("browser.formautofill.experimental", true);
+pref("dom.forms.autocomplete.experimental", true);
+#else
 pref("browser.formautofill.experimental", false);
+#endif
 pref("browser.formautofill.enabled", true);
 pref("browser.formautofill.loglevel", "Warn");
 
 // Whether or not to restore a session with lazy-browser tabs.
 pref("browser.sessionstore.restore_tabs_lazily", true);
 
 // Enable safebrowsing v4 tables (suffixed by "-proto") update.
 #ifdef NIGHTLY_BUILD
--- a/browser/extensions/formautofill/content/manageProfiles.xhtml
+++ b/browser/extensions/formautofill/content/manageProfiles.xhtml
@@ -1,24 +1,29 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 <!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-  <title>Profile Autofill - Manage Profiles</title>
+  <title>Form Autofill - Manage Addresses</title>
   <link rel="stylesheet" href="chrome://global/skin/in-content/common.css" />
   <link rel="stylesheet" href="chrome://formautofill/content/manageProfiles.css" />
   <script src="chrome://formautofill/content/manageProfiles.js"></script>
 </head>
 <body>
+  <p style="padding-left: 30px; background: url(chrome://browser/skin/warning.svg) no-repeat left center">
+    Autofill of addresses is only ready for testing in en-US on &lt;input&gt;s which specify field types
+    using the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete" target="_blank">autocomplete attribute</a>.
+    <a href="https://luke-chang.github.io/autofill-demo/basic.html" target="_blank">Demo page</a>
+  </p>
   <fieldset>
-    <legend>Profiles</legend>
+    <legend>Addresses</legend>
     <select id="profiles" size="9" multiple="multiple"/>
   </fieldset>
   <div id="controls-container">
     <button id="remove" disabled="disabled">Remove</button>
     <button id="add">Add</button>
     <button id="edit" disabled="disabled">Edit</button>
   </div>
 </body>
-</html>
\ No newline at end of file
+</html>