[Staples.com] Exp date format is incorrectly auto-filled and highlighter overlaps CC logo placeholder
Categories
(Toolkit :: Form Autofill, defect, P2)
Tracking
()
People
(Reporter: tbabos, Assigned: abr)
References
(Blocks 2 open bugs, )
Details
(Whiteboard: [cc-autofill-mvp])
Attachments
(3 files)
Affected version:
All - if CC specific prefs are enabled
Tested on:
Windows 10
MacOS 10.13
Ubuntu 16.04
Steps to reproduce:
- Reach the payment form on staples.com
- Click on the Exp Date field and select any entry from the atuofill dropdown (notice preview and date format in dropdown)
Expected results:
- The expiry date is correctly formatted to ensure field validation pass.
- Card number autofill highlight does not overlap the card logo placeholder for the field.
Actual results:
- The expiry date is incorrectly formatted (also cut off) and does not pass field validation
- Card number autofill highlight overlaps the card logo placeholder for the field.
Note:
Exp Date field:
<input type="tel" class="fs-block" maxlength="5" placeholder="Exp Date*" id="expDate" name="ExpirationDate" onkeyup="$cc.expiry.call(this,event)" onfocusout="$cc.expiryErrMsg.call(this,event)" autocomplete="off">
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Updating whiteboard tag for team triage.
![]() |
||
Updated•5 years ago
|
![]() |
||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
The severity field is not set for this bug.
:MattN, could you have a look please?
For more information, please visit auto_nag documentation.
![]() |
||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D81630
Assignee | ||
Comment 4•5 years ago
|
||
The issue comes from how the truncation code interacts with expiration date information. The attached proof-of-concept patch (layered on top of the POC patch from Bug 1428269) demonstrates a fix based on the user's own locale (which is likely to match the website in use).
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
Comment 8•5 years ago
|
||
Reproduced the initial issue in Beta version 79 using Windows 10.
Verified - Fixed in latest Nightly 80.0a1 (2020-07-07) (build id: 20200707094747), the expiry date is correctly formatted but the card logo is not displayed after autofill the Card Number field. Note that if I paste the same credit card number manually (copy-paste) the logo is displayed accordingly (see the video attachment below).
Comment 9•5 years ago
|
||
Assignee | ||
Comment 10•5 years ago
|
||
(In reply to Alin Ilea from comment #8)
the expiry date is correctly formatted but the card logo is not displayed after autofill the Card Number field. Note that if I paste the same credit card number manually (copy-paste) the logo is displayed accordingly (see the video attachment below).
Thanks! I've filed that issue as Bug 1651123.
Updated•5 years ago
|
Description
•