Closed Bug 2085873 Opened 28 days ago Closed 4 days ago

[macOS] Do no display highlight-specific context menu options (Copy Link to Highlight, Print selection, Copy) in the link context menu

Categories

(Core :: Widget: Cocoa, defect)

defect

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox-esr153 --- unaffected
firefox159 --- wontfix
firefox160 --- wontfix
firefox161 --- wontfix
firefox162 --- wontfix
firefox163 --- fixed

People

(Reporter: asafko, Assigned: kpatenio)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-splitview] )

Attachments

(1 external file)

Currently, in macOS, context menu for a link displays up three actions that should only be displayed for a highlight context menu (when a user selects a text and then right-clicks it):

  • Copy Link to Highlight
  • Copy Clean Link to Highlight
  • Print selection
  • Copy

The link context menu works correctly in Release on all platforms, and doesn't display these options.

Keywords: regression
Blocks: 2044138

To be clear the "regression" part here is that right clicking a link now selects the word on macOS (bug 1751335).

No longer blocks: 2044138
Regressed by: 2044138
Summary: [macOS] Do no display highlight-specific context menu options (Copy Link to Highlight, Print) in the link context menu → [macOS] Right-clicking a link on Nightly also shows things like (Copy Link to Highlight, Print) in the context menu
Summary: [macOS] Right-clicking a link on Nightly also shows things like (Copy Link to Highlight, Print) in the context menu → [macOS] Do no display highlight-specific context menu options (Copy Link to Highlight, Print selection, Copy) in the link context menu

:kpatenio, since you are the author of the regressor, bug 2044138, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(kpatenio)

Err sorry.

Blocks: 2044138
No longer blocks: 1751335
Flags: needinfo?(kpatenio) → needinfo?(spohl.mozilla.bugs)
Regressed by: 1751335
No longer regressed by: 2044138

Set release status flags based on info from the regressing bug 1751335

I may be misunderstanding the ask here, but this is indeed an intentional change and aligns us with Safari's behavior. Does this answer the question, or are you suggesting that we tweak the behavior?

Flags: needinfo?(spohl.mozilla.bugs) → needinfo?(asafko)
Severity: -- → S4

(In reply to Stephen A Pohl [:spohl] from comment #5)

and aligns us with Safari's behavior.

The menu you get in Safari when you right-click a link is much more compact than ours. The new functionality increased the size of our menu. I think we need to revisit what items we really want in the context menu on a link.

Since ui.mouse.right_click.select_under_cursor is currently enabled for Nightly only on macOS, I don't think this should block Bug 2044138; the patches for the aforementioned ticket will focus on rearranging other context menu items for links (unrelated to text selection) and update strings accordingly. On other platforms and channels, the context menu would be aligned with the spec.

Not sure if Bug 2085873 should be added as "See Also" or "Depends on", but at the very least I'd like to remove it as a dependency blocking Bug 2044138.

Note: 2044138 adds [fidefe-splitview] as the whiteboard tag. I don't think this is the right tag for this issue, but linking it anyways so that it can be tracked on Jira.

No longer blocks: 2044138
See Also: → 2044138
Whiteboard: [fidefe-splitview]

An experimental patch to hide select menu items for links in nsContextMenu.sys.mjs.
Does so by adding a new property linkInSelection in ContextMenuChild.sys.mjs which checks if a link node is also a selection.
WIP changes were built on top of Bug 2044138 patch stack.
Not a final submission.

Attachment #9679135 - Attachment description: WIP: Bug 2085873 - prototype: hide copy link to highlight, copy, and print selection in link context menus → Bug 2085873 - hide copy link to highlight, copy, and print selection in link context menus
Assignee: nobody → kpatenio
Status: NEW → ASSIGNED
See Also: → 2094948
Pushed by kpatenio@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b6aa4ed2617d https://hg.mozilla.org/integration/autoland/rev/01d082fff391 hide copy link to highlight, copy, and print selection in link context menus r=sclements
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The patch landed in nightly and beta is affected.

:kpatenio, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox162 to wontfix if the fix can wait for the next release.

Uplift requests can be submitted from Lando: D341673.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(kpatenio)
Flags: needinfo?(kpatenio)
Flags: needinfo?(asafko)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: