Pressing Space on a <details> summary no longer inhibits scrolling
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: me, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0
Steps to reproduce:
- Have a <details> element.
- Focus its summary.
- Press Space.
Sample URL: data:text/html,<a href>link</a><details open><div style=background:red;height:100vh></div></details><div style=background:lime;height:100vh><a href>link</a></div><div style=background:blue;height:100vh></div>
Actual results:
- The <details> element collapses or expands.
- The page scrolls down by a screenful.
Expected results:
The page should not have scrolled down.
In regular JS terms: the summary’s keydown handler that toggles details.open should have called event.preventDefault().
This is a regression in I think the last year, maybe somewhere around January at a guess. I’ve been meaning to file this bug for ages. I haven’t tried bisecting.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
Seems more like an event-handling regression in DOM than WebRender. Re-directing for evaluation.
Comment 3•2 years ago
|
||
I can reproduce it from the build of 2020-11-01
. I needinfo'd myself to take further looking.
Updated•2 years ago
|
Description
•