preventDefault on wheel events intermittently ignored
Categories
(Core :: Panning and Zooming, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr153 | --- | unaffected |
| firefox159 | --- | wontfix |
| firefox160 | --- | verified |
| firefox161 | --- | verified |
People
(Reporter: mstange, Assigned: botond)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 3 external files, 1 obsolete file)
|
355.38 KB,
application/octet-stream
|
Details |
Steps to reproduce:
- Be on macOS
- Go to attachment 8425744 [details]
- Put your mouse over the circle.
- Do a fling to scroll down, try multiple times.
Expected results:
The entire scroll gesture should be ignored, because the red area calls preventDefault() on wheel events.
Actual results:
There's often one event that gets through, when the finger is lifted from the mouse / touchpad, i.e. as it transitions into momentum wheel event mode.
Comment 1•24 days ago
|
||
Set release status flags based on info from the regressing bug 2072785
:botond, since you are the author of the regressor, bug 2072785, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Updated•24 days ago
|
Comment 2•24 days ago
|
||
| Assignee | ||
Comment 3•24 days ago
|
||
Comment 4•24 days ago
|
||
I didn't specify the log level for inputqueue so that the last log didn't include the one which I believe the most important part.
Comment 5•24 days ago
|
||
From the log:
``
[GPU 57525: Main Thread]: D/apz.inputqueue transmogrifying pan input 4 to PANGESTURE_START for new block 0
[GPU 57525: Main Thread]: D/apz.manager Found target 10d322000 using ancestor lookup
[GPU 57525: Main Thread]: D/apz.manager OverscrollHandoffChain[0] = 10d3da000
[GPU 57525: Main Thread]: D/apz.manager OverscrollHandoffChain[1] = 10d322000
[GPU 57525: Main Thread]: D/apz.inputqueue started new pan gesture block 10845cc20 id 8 for target 10d3da000
[GPU 57525: Main Thread]: D/apz.inputqueue scheduling main thread timeout for target 10d3da000
[GPU 57525: Main Thread]: V/apz.controller 10d3da000(root scrollId=2): CanScroll: event delta is (0,0)
[GPU 57525: Main Thread]: V/apz.controller 10d322000(subframe scrollId=2): CanScroll: event delta is (0,0)
[GPU 57525: Main Thread]: D/apz.inputqueue skip processing pan gesture block 10845cc20; target-confirmed: 0 content-responded: 0 content-response-expi red: 0 waiting-browser-gesture-response: 0 waiting-content-response: 0
[GPU 57525: Main Thread]: D/apz.manager Maybe override txn (0x10845cc20)
[GPU 57525: Main Thread]: D/apz.manager Maybe override layers id (0x1e00000000) -> (0x1e00000000)
[GPU 57525: Main Thread]: D/apz.inputqueue got a target apzc; block=8 guid={ l=0x1e00000000, p=3, v=2 }
[GPU 57525: Main Thread]: D/apz.manager Found target 10d322000 using ancestor lookup
[GPU 57525: Main Thread]: D/apz.manager OverscrollHandoffChain[0] = 10d3da000
[GPU 57525: Main Thread]: D/apz.manager OverscrollHandoffChain[1] = 10d322000
[GPU 57525: Main Thread]: V/apz.controller 10d3da000(root scrollId=2): CanScroll: event delta is (0,0)
[GPU 57525: Main Thread]: V/apz.controller 10d322000(subframe scrollId=2): CanScroll: event delta is (0,0)
[GPU 57525: Main Thread]: D/apz.inputqueue skip processing pan gesture block 10845cc20; target-confirmed: 1 content-responded: 0 content-response-expi red: 0 waiting-browser-gesture-response: 0 waiting-content-response: 0
[GPU 57525: Main Thread]: D/apz.inputqueue got a content response; block=8 preventDefault=0
This is the cause, the block=8 was not preventDefaulted.
Updated•24 days ago
|
Comment 6•20 days ago
|
||
@botond, could this be triaged for severity?
| Assignee | ||
Comment 7•19 days ago
|
||
Going to call this one an S2. I'm planning to have a fix that's confirmed to work up for review today.
Updated•19 days ago
|
| Assignee | ||
Comment 8•19 days ago
|
||
Comment 10•18 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c91352f7593c
https://hg.mozilla.org/mozilla-central/rev/bca537b93a13
Comment 11•18 days ago
|
||
The patch landed in nightly and beta is affected.
:botond, please make an uplift decision for beta:
- For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set
status-firefox160towontfixif the fix can wait for the next release.
Uplift requests can be submitted from Lando: D337809, D339005.
See Requesting an Uplift for documentation on how to request an uplift.
For more information, please visit BugBot documentation.
Comment 12•17 days ago
|
||
To add to comment 11, it's too late for Fx160 beta and RC build, but we could include it in the planned dot release if you add a release uplift request
Comment 13•17 days ago
|
||
firefox-release Uplift Approval Request
- User impact if declined/Reason for urgency: When touchpad scrolling on a page that intends to handle all scroll gestures itself by using an active wheel listener that calls preventDefault() on every event, occasionally an event can incorrectly get through to default handling (scrolling) by the browser.
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: medium
- Explanation of risk level: This area of the code is tricky and historically prone to regressions. However, the risk of a serious regression is low due to having accumulated significant test coverage (and it would be noticed quickly on the nightly channel).
- String changes made/needed?: none
- Is Android affected?: no
| Assignee | ||
Comment 14•17 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D339005
| Assignee | ||
Comment 15•17 days ago
|
||
Requested 160 uplift. To minimize risk, I only requested uplift for the second patch (about zero-delta pan-events) since that's the one we understand to be causing the user-visible symptoms here.
Updated•12 days ago
|
Updated•12 days ago
|
Comment 16•12 days ago
|
||
Reproduced this issue on macOS 13 using Firefox Nightly 161.0a1 (2026-10-28), not only the white ball was rotated, but the entire page scrolls, when the mouse is over the circle and scrolling with the touchpad.
Verified as fixed on latest Firefox Nightly 162.0a1 (2026-11-10) and Firefox 161.0b1 with macOS 13, Ubuntu 26 and Windows 11 the issue no longer persists, now only the white ball is rotated when the mouse is over the circle and scrolling with the touchpad.
Updated•9 days ago
|
Updated•9 days ago
|
Comment 17•9 days ago
|
||
| uplift | ||
Comment 18•5 days ago
|
||
Verified as fixed on Firefox 160.0.1 with macOS 13, Ubuntu 24 and Windows 11 the issue no longer persists, now only the white ball is rotated when the mouse is over the circle and scrolling with the touchpad.
Description
•