Closed Bug 1858409 Opened 3 years ago Closed 2 years ago

Special-case context menus where additional, OS-provided menu items such as "Services" and "Autofill" should be displayed

Categories

(Core :: Widget: Cocoa, defect, P3)

Desktop
macOS
defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: jdescottes, Assigned: Gijs)

References

Details

Attachments

(2 files)

Minor UI issue, probably macos only?

STRs:

  • open network panel
  • anywhere in the panel, select and highlight some text (for instance, the "Disable Cache" label of the cache checkbox)
  • open the throttling menu

ER: only the throttling menu items should be displayed
AR: a "Services" submenu appears with random options

Attached image image.png —

This actually happens with context menus outside of devtools, and also the text doesn't have to be selected in devtools, it can be anywhere in the application (eg in the content page).

STRs without devtools:

  • open a page
  • select some text in it
  • right click on an empty area of the Firefox toolbar

The "Services" context menu shows up.

Confirmed to be macos only, maybe Core:Widget Cocoa can be a good fit.

Component: Netmonitor → Widget: Cocoa
Product: DevTools → Core

This is an OS-provided context menu entry and it was intentionally enabled in bug 660452. The Services menu may not always be very helpful as seen in the example here, but this is otherwise as designed.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID

I disagree with this assessment. For example, right-clicking the regular browser toolbar also shows the Services menu depending on whether text is selected in content or not. This is something that doesn't affect other applications. For example, in Chrome, if you select something in a website then you get the Services menu only if you open the context menu in content, but not if you open it on the tab bar.

We may want to special-case menus that should show the Services item. For example, we could consider including it only in the "content area context menu" and in textbox context menus.

Status: RESOLVED → REOPENED
Resolution: INVALID → ---

(In reply to Markus Stange [:mstange] from comment #4)

We may want to special-case menus that should show the Services item. For example, we could consider including it only in the "content area context menu" and in textbox context menus.

I did this consider as well, but couldn't come up with a particularly good way to do so. Let's try it.

Severity: -- → S3
Priority: -- → P3
Summary: Throttling menu is polluted with random entries if some text is selected → Special-case context menus where additional, OS-provided menus such as "Services" and "Autofill" should be displayed
Summary: Special-case context menus where additional, OS-provided menus such as "Services" and "Autofill" should be displayed → Special-case context menus where additional, OS-provided menu items such as "Services" and "Autofill" should be displayed
Duplicate of this bug: 1862134
Assignee: nobody → gijskruitbosch+bugs

I nearly filed a dupe of this the other week because it's confusing/annoying, so I'm going to submit a patch.

Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/defc29887984 only show autofill/services menus when appropriate, r=mac-reviewers,reusable-components-reviewers,mstange,emilio,tgiles
Status: REOPENED → RESOLVED
Closed: 2 years ago → 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Duplicate of this bug: 1871763
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: