зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1361560 - Enable Form Autofill by default on Nightly. r=lchang
MozReview-Commit-ID: Ekei9H3nnGW --HG-- extra : rebase_source : 91899aa99c9581218902400c00f57fe4bff998a5
This commit is contained in:
Родитель
f6aa6a7019
Коммит
6d13b289cd
|
@ -1636,7 +1636,11 @@ 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);
|
||||
#else
|
||||
pref("browser.formautofill.experimental", false);
|
||||
#endif
|
||||
pref("browser.formautofill.enabled", true);
|
||||
pref("browser.formautofill.loglevel", "Warn");
|
||||
|
||||
|
|
|
@ -41,8 +41,6 @@ let windowListener = {
|
|||
};
|
||||
|
||||
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.experimental")) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -5,14 +5,19 @@
|
|||
<!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 <input>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">
|
||||
|
@ -21,4 +26,4 @@
|
|||
<button id="edit" disabled="disabled">Edit</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -57,7 +57,6 @@ function updateAddress(guid, address) {
|
|||
function formAutoFillCommonSetup() {
|
||||
let chromeURL = SimpleTest.getTestFileURL("formautofill_parent_utils.js");
|
||||
formFillChromeScript = SpecialPowers.loadChromeScript(chromeURL);
|
||||
SpecialPowers.setBoolPref("dom.forms.autocomplete.experimental", true);
|
||||
formFillChromeScript.addMessageListener("onpopupshown", ({results}) => {
|
||||
gLastAutoCompleteResults = results;
|
||||
if (gPopupShownListener) {
|
||||
|
@ -66,7 +65,6 @@ function formAutoFillCommonSetup() {
|
|||
});
|
||||
|
||||
SimpleTest.registerCleanupFunction(() => {
|
||||
SpecialPowers.clearUserPref("dom.forms.autocomplete.experimental");
|
||||
formFillChromeScript.sendAsyncMessage("cleanup");
|
||||
formFillChromeScript.destroy();
|
||||
});
|
||||
|
|
|
@ -120,11 +120,9 @@ function runHeuristicsTest(patterns, fixturePathPrefix) {
|
|||
|
||||
add_task(function* head_initialize() {
|
||||
Services.prefs.setBoolPref("browser.formautofill.experimental", true);
|
||||
Services.prefs.setBoolPref("dom.forms.autocomplete.experimental", true);
|
||||
|
||||
// Clean up after every test.
|
||||
do_register_cleanup(function head_cleanup() {
|
||||
Services.prefs.clearUserPref("browser.formautofill.experimental");
|
||||
Services.prefs.clearUserPref("dom.forms.autocomplete.experimental");
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче