Closed Bug 1627507 Opened 5 years ago Closed 5 years ago

Right click sometimes adds a bookmark instead of opening the context menu (Elementary OS)

Categories

(Core :: Widget: Gtk, defect, P2)

74 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: stefanehaas, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

Steps to reproduce:

Righ-click on a link on a web page

Actual results:

Popup to add a bookmark appears

Expected results:

Open context menu popup

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Bookmarks & History

Moving across to menus, as I think given the location of items, it is more likely a menu issue than directly bookmarks & history's fault.

Though you might want to check if your mouse doesn't have intermittent issues.

Component: Bookmarks & History → Menus

The mouse works fine in all other apps, but in FF it looks like the buttonDown event already performs the action (default item "add Bookmark" select from context menu). When I keep the mouse button pressed the context menu pops up and (still right button pressed) I can select a menu item. I just created a fresh FF profile (in v74.0) ...

Can you please test with mozregression to see if this happens in a clean profile as well as to find when this got broken? mozregression will help you find the specific changeset which caused the change in behavior, and will ultimately be extremely helpful in fixing the bug. You can download mozregression from https://mozilla.github.io/mozregression/.

Thanks!

Flags: needinfo?(stefanehaas)

(In reply to Stefan Haas from comment #3)

in FF it looks like the buttonDown event already performs the action

When I keep the mouse button pressed the context menu pops up and (still right button pressed) I can select a menu item

I'm confused - these two statements contradict each other; if pressing the button down would activate the item, then keeping it pressed wouldn't allow you to select an item.

What desktop environment and window manager are you using? Did this behaviour change with a recent Firefox update or update of other software on your machine? If so, can you use mozregression to find out what changed? Does enabling/disabling the titlebar (in hamburger menu > customize...) help?

Moving to widget: gtk because this looks like bug 1552128 and bug 1423810, which were related to our gtk implementation.

Component: Menus → Widget: Gtk
Product: Firefox → Core
See Also: → 1552128

I'm confused - these two statements contradict each other; if pressing the button down would activate the item, then keeping it pressed wouldn't allow you to select an item.
Before this bug i simply clicked on links. As they "regular speed click" nowadays is unpredicative I found out that pressing the right mouse button for some time opens the context menu. I can manoeuvre around while keeping the right mouse button pressed. once I release the right mouse button the underlying item is selected. The "immediate click" seems to fire on a menu item in the middle of the context menu which mostly is the add bookmark item.

I use elemenaryOS 5.1.2 (unbuntu 18.04.03 LTS) with GTK 3.22.30, lightdm 1.26.0. This behaviour started after I had to create a new profile (the old one was accidentally deleted) - usually the oposite should happen (before. problem, after clean new profile: problem gone)

Flags: needinfo?(stefanehaas)

I downloaded mozgression but due to 100% unusable "install.html" (it's everything except an install guide) but what shall I do with it now? I don't want to hack it, develop on it. What is missing is an installation guide for "users" ...

(In reply to Stefan Haas from comment #7)

I downloaded mozgression but due to 100% unusable "install.html" (it's everything except an install guide) but what shall I do with it now? I don't want to hack it, develop on it. What is missing is an installation guide for "users" ...

If you have pip installed, you can use pip install mozregression to install it. See https://pypi.org/project/mozregression/

OK, I installed and started it (still running) ...

See Also: → 1625774

Looks like a race condition: Either the right click opens up immediately - or nothing happens for several seconds, the context is skipped but the action where the mouse appear is clicked.

Happens also in new default profile of FF 74.0 unbuntu 18.04/eOS 5.1

Blocks: gtktitlebar
Priority: -- → P3

Usually the context menu is triggered by a RightButtonUp event, then you can move the mouse to the menu item an LeftButtonUp again to activate.

Now (in almost all cases) the RightButtonDown (?) event triggers the Context menu and the following (Right ?)ButtonUp selects an entry. A simple click will select the menu item under the mouse (not the first one).

I can "simulate" the original behaviour by pressing the right mouse button, holding it while moving the mouse to a menu item and then release the right mouse button. Sometimes the context menu does not show up at all (>> 10 sec waiting) - I have to try again

still exists in 76.0

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3

The workaround does not always work, especially when web pages have a non-standard hover/click behavior. This happens frequently on several download pages so I have to switch to chrome every time I want to do any of these downloads. Not being able to use a browser for downloads any more is far more than S3 as it forces me to abandon firefox! I guess this indicates at least S2

Still happens in FF 76.0.1

Also P3 (This isn't a bad idea ...) is misleading when this bug forces me to use Chrome or other non-firefox browser: I suggest to switch to P2/S2

On my company laptop I use FF under Win10 with regular behaviour so using the same browser with different behaviours is really hard to coordinate - I would guess I get some 30+% "wrong clicks on either machine = really confusing instead of "ease-of-use"

Severity: S3 → S2
OS: Unspecified → Linux
Priority: P3 → P2
Hardware: Unspecified → x86_64
Flags: needinfo?(jan)
Summary: Right click sometimes adds a bookmark instead of opening the context menu → Right click sometimes adds a bookmark instead of opening the context menu (elemenaryOS)

Which info do you need?

I just installed elementary os on a virtual box and the default popup behavior is a bit strange here. With default install (Hera) and default Firefox (76) and default profile the menu after right mouse click is shown centered under mouse cursor or shifted. System titlebar is on by default.

When I disable system titlebar by default (Customize -> Title bar checkbox), system titlebar is off and the popups are shown correctly.

Stefan, can you confirm that?
Thanks.

Flags: needinfo?(stefanehaas)

Yes, it works also for my bug (I did not observed misplaced popups). I thought I read this comment when the behaviour started (FF 74) without success but now it works (can't easily minimize a window anymore though). It also looks like the GUI interaction is faster (no delays observed as before).

Flags: needinfo?(stefanehaas)

Okay, I think we can make the hidden titlebar default on Elementary OS.

Flags: needinfo?(jan)
Assignee: nobody → stransky
Pushed by malexandru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b4218330c48d [Linux/Gtk] Enable hidden system titlebar by default on Elementary OS, r=jhorak
Summary: Right click sometimes adds a bookmark instead of opening the context menu (elemenaryOS) → Right click sometimes adds a bookmark instead of opening the context menu (Elementary OS)
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: