autofocus and elem.focus() don't work for image map 'area' elements
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | verified |
People
(Reporter: dholbert, Assigned: sefeng)
References
Details
Attachments
(3 files)
STR:
- Load attached testcase.
- (optional) Press Enter.
EXPECTED RESULTS:
- You should see a circular focus-ring drawn over the yellow image.
- When you press enter, that should activate the focused area's link, which you can confirm by seeing a
#
get added to the URL shown in your URLbar.
ACTUAL RESULTS:
- No focus area is drawn.
- If you press enter, nothing happens.
ADDITIONAL NOTE:
The image/area seems to get sort-of autofocused, because if you press Tab
after loading the testcase, you can see that focus moves to "after-textfield" (which implies that the thing just before that textfield was previously focused). And then if you press Shift-Tab
to move back, you can see that the image correctly gains focus (at which point pressing enter works correctly).
Reporter | ||
Comment 1•5 months ago
|
||
Reporter | ||
Updated•5 months ago
|
Reporter | ||
Comment 2•5 months ago
|
||
Chromium and WebKit give EXPECTED RESULTS.
Firefox Nightly 124.0a1 (2024-02-02) (64-bit) gives ACTUAL RESULTS.
Reporter | ||
Updated•5 months ago
|
Comment 3•4 months ago
|
||
Sean, have you looked at this stuff recently?
Assignee | ||
Comment 4•4 months ago
|
||
Updated•4 months ago
|
Pushed by sefeng@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/689c94c41471 Fix focus gets incorrectly cleared by PresShell::FixUpFocus if the focus is on area element r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/44476 for changes under testing/web-platform/tests
Comment 7•4 months ago
•
|
||
.
Comment 8•4 months ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
Assignee | ||
Updated•4 months ago
|
Updated•4 months ago
|
Comment 11•4 months ago
|
||
Reproduced the issue with Firefox 124.0a1 (2024-02-05) on Windows 10x64. After following the steps from comment 0 the focus is not displayed and nothing happens after pressing the Enter key.
The issue is verified fixed with Firefox 124.0b2 on Windows 10x64, macOS 13 and Ubuntu 23.1. The focus is displayed after loading the test case and a #
is added to the link after pressing the Enter key.
Description
•