Closed Bug 1725416 Opened 3 years ago Closed 3 years ago

[Pointer Event] button state inconsistency on touch devices

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

Firefox 91
defect

Tracking

()

VERIFIED FIXED
93 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- verified
firefox91 --- wontfix
firefox92 --- verified
firefox93 --- verified

People

(Reporter: ray, Assigned: saschanaz)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

Subscribe to the 'pointerdown' event:

window.addEventListener('pointerdown', (evt => console.info(evt.button, evt.buttons)))

Actual results:

On a touch enabled desktop (Windows), touching the screen results in:

0, 0

While a click gives:

0, 1

Expected results:

I expect 0, 1 in all cases. The current behaviour in FF 91 is inconsistent with:

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Events' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Events
Product: Firefox → Core
Severity: -- → S3
Component: DOM: Events → DOM: UI Events & Focus Handling
Priority: -- → P3
Blocks: pointerevent
QA Whiteboard: [qa-regression-triage]

Kagami, would it be possible something caused by bug 1710317? Mind taking a look? Thanks!

Flags: needinfo?(krosylight)

Oops, mozregression does point to bug1710317.

Assignee: nobody → krosylight
Flags: needinfo?(krosylight)
Pushed by krosylight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/217fff940bec
Default to eNotPressed in WidgetTouchEvent r=edgar
Backout by mlaza@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/fe930f350465
Backed out changeset 217fff940bec for causing mochitest failures on test_getCoalescedEvents_touch.html. CLOSED TREE
Flags: needinfo?(krosylight)
Pushed by krosylight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d1fdf010c95e
Default to eNotPressed in WidgetTouchEvent r=edgar
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Has Regression Range: --- → yes

The patch landed in nightly and beta is affected.
:saschanaz, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(krosylight)

No known real web compat issue so far, so marking as wontfix.

Hi reporter, if this issue is affecting your website or any web service you are using, please feel free to respond.

Flags: needinfo?(krosylight)

This affected a customer using our commercial product; we've responded with a workaround that seems to work for our specific needs, so the impact is manageable.

Comment on attachment 9237025 [details]
Bug 1725416 - Default to eNotPressed in WidgetTouchEvent r=edgar

Beta/Release Uplift Approval Request

  • User impact if declined: Touch behavior on some websites may be broken by this issue, e.g. as reported in comment #13.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This only restores the previous behavior
  • String changes made/needed:
Attachment #9237025 - Flags: approval-mozilla-beta?

Comment on attachment 9237025 [details]
Bug 1725416 - Default to eNotPressed in WidgetTouchEvent r=edgar

Approved for 92.0b9 and 91.1esr.

Attachment #9237025 - Flags: approval-mozilla-esr91+
Attachment #9237025 - Flags: approval-mozilla-beta?
Attachment #9237025 - Flags: approval-mozilla-beta+
Flags: qe-verify+
QA Whiteboard: [qa-regression-triage] → [qa-regression-triage][qa-triaged]

Verified - Fixed in latest Nightly 93.0a1 (build id: 20210826213950), Beta 92.0b9 (build id: 20210826192006) and latest 91.1ESR (build id: 20210826130001) using Lenovo Yoga (Windows 10) touchscreen device. Touching the screen results in 0, 1.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-regression-triage][qa-triaged] → [qa-regression-triage]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: