зеркало из https://github.com/mozilla/gecko-dev.git
9efc5c7c42
Autofill Storage consists of two parts: Valid Fields and Computed Fields. Valid Fields should store values provided by users, while Computed Fields are values we derive from the user-provided data. For example, when a user enters a "tel" number, we compute "tel-country-code", "tel-national", and "tel-area-code" based on the "tel" number provided. However, in the current format, the "name" field is stored as a computed field, while "given/additional/family" names are stored as valid fields. This approach can lead to the loss of user input. For instance, if a user enters "Mr. John Doe" as the name, the current approach strips the "Mr." part and stores"John" as the given name and "Doe" as the family name. When the next time we autofill a "name" field, we will then only fill in "John Doe" This patch moves the "name" field to valid fields to ensure the user's input is always stored. Differential Revision: https://phabricator.services.mozilla.com/D197658 |
||
---|---|---|
.. | ||
actors | ||
components | ||
content | ||
crashreporter | ||
docs | ||
library | ||
locales | ||
locales-preview | ||
modules | ||
mozapps | ||
profile | ||
system | ||
themes | ||
xre | ||
.eslintrc.js | ||
l10n-registry.manifest | ||
moz.build | ||
moz.configure | ||
toolkit.mozbuild |