Closed Bug 1509521 Opened 5 years ago Closed 5 years ago

Phone field from "Form & Autofill" accepts any character

Categories

(Toolkit :: Form Autofill, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox63 --- affected
firefox64 --- affected
firefox65 --- affected

People

(Reporter: mberlinger, Unassigned)

Details

(Keywords: regressionwindow-wanted)

[Affected versions]:
- 65.0a1 (BuildId 20181123100103)
- 64.0b12
- 63.0.3

[Affected platforms]:
- Windows 7x86
- Ubuntu 16.04x64
- Windows 10x64
- mac OS 10.13

[Preconditions]:
- extensions.formautofill.available set to "on".

[Steps to reproduce]:
1. Launch Firefox.
2. Go to about:preferences#privacy
3. From " Form & Autofill" click "Saved Addresses"
4. Click "Add..."
5. Type any character in Phone field and save.

[Expected result]:
- In Phone field you can write any character.

[Actual result]:
- Phone field accepts only numbers.

[Regression range]:
-I'm not sure if this is a regression. I'll investigate this when time permits.

[Additional notes]:
- If you choose US at country and type (e.g. dsfdsfsdf) the string is converted to a phone number but if you type (e.g hgsf76) the string remains as it is.
Valid phone numbers can contain many non-numeric characters e.g. (, , ), and -.  See #24 on https://github.com/googlei18n/libphonenumber/blob/master/FALSEHOODS.md

We leave normalization to PhoneNumber.jsm which uses data from libphonenumber.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.