Closed
Bug 1416665
Opened 7 years ago
Closed 7 years ago
[Form Autofill] `contactType` support for filling multiple tel* or email fields
Categories
(Toolkit :: Form Autofill, enhancement, P3)
Toolkit
Form Autofill
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: selee, Assigned: selee)
References
(Blocks 1 open bug)
Details
(Whiteboard: [form autofill:V2])
Attachments
(1 file)
According the spec of autofill[1], `contactType` in the autocomplete attribute is for filling the different email or tel* fields in the different categories.
For the purpose of form autofilling, the feature should be able to help users to fill the correct phone or email based on the contact type.
[1] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete-home
Assignee | ||
Comment 1•7 years ago
|
||
Hi Mark,
In the current design, the two same field names with the different `contactType` would be considered as the two different fields.
Hence, both of the fields will be filled with the same value based on a selected profile.
Per our offline discussion, we come out these possible solutions to tweak the behavior of the case with `contactType`:
1. Consider the two same field names as the same field type even they are with the different `contactType`.
- This means the first email or phone number will be filled in one section.
2. Mark the two same field withs the different contactType to the two different sections.
- This means we have to change the definition of a section.
3. Add the different contact type of phone or email in a profile.
- This needs more engineering work to implemenet this. It's related to the perferences and dropdown.
Could you provide your ideas? Thank you.
Flags: needinfo?(mliang)
Comment 2•7 years ago
|
||
We don't want to presume autofilling same value is what users want, so I would suggest not filling the same value for different contactType. This way we'll have the same result if there are two same field names and same autocomplete attribute without contactType.
Flags: needinfo?(mliang)
Assignee | ||
Comment 3•7 years ago
|
||
Hi Mark, Thanks for the opinion. I will use the way of 1 in comment 1.
Assignee: nobody → selee
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8929324 [details]
Bug 1416665 - Deduplicate the detail with the same field name even they are in the different `contactType`.
https://reviewboard.mozilla.org/r/200638/#review206286
Attachment #8929324 -
Flags: review?(lchang) → review+
Comment hidden (mozreview-request) |
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8929324 [details]
Bug 1416665 - Deduplicate the detail with the same field name even they are in the different `contactType`.
https://reviewboard.mozilla.org/r/200638/#review206726
LGTM, thanks!
Attachment #8929324 -
Flags: review?(ralin) → review+
Comment hidden (mozreview-request) |
Comment 10•7 years ago
|
||
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.
hg error in cmd: hg rebase -s 5e00102facfc -d 11865acd3857: rebasing 435237:5e00102facfc "Bug 1416665 - Deduplicate the detail with the same field name even they are in the different `contactType`. r=lchang,ralin" (tip)
other [source] changed browser/extensions/formautofill/test/unit/heuristics/test_multiple_section.js which local [dest] deleted
use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
merging browser/extensions/formautofill/FormAutofillHeuristics.jsm
unresolved conflicts (see hg resolve, then hg rebase --continue)
Updated•7 years ago
|
Keywords: checkin-needed
Comment hidden (mozreview-request) |
Assignee | ||
Comment 12•7 years ago
|
||
The patch is conflict without the one of bug 1415077. The patch is rebased again. Thanks.
Keywords: checkin-needed
Comment 13•7 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/425906b74445
Deduplicate the detail with the same field name even they are in the different `contactType`. r=lchang,ralin
Keywords: checkin-needed
Comment 14•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•