Closed Bug 817780 Opened 12 years ago Closed 11 years ago

Work - Holding down the left mouse button causes context menu to appear

Categories

(Firefox for Metro Graveyard :: Input, defect)

All
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: TimAbraldes, Assigned: TimAbraldes)

Details

(Whiteboard: feature=work [completed-elm])

Attachments

(1 file)

Holding down the left mouse button shouldn't do anything special; it should be equivalent to holding down the left mouse button on desktop Firefox.

I couldn't find anything in widget that seemed like a cause for this.  Specifically, we don't get a RightTapped event in the case that the left mouse button is held down, so we don't send a NS_CONTEXT_MENU gecko event.
(In reply to Wesley Johnston (:wesj) from comment #1)
> There's a pref for this:
> http://mxr.mozilla.org/mozilla-central/source/content/events/src/
> nsEventStateManager.cpp#869

So there is!  Disabling that pref does indeed cause left-click-and-hold to stop bringing up the context menu, but it also causes right-click to stop bringing up the context menu.  It seems like there's a more complex relationship between widget, front-end code, and the EventStateManager than I previously thought.

Does anyone know why we're setting "ui.click_hold_context_menus" to true by default on Firefox for Windows immersive mode?  It seems to me that we don't want this, since widget will already send NS_CONTEXT_MENU if a user does a tap-and-hold, and since mouse interaction should work basically the same as it does in desktop Firefox.
Attached patch patch v1Splinter Review
This seems to fix the issue. This patch sets "ui.click_hold_context_menus" to false by default, and removes some code in widget that was avoiding sending NS_CONTEXT_MENU twice (this might still be an issue if users manually set "ui.click_hold_context_menus" to true, so if we want to support "ui.click_hold_context_menus" then we'll probably want to add some code that checks for the pref being set and sends NS_CONTEXT_MENU conditionally)
Assignee: nobody → tabraldes
Status: NEW → ASSIGNED
Attachment #688339 - Flags: review?(jmathies)
Comment on attachment 688339 [details] [diff] [review]
patch v1

don't think we need to worry about checking the pref at this point.
Attachment #688339 - Flags: review?(jmathies) → review+
Whiteboard: [completed-elm] → [completed-elm][metro-it1]
No longer blocks: metro-contextmenus
Summary: Holding down the left mouse button causes context menu to appear → Work - Holding down the left mouse button causes context menu to appear
Whiteboard: [completed-elm][metro-it1] → feature=work [completed-elm]
Resolving bugs in the Firefox for Metro product that are fixed on the elm branch.  Sorry for the bugspam.  Search your email for "bugspam-elm" if you want to find and delete all of these messages at once.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: