Closed
Bug 990171
Opened 12 years ago
Closed 11 years ago
[Email] Fix NPE in FormNavigation card handling
Categories
(Firefox OS Graveyard :: Gaia::E-Mail, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.4 S5 (11apr)
People
(Reporter: mcav, Assigned: mcav)
Details
(Whiteboard: [p=1])
Attachments
(1 file)
No description provided.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → m
Status: NEW → ASSIGNED
Whiteboard: [p=1]
Target Milestone: --- → 1.4 S4 (28mar)
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #8399585 -
Flags: review?(jrburke)
| Assignee | ||
Comment 2•12 years ago
|
||
STR:
1. Set up a new mail account in Firefox Nightly.
2. On the password field, hit "Enter" on your computer's keyboard after typing your password.
3. See an error in the JS console.
Updated•12 years ago
|
Target Milestone: 1.4 S4 (28mar) → 1.4 S5 (11apr)
Comment 3•12 years ago
|
||
Comment on attachment 8399585 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/17827
It looks like the event.preventDefault() was added for the changeset in bug 805501. I suppose so that if you press Enter while focused on the Next button it does not trigger the FormNavigation logic?
I can see the case for wanting to be protective for methods that are used for event handlers or non-handler code, but also a case for onLast handlers for FormNavigation to have more context about what event triggered the onLast call, particularly with FormNavigation.onKeyPress passing event to focusNextInput.
So what about just passing in the event to onLast in the FormNavigation instead? You can flip review back to me once we have the final path sorted.
Attachment #8399585 -
Flags: review?(jrburke)
| Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 8399585 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/17827
Sounds reasonable to me.
Attachment #8399585 -
Flags: review?(jrburke)
Updated•11 years ago
|
Attachment #8399585 -
Flags: review?(jrburke) → review+
| Assignee | ||
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•