Closed
Bug 2001746
Opened 4 months ago
Closed 4 months ago
moz-box-group throws an error after clicking on whitespace inside of it then pressing a key
Categories
(Toolkit :: UI Widgets, defect, P2)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
147 Branch
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: mstriemer, Assigned: mstriemer)
References
Details
(Whiteboard: [recomp] [srdbb])
Attachments
(1 file)
In handleKeydown we attempt to find the current index of the focused element, but if you click on some whitespace within the moz-box-group and press a key, we still get the keypress event, but on the ul we attached our listener to. It doesn't have a position or a parent with a position since it is the container for positioned elements.
STR
- Render a moz-box-group
- Click on some whitespace in it (but not text that's part of another child element)
- Press a key
Expected results: nothing happens
Actual results: JavaScript error: chrome://global/content/elements/moz-box-group.mjs, line 127: TypeError: can't access property "getAttribute", event.target.closest(...) is null
Updated•4 months ago
|
| Assignee | ||
Comment 1•4 months ago
|
||
| Assignee | ||
Updated•4 months ago
|
Severity: -- → S4
Pushed by mstriemer@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/eaec21428869
https://hg.mozilla.org/integration/autoland/rev/6e7701a430ca
Don't throw in moz-box-group on keypresses without a valid focus target r=akulyk
Comment 3•4 months ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 4 months ago
status-firefox147:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
Updated•3 months ago
|
QA Whiteboard: [qa-triage-done-c148/b147]
You need to log in
before you can comment on or make changes to this bug.
Description
•