Open Bug 1020819 Opened 10 years ago Updated 1 year ago

[meta] Honour field attributes/restrictions in Form Autofill

Categories

(Toolkit :: Form Autofill, defect)

defect

Tracking

()

People

(Reporter: MattN, Unassigned)

References

(Depends on 6 open bugs, Blocks 1 open bug)

Details

(Keywords: meta)

A user may have a completed or incomplete auto-fill profile which doesn't meet the requirements of the <form> that requestAutocomplete was called on. We need to ensure that we don't perform any action that a user couldn't manually do or cause validity issues (except apparently @pattern is exempt for some reason). "A user agent prefilling a form control's value must not cause that control to suffer from a type mismatch, suffer from being too long, suffer from being too short, suffer from an underflow, suffer from an overflow, or suffer from a step mismatch. Except when autofilling for requestAutocomplete(), a user agent prefilling a form control's value must not cause that control to suffer from a pattern mismatch either. Where possible given the control's constraints, user agents must use the format given as canonical in the aforementioned table. Where it's not possible for the canonical format to be used, user agents should use heuristics to attempt to convert values so that they can be used." IMO the conversion heuristics should be handled in separate bugs from the initial bugs which prevent invalid data from being autofilled. There is more information and examples at http://www.whatwg.org/specs/web-apps/current-work/#processing-model-2
Depends on: 1020829
Once the UX of how to handle a mismatch between a profile and a form's requirement is settled in bug 1020829, dependencies for implementing the UX can be filed.
Depends on: 1020837
Depends on: 1020839
Depends on: 1020852
This bug still applies to Form Autofill so I'm morphing it.
Summary: [meta] Honour field attributes/restrictions in requestAutocomplete → [meta] Honour field attributes/restrictions in Form Autofill
Depends on: 1021887
Depends on: 1021894
Component: Form Manager → Form Autofill
Depends on: 1422404
Depends on: 1436793
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.