Ctrl+Enter keyboard shortcut in address bar opens context menu on page on macOS
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr128 | --- | unaffected |
firefox135 | --- | wontfix |
firefox136 | --- | fixed |
firefox137 | --- | fixed |
People
(Reporter: cpeterson, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
536.79 KB,
image/png
|
Details |
[Tracking Requested - why for this release]:
This bug is a regression in Fx 134 from bug 1921811.
Steps to reproduce
- On macOS, click to focus the address bar. (I'm using macOS 15.2 Sequoia)
- Enter
example
in the address bar. - Press
Ctrl
+Enter
.
Expected behavior
The address bar should expand example
to https://www.example.com/
and navigate to the website.
Actual behavior
In Fx 134 and 135, the address bar does expand example
to https://www.example.com/
and navigates to the website, but it also opens a context menu on page.
In Fx 136, the address bar no longer expands example
or navigates to example.com (that is bug 1945422). Fx 136 now opens a context menu in the address bar instead of on the page.
Reporter | ||
Comment 1•21 days ago
|
||
@ Emilio, I bisected this regression to this pushlog for your fix for popover bug 1921811:
Reporter | ||
Updated•21 days ago
|
Reporter | ||
Updated•21 days ago
|
Comment 2•21 days ago
•
|
||
In MacOS Sequoia they added this Ctrl+Enter shortcut to open the context menu for the highlighted element.
I'm not sure why popover changed the handling, I suppose we don't consume/preventDefault the event anymore, maybe we should be more explicit on that.
There is a "Show contextual menu" setting in system to change the shortcut, though that's not a solution for users.
The context menu also looks like the wrong one, if the urlbar is focused it should open the urlbar context menu, not the toolbar one.
Supposing we'll use Bug 1945422 to fix ctrl+enter, here we should understand how we could support the new MacOS behavior, would it require to return to cmd+enter on Mac? Afaik that was changed in Firefox 64 in Bug 237027.
Comment 3•21 days ago
•
|
||
I don't think there's any bug in Cocoa as this is new behavior in Sequoia, though I'll let the triage owner to ponder over it, I'm not sure if there's a bug in targeting as I'd expect the context menu to open on the urlbar. Feel free to move back to Address Bar in case.
Comment 4•21 days ago
|
||
Fx 136 now opens a context menu in the address bar instead of on the page.
I think this is the expected behavior, see bug 1936928 which is what fixed this... So on the widget side of things this looks good. I think the front-end could preventDefault() this event if you want to prioritize the URL canonicalization.
Updated•21 days ago
|
Reporter | ||
Comment 5•20 days ago
|
||
Note that Ctrl+Enter in the address bar doesn't open a context menu in Chrome.
Comment 6•1 day ago
|
||
This was addressed by bug 1945422 changing the canonization shortcut to Cmd+Enter on MacOS. As of MacOS 15.1, Ctrl+Enter is a system command for opening the context menu.
Comment 7•1 day ago
|
||
Set release status flags based on info from the regressing bug 1921811
Updated•12 hours ago
|
Description
•