Some Context Menu Items Don't Work With Native GTK Context Menus
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: lolrepeatlol, Assigned: sinker)
References
Details
Attachments
(2 files)
Seemingly random context menu items don't work with native GTK menus.
Notably, copying and pasting text for example doesn't work. Save Page As... does not open a window to save the page. Still, other items like Reload work fine.
One thing I noticed was that while copying in the URL bar works, copying in webpages does not.
Attached is a (somewhat confusing, apologies) video of me trying various things with the GTK native context menus. Hopefully it gets the idea across
I tried this, Send Page to Device is broken. also it is showing Back and Forward as text instead of Icons.
Updated•4 years ago
|
Comment 3•4 years ago
|
||
This is expected, those menus need more work.
Comment 4•4 years ago
|
||
The menu presenting Back and Forward as text instead of Icons is desirable. Some of my grandparents really struggle to ascertain what your obscure iconography is, and for the sake of consistency and accessibility (think screen-readers) they should remain as text. No benefits are gained by their current implementation.
Comment 5•2 years ago
|
||
Pela primeira vez decidi usar o widget.gtk.native-context-menus e acabo de encarar o mesmo problema.
Do menu context, de todas apções as unicas que funcionam são:
- Select All
Comment 6•2 years ago
|
||
For the first time I decided to use widget.gtk.native-context-menus, and I just faced the same problem.
From the context menu, of all the options, the only ones that work are:
"Select All" and any option added by extensions
Btw, sorry for the latest incomplete portuguese message.
Comment 7•2 years ago
•
|
||
cleomenezesjr@gmail.com, I don't think you need to apologize. We have access to translators. It is a shame that this feature hasn't seen much improvement.
Updated•2 years ago
|
Comment 8•18 days ago
|
||
Okay, two years later, reviving this issue by testing with latest Nightly 158.0a1 shows that GTK native context menus are still not functioning correctly.
https://share.firefox.dev/4yjz5Du
It can be very easily reproduced by attempting to right click on a tab and trying to select an option in the context menu will do absolutely nothing.
Lemme test with all add-ons disabled, and see if it changes anything...
https://share.firefox.dev/4Avq6Au
...Annnnnnd nope! Still doesn't. Unfortunately...
Possibly some line of code overriding the GTK native context menu event, perhaps?
| Assignee | ||
Updated•17 days ago
|
| Assignee | ||
Comment 9•17 days ago
|
||
Please try this build to see if it works.
The menu has closed before running the command of the selected item.
It causes the command fails to run.
This build delays menu closing, and it should fix the issue.
Comment 10•17 days ago
|
||
(In reply to Thinker Li [:sinker] from comment #9)
Please try this build to see if it works.
The menu has closed before running the command of the selected item.
It causes the command fails to run.
This build delays menu closing, and it should fix the issue.
https://share.firefox.dev/4rtqwTI
Looks to me like the native GTK context menus are now working perfectly as intended in this build, seems ready to be merged into Nightly. Awesome work!
| Assignee | ||
Comment 11•16 days ago
|
||
GTK unmaps a menu before it activates the chosen item, so
NativeMenuGtk::OnUnmap() fired popuphiding and popuphidden before the item's
command ran. The hiding handlers tear down what the command needs: the
content area context menu sets gContextMenu to null (Copy Link, Save Page As
throw), the tab context menu clears contextTab, and in a text field the
removed spell check items rebuild the menu model, dropping the action of the
item being activated (Copy and Paste do nothing).
Fire the events from a runnable instead, so the command runs first, as it
does for XUL menus. Close() fires them right away, since a close requested by
code activates no item and the popup manager may show a new menu for the same
element right after it.
Updated•16 days ago
|
Comment 12•10 days ago
|
||
Comment 13•10 days ago
|
||
| bugherder | ||
Updated•5 days ago
|
Updated•3 days ago
|
Description
•