Make context menu separator hiding more robust
Categories
(Firefox :: Menus, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: enndeakin, Assigned: enndeakin)
References
Details
(Whiteboard: [proton-context-menus])
Attachments
(1 file)
While working with the content area context menus (nsContextMenu.js), I've found it difficult to ensure that each separator is shown or hidden properly when different combinations of menuitems are shown. Instead I propose just hiding any duplicated separators after all the items have been determined.
The patch to be attached does this with minimal differences in the separators that are displayed, mostly showing current places on the menu (such as before select all) where unrelated items seem to be placed together.
The proton changes will likely change the menus around quite a bit anyway, so I suspect we can adjust the separator handling better as we go.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•3 years ago
|
||
As per guidance from Vicky, for tracking, we're marking all the bugs that people are working on as P1.
Comment 3•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Menus' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•3 years ago
|
Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/873822e54461 move code that hides separators in the content area context menu into a single place that just hides duplicates, r=Gijs,robwu
Comment 5•3 years ago
|
||
bugherder |
Description
•