Right-click automatically select first option from the menu
Categories
(Firefox :: Menus, defect)
Tracking
()
People
(Reporter: phoenikso, Unassigned)
Details
Attachments
(4 files)
| Reporter | ||
Comment 1•9 years ago
|
||
| Reporter | ||
Comment 2•9 years ago
|
||
| Reporter | ||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
| Reporter | ||
Comment 6•9 years ago
|
||
| Reporter | ||
Comment 7•9 years ago
|
||
| Reporter | ||
Comment 8•9 years ago
|
||
| Reporter | ||
Comment 9•9 years ago
|
||
Comment 10•7 years ago
|
||
This bug, or one very much like it, still appears to be present in:
Firefox 67.0a1
Build ID: 20190228214753
OS: Darwin 18.2.0
I have noticed that the bug is not always reproducible; I think this is because of the variability in duration between button-down and button-up events. When I browse casually, without paying much attention to my finger movements, I almost always hit this bug. However, if I focus intently, and try to minimise the time between the button-down and button-up events (i.e.: click real fast), I am sometimes able to achieve desired behaviour. In this latter case, the menu stays open.
It feels like Firefox is interpreting the button-down event as a button-hold.
The OP mentioned links and form elements. While I am able to repro on those UI elements, I think this bug extends to the entire Firefox UI, including the context menus that appear when right-clicking on a tab or a button alongside the address bar.
Unfortunately, I can't say when this bug regressed on my system. I only noticed this odd behaviour when I recently switched from Chrome to FF 67 (nightly). I have not observed this behaviour in any other application.
Comment 11•7 years ago
|
||
(In reply to sg.mozilla from comment #10)
Hi, please see bug 1504021.
Comment 12•7 years ago
|
||
I can reproduce with, and without, the title bar enabled. With the title bar enabled, the cursor position relative to the menu does not appear to change.
Perhaps there are two similar bugs here.
Comment 13•7 years ago
|
||
(In reply to sg.mozilla from comment #12)
With the title bar enabled, the cursor position relative to the menu does not appear to change.
I tried again and reproducing is not that straightforward indeed.
Can you please try these steps:
- "Title Bar" checked; restart Firefox
- "Title Bar" unchecked; can you reproduce the bug? If not, continue
- Resize the window a bit; don't maximize the window; restart Firefox
- Repeat this last step until you are able to reproduce the bug
If you can reproduce the bug, then try these steps again but with "Title Bar" checked: you shouldn't be able to reproduce the bug.
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
I was able to repro in the following cases:
Case 1:
- Starting state: Title bar enabled
- Restart Firefox
- Toggle Title Bar enabled -> disabled
- Right-click on tab (reloads tab) or within page extents (navigates back)
Case 2:
- Starting state: Title bar disabled
- Restart Firefox
- Toggle Title Bar disabled -> enabled
- Right-click on tab or within page extents
Case 3:
- Starting state: Title bar enabled
- Restart Firefox
- (Title bar is still enabled. No change in state.)
- Right-click on tab or within page extents
In all three cases, the problem was reproducible without having to resize the window.
I have attached some screen shots taken on my system that show the position of the context menu relative to the mouse cursor with and without the title bar. I'm using a trackball, so I'm confident these images were taken without inadvertent cursor movement on (right button) click.
The change in cursor -- from a hand with outstretched finger to a conventional arrow -- is curious. I get one or the other seemingly by chance. The problematic behaviour appears to strike when the cursor is a conventional arrow.
Comment 18•7 years ago
|
||
Considering your last post and this post:
https://www.linuxquestions.org/questions/slackware-14/firefox-right-click-goes-back-a-page-4175632126/#post5943972
I can suppose that the behavior really depends on the window manager. On OS X the title bar doesn't matter. On Linux+Xfce it's the only cause of the bug. On other window managers e.g. i3, the bug may not appear at all.
The bug may consistently appear on some window managers and inconsistently appear in others.
| Reporter | ||
Comment 19•7 years ago
|
||
I can still easily reproduce it on Fedora 29 with i3 window manager, Greybird GTK theme, Firefox 65.0.2. I have window titles disabled and 3px border.
For a long time I use the following workaround mentioned here:
https://www.reddit.com/r/firefox/comments/672ef7/rightclick_menu_open_under_mouse_cursor/
ui.contextMenuOffsetHorizontal;5
ui.contextMenuOffsetVertical;5
Comment 20•7 years ago
|
||
(In reply to Stanislav Kontar from comment #19)
ui.contextMenuOffsetHorizontal;5
ui.contextMenuOffsetVertical;5
These variables don't seem to exist in my Firefox 66.0.3 and manually creating them has no effect.
Comment 21•7 years ago
|
||
For what it's worth, that was an effective workaround for me. With those knobs set as prescribed, I was no longer able to reproduce the problem. FF 68.0a1 (build ID 20190425220817) on Darwin 18.2.0 (macOS 10.14.3).
Updated•6 years ago
|
Comment 23•5 years ago
|
||
Quite recently started getting this bug on i3 version 4.19.2. Workaround worked perfectly.
Description
•