Removing the title bar sets a wrong offset for the right-click context menu: the first entry of the menu will get a mouse-release event and will trigger
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: sam.xubuntu, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
Steps to reproduce:
- Have a non-maximized Firefox window.
- Disable the title bar (through the "Customize..." option)
- Right-click anywhere on a webpage: you will be taken to the previous page.
Actual results:
Removing the title bar doesn't set an offset for the right-click menu → the right-click menu will appear slightly wrong positioned, with its first entry below the mouse cursor → the first entry of the menu will get a mouse-release event and will trigger.
The effect of this can be different depending on what you right-click:
- right-click some empty area in a web-page: you will be taken back to the previous page (because the first menu entry does that)
- right-click a link: you will open the link in a new tab (because the first menu entry does that)
Expected results:
Self explanatory.
Workaround:
Enable user styles by setting toolkit.legacyUserProfileCustomizations.stylesheets to true.
Create "chrome" folder in your profile directory. Inside, create "userChrome.css", and write:
#contentAreaContextMenu{ margin: 20px 0 0 20px }
** Other information **
- The most detailed bug report among the numerous ones: https://bugzilla.mozilla.org/show_bug.cgi?id=1504021 (currently closed, so I'm opening this one)
- My system is Xubuntu 18.04.4 LTS bionic 64bit with stock (default) Xfce, Firefox is 74.0 from official Ubuntu repository. But it's been reported to happen to other systems.
- The bug is more or less 3 years old.
Hi sam
I tried this using ubuntu 18.04 64bit and Firefox release 74.0 but i was unable to replicate, when i right-click it doesn´t go back.
i see the mouse arrow positioned on the left corner of the left arrow (back burron) box.
Please download Firefox Nightly from here: https://nightly.mozilla.org/ and retest the problem.
If you still have the issue please create a new profile, you have the steps here:https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles?redirectlocale=en-US&redirectslug=Managing-profiles#w_starting-the-profile-manager
Lastly test if the issue is reproducible in safe mode, here is a link that can help you:
https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
Regards
Comment 2•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 3•5 years ago
|
||
Martin, this keeps hitting people, is there something that can be done from the gtk side? I expect the "correct" margin to work around this is different depending on the size of the titlebar, which frontend code cannot know, so adding a permanent workaround on the frontend side isn't really feasible.
Comment 4•5 years ago
|
||
This one really highly depends on actual window manager and Gtk3 version. I'm not sure it's even possible to fix that on some old system and that's also reason why it's off there by default. I'll look at it but I don't give any promise here.
Reporter | ||
Comment 5•5 years ago
|
||
Now I'm on 75.0 64bit
(In reply to Pablo from comment #1)
Hi sam
...
Regards
I'm able to reproduce:
- With the latest Firefox version 75.0
- With the nightly build, downloaded right now from your link
- After creating and starting a new Firefox profile, in 75.0
- I'm also able to reproduce inside a virtual machine (always Xubuntu 18.04.4 LTS), so it's not something about my host system.
However, sorry for realizing this only now, but you have to play with the themes. Can you or anyone please try with these steps:
- Have a fresh Xubuntu 18.04.* install, virtualized or not; ignore OS updates or install them
- Have a non-maximized Firefox open, whatever version, old (as back as 61.0), new, nightly...
- In Xubuntu, go to All Settings → Appearance
- Select anything different than the default ("Greybird"), especially "Adwaita" or "Adwaita-dark"
- Disable the title bar (through the "Customize..." option)
- Right-click and hopefully get the bug now. If not, keep changing the themes.
Additionally: - Go back to "Greybird" theme, restart Firefox, and notice that strangely the bug still exists even though you are back to this theme.
I hope this works, having some always-reproducible-steps would be a good starting point.
Comment 6•5 years ago
|
||
Thanks. To be sure, do you see that bug in other DE that XFCE? Can you try gnome or mate for instance?
Reporter | ||
Comment 7•5 years ago
|
||
(In reply to Martin Stránský [:stransky] from comment #6)
Thanks. To be sure, do you see that bug in other DE that XFCE? Can you try gnome or mate for instance?
I cannot reproduce in Gnome 3, including in Xubuntu after manually replacing Xfce with Gnome. However, some people reported the bug with xmonad, dwm, and Motif Window Manager, as you can read in the other bug reports.
Updated•4 years ago
|
Description
•