Open
Bug 1370193
Opened 7 years ago
Updated 2 years ago
[Form Autofill] Support "country-name" fields with more countries and more languages
Categories
(Toolkit :: Form Autofill, enhancement, P3)
Toolkit
Form Autofill
Tracking
()
NEW
People
(Reporter: lchang, Unassigned)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [form autofill:V2])
In MVP, the "country-name" attribute only supports "US" in en-US (bug 1358944). We should extend it to support more countries in more languages after MVP lands.
Reporter | ||
Comment 1•7 years ago
|
||
We can leverage "regionNames.properties" like below.
> let regionNames = {};
> let countries = Services.strings.createBundle("chrome://global/locale/regionNames.properties").getSimpleEnumeration();
> while (countries.hasMoreElements()) {
> let country = countries.getNext().QueryInterface(Components.interfaces.nsIPropertyElement);
> regionNames[country.key.toUpperCase()] = country.value;
> }
Updated•7 years ago
|
Whiteboard: [form autofill] → [form autofill:V2]
Updated•7 years ago
|
Blocks: multiple-country-support-meta
Updated•7 years ago
|
Blocks: DE-CA-address-support-meta
Updated•7 years ago
|
Component: Form Manager → Form Autofill
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•