Closed Bug 1692669 Opened 3 years ago Closed 3 years ago

[Proton] Replace icon group navigation on macOS page context menu with "normal" menu items

Categories

(Firefox :: Menus, enhancement, P1)

Desktop
macOS
enhancement

Tracking

()

VERIFIED FIXED
89 Branch
Tracking Status
firefox87 --- wontfix
firefox88 --- wontfix
firefox89 --- verified

People

(Reporter: Gijs, Assigned: Gijs)

References

(Blocks 1 open bug)

Details

(Keywords: helpwanted, Whiteboard: [proton-context-menus])

Attachments

(1 file)

To help with the appearance of the menu on macOS, we're replacing the group of icons with 4 items and slightly changing where the separator is. The menu's top should be:

Back
Forward
Reload
---
Bookmark Page

immediately followed (no separator) by other save/share/send page items in their current order.

We'll make this change only on macOS; the Windows/Linux context menu should stay how it is in this respect.

We're making a number of other changes in other bugs that will mean the overall length of the context menu on macOS doesn't change substantially.

Whiteboard: [proton-context-menus]
Keywords: helpwanted
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Priority: P3 → P1

Jared, are you OK to still work on this?

Flags: needinfo?(jaws)

I'm going to upload my patch that I have in-progress. There are a couple test failures on mac that need updating due to the new menu organization.

Flags: needinfo?(jaws)

I'm unassigning myself since I haven't had time to track down the context menu test failures. There are failures in /accessible/tests/browser/mac/browser_app.js and there may still be failures in /browser/base/content/test/contextMenu/browser_contextmenu.js

Assignee: jaws → nobody
Status: ASSIGNED → NEW

Try push with patch: https://treeherder.mozilla.org/jobs?repo=try&revision=4f9b27c62aa00c57b9e6dbf2408796e9fba4963a&selectedTaskRun=NjEyqbk_TGasvll2qNl6cg.0

Test failures in:

  • /accessible/tests/browser/mac/browser_app.js
  • /browser/base/content/test/contextMenu/browser_contextmenu.js
  • /browser/components/extensions/test/browser/browser_ext_browserAction_contextMenu.js
  • /browser/components/extensions/test/browser/browser_ext_menus_replace_menu.js
  • /browser/components/extensions/test/browser/browser_ext_menus_replace_menu_context.js
  • /browser/components/extensions/test/browser/browser_ext_sidebarAction_contextMenu.js

In addition to the patch I also removed the include of shared/contextmenu.inc.css from the macOS browser.css, so that the menu items don't have icons.

The other missing piece in the patch is the handling of the separator line under the "Bookmark Page" item; as comment 0 says, there should be no separator between "Bookmark Page" and "Save Page As..." but with the current patch there still is a separator.

I'm not currently working on this bug. I may get to it once I'm done with other native context menu work, if nobody beats me to it.

Oh, the current patch also causes Back/Forward to show up when right-clicking a link. Before this patch, context menus for links did not include the icon buttons.

Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Blocks: 1699828
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/2ed28d4ec972
Replace icon group navigation on macOS page context menu with 'normal' menuitems. r=flod,mconley
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch

Since the status are different for nightly and release, what's the status for beta?
For more information, please visit auto_nag documentation.

This is verified fixed using Firefox 89.0a1 (BuildId:20210323094659) on macOS 10.14. The icon group navigation was successfully replaced with the "normal" context menu items.

Status: RESOLVED → VERIFIED
Regressions: 1788701
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: