Open Bug 2088906 Opened 16 days ago Updated 6 hours ago

Both the widgets section and the recently backed out page is shown at the same moment when dragging on touchpad

Categories

(Firefox :: New Tab Page, defect, P3)

Firefox 159
Desktop
All
defect

Tracking

()

Tracking Status
firefox159 --- affected
firefox160 --- affected
firefox161 --- affected

People

(Reporter: csasca, Unassigned)

References

Details

(Whiteboard: [hnt][hnt-wattle])

Found in

  • Firefox 159.0 (NewTab addon v161.0.20261102.193311)

Affected versions

  • Firefox 159.0
  • Firefox 161.0a1 (2026-11-04)

Tested platforms

  • Affected platforms: macOS 27, Windows 11, Ubuntu 26.04

Preconditions

  • Have widgets enabled
  • Have the Widgets section enabled per D336941
  • Have a touchpad available

Steps to reproduce

  1. Press on three dots on the Daily crossword widget and select Learn More
  2. Go back to home either by swiping left on touchpad or left arrow
  3. Hover the cursor over the stories and swipe with two fingers to right

Expected result

  • Either the widgets section is shown OR the previous backed out page is shown

Actual result

  • Both the widgets section and the recently backed out page is shown at the same moment (see attachment)

Regression range

  • New feature

Additional notes

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Spaces.jsx switches space on a horizontal wheel gesture but never consumes the event, and because React 19 registers its root wheel listener as passive (react-dom-client.production.js), APZ treats the region as confirmed and starts the browser history swipe on the same pan gesture. I triaged from the steps and the code and did not view the Drive recording.

Fix: Replace the React onWheel with a native { passive: false } wheel listener on containerRef added at mount, and call preventDefault() on the first horizontal-dominant event of a gesture whenever a neighboring space exists in that direction (RTL-aware), so TriggersSwipe() stays false while history swipe still works at the first and last space. Cover it by asserting defaultPrevented in Spaces.test.jsx and with a browser test modeled on browser_test_swipe_gesture.js that pans over the spaces and checks the URL is unchanged.

Suggested severity: S3. Touchpad users with forward history on New Tab get a space switch and a history navigation from one gesture, which is confusing but recoverable, and the space tabs and arrows switch spaces without triggering it.


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-{wrong-file, wrong-cause, hallucination, out-of-scope, not-a-bug, wrong-fix, shallow-fix, wrong-severity}.

Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.

Severity: -- → S4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.