Neither chrome://settings/autofill no PaymentRequest set the languageCode for newly created i18n addresses |
||||
Issue descriptionChrome Version : 63.0.3213.3 OS: Linux URLs (if applicable) : chrome://settings/autofill https://rsolomakhin.github.io/pr/free/ What steps will reproduce the problem? 1. Add a Japanese address either in chrome://settings/autofill or via PaymentRequest UI on desktop. 2. Attempt to ship to this address from https://rsolomakhin.github.io/pr/free/ via PaymentRequest. What is the expected result? The shipping address should have either ja-Latn or ja-JP languageCode field. What happens instead of that? The shipping address has empty languageCode field. Please provide any additional information below. Attach a screenshot if possible. Android works as expected. UserAgentString: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3213.3 Safari/537.36
,
Sep 18 2017
Demetrios: can you explain how profile creation works in chrome://settings/autofill so I can fix this issue there?
,
Sep 18 2017
Hi Rouslan. Clicking "save" on the chrome://settings/autofill "add address" dialog ends up calling chrome.autofillPrivate.saveAddress() API at [1], which is implemented at [2]. Passed that point, I am not familiar with how this information is routed to other parts of Chrome. [1] https://cs.chromium.org/chromium/src/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js?l=101 [2] https://cs.chromium.org/chromium/src/chrome/browser/extensions/api/autofill_private/autofill_private_api.cc?l=176
,
Sep 19 2017
Demetrios: Does JavaScript keep around the languageCode parameter that comes back with the list of the address input fields anywhere?
,
Sep 19 2017
Within the "add address dialog" the country code of the currently displayed input fields is kept at [1]. There is also a list of all countries, which includes the country code for each entry, at [2]. [1] https://cs.chromium.org/chromium/src/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js?l=186 [2] https://cs.chromium.org/chromium/src/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js?l=55
,
May 1 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Sep 18 2017