Closed Bug 1726307 Opened 4 years ago Closed 3 years ago

Clicks propagating behind context menu while using graphics tablet.

Categories

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

Firefox 91
defect

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox91 --- wontfix
firefox92 --- wontfix
firefox93 - wontfix

People

(Reporter: bin.sayantan, Unassigned)

References

(Blocks 1 open bug)

Details

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

Steps to reproduce:

I am using a Huion tablet (HS64).
I believe this will also happen on any touchscreen based pen device.

  1. Long press on a web page item (links,etc..) to open the context menu using the pen. OR use the pen to open the browser hamburger menu on top right.
  2. Click on a context menu item using the pen.

Actual results:

The menu item gets clicked but also anything on the web page behind the menu item gets clicked. Any link, button, image right behind the spot where the pen was used to select the menu item, gets clicked.

This even affects Firefox items. Say the context menu got laid above the tabs area, clicking on the topmost item with the pen changes the tab which was just behind the menu option.

Expected results:

Only the context menu item should get clicked. Not the web page elements behind the conetxt menu.

I have tried to reproduce this on Microsoft Edge, and this does not happen there. So its not a driver related issue. I have also tried it on incognito mode with all extensions disabled, and it still occurs, hence it is not an extension issue.

I do not know why it got labelled as "Firefox for Android", but it is occurring on desktop.
Firefox 91 stable.
Build: 20210804193234
OS: Windows 10.

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

Component: Untriaged → Menus
Component: Menus → DOM: UI Events & Focus Handling
Product: Firefox → Core

Hi reporter, could you try Firefox Nightly (https://nightly.mozilla.org) and see it still happens?

I suspect somehow the pen input happens more than once by a single pen contact, but it's not reproducible on Surface Pro 7.

Flags: needinfo?(sayantan_rc)

Hi Kagami.
So I tried out the Firefox nightly version 93a1.
The issue is even worse there. I cannot even click on any context menu option using the pen.
At-last on the current stable version I can click the menu items, that's not happening on nightly.

Firefox Nightly version:
Version : 93.0a1
Build ID : 20210824215948

Flags: needinfo?(sayantan_rc)
Severity: -- → S3
Priority: -- → P3

[Tracking Requested - why for this release]:
Sounds like something has regressed to make the behavior even worse.

Sounds like there's 2 issues, the behaviour in 91 (which may or may not be a regression, and is P3/S3 as per :saschanaz), and in 93 (which is worse, and probably more urgent unless it's behind a nightly-only pref?). Which do we want to track here?

I do not know how FF is developed, but my basic logic says you guys may have already done some work on pen support from 91 to 93. So creating patch separately for 91 is kinda useless. If the issue can be fixed on 93 (nightly) then it might solve this issue in this bug report as well.

The currently Nightly-only dom.w3c_pointer_events.dispatch_by_pointer_messages is causing the Nightly menu issue, tracking in bug 1727722.

Can confirm.
Disabling that flag dom.w3c_pointer_events.dispatch_by_pointer_messages does make the context menus clickable again with the pen in 93 (nightly).
After that the behaviour is identical to what is mentioned in this bug report.

Could you try again on today's Nightly and check it still happens?

Flags: needinfo?(sayantan_rc)

Hi Kagami.
Issue is not resolved.
Exactly same behavior as before.
Need to disable that flag to make click using pen.
After disabling, still click-through occurs.

Version 93.0a1
Build ID 20210830162701

Flags: needinfo?(sayantan_rc)

Could you check update and get 2021-08-31 build (or newer)? 2021-08-30 didn't include the fix for bug 1727722.

My expectation is that it should be clickable but the click-through will probably still happen.

Flags: needinfo?(sayantan_rc)

Hi Kagami.
Looks like the issue is completely fixed in 2021-08-31 build.

Clicking using pen works without changing the flag dom.w3c_pointer_events.dispatch_by_pointer_messages.
Click-through is not happening. Yayyy! Clicking the context menu options no longer click items on the web page!

Disabling the flag dom.w3c_pointer_events.dispatch_by_pointer_messages makes click-through context menu bug to reappear.

So I guess the issue is resolved now.

Version 93.0a1
Build ID 20210831213957

Flags: needinfo?(sayantan_rc)

Hooray, thank you for confirming 👍

Will keep this until the flag reaches stable builds.

Cool! Thank you so much.
Great job FF team.

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Closing per comment 14.

Status: NEW → RESOLVED
Closed: 3 years ago
Depends on: 1707075
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in before you can comment on or make changes to this bug.