Closed Bug 1836842 Opened 1 year ago Closed 1 year ago

Need a way to block the override of site-implemented contextmenu on Shift-Rightclick

Categories

(Firefox :: Menus, defect, P3)

Firefox 109
Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 1759303

People

(Reporter: westk, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0

Steps to reproduce:

We have started using Microsoft Azure RDP instead of VMWare's VDI infrastructure, and Windows 11 requires a Shift-right-click to get to some features (Search for "Computer Management", right-click & select "Open file location", shift-right-click to get "Show more options", "Run as different user").

Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0

Actual results:

Without the Shift-right-click, which is overridden by FF's context menu, you do not get the "Run as different user" option.

Expected results:

There should be a way to force FF to feed the Shift-rightclick to the web app instead of overriding it with a context menu. It doesn't matter if Microsoft is "breaking the web" by doing this; breaking the use of Microsoft products is not the way to fix that; it's just the way to make FF more irrelevant than it already has become. I'm now forced to use a different browser to do what I need to do.

The Bugbug bot thinks this bug should belong to the 'Firefox::Menus' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Menus
Severity: -- → S2
Priority: -- → P3

For context, the original implementation is from bug 617528. To fix this we'd need to add some conditions at https://searchfox.org/mozilla-central/rev/b91e9bef5a6d6f7b549fbc9cba70cb4665ed3866/layout/base/PresShell.cpp#8318-8327 to skip the two assignments in the if block in some circumstances. The simplest solution would be a boolean pref, but perhaps a slightly better one would be adding a permission, so that any exception could be per-site (though there's an open question on how the UI/UX for that would work). Potentially either/both could be backed up by an enterprise policy which seems likely to be useful given comment 0's usecase.

Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → Desktop
Summary: Need to block override of context-menu on Shift-Rightclick → Need a way to block the override of site-implemented contextmenu on Shift-Rightclick

Bug 1759303 added a preference to disable Shift+ContextClick. If that is sufficient, we can mark this as a duplicate.

See Also: → 1759303

(In reply to Neil Deakin from comment #3)

Bug 1759303 added a preference to disable Shift+ContextClick. If that is sufficient, we can mark this as a duplicate.

Thanks Neil! Yes, I think we should mark this as a dupe.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1759303
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.