Closed Bug 1835570 Opened 2 years ago Closed 2 years ago

Full screen shortcut no longer displayed in menubar "View" menu nor hamburger menu (says "null" instead in that menu!)

Categories

(Core :: DOM: Events, defect)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox113 --- unaffected
firefox114 --- unaffected
firefox115 --- fixed

People

(Reporter: Gijs, Assigned: masayuki)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Per Shane (aminomancer)'s comment on matrix, I think there are leftover references to key_fullScreen after the patch from bug 1821886 that will need updating, cf. https://searchfox.org/mozilla-central/search?q=key_fullScreen

I'm very sorry for not catching this in review.

Masayuki, are you able to take a look at this?

I suspect it will be a bit tedious to fix as I suspect the references cannot stay static now that the shortcut has been split into enter/exit ones. For the menubar macOS ifdef'd ones this is not so bad because there are already 2 menuitems, so they can just each point to the corresponding key element. But this doesn't solve the non-macOS case in the menubar, or the two references in nodeToShortcutMap which is used by the user-configurable toolbar button and the hamburger menu entry.

But perhaps it doesn't matter if the only use for key is the cosmetic fetching of the string used, and that is the same for both key elements?

Flags: needinfo?(masayuki)
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Flags: needinfo?(masayuki)

As far as I've tested, the menu is not visible in the fullscreen mode. But yeah, I guess that setting key to key_fullScreen should work.

Just forgetting to map them to new key_enterFullScreen. Note that both
key_enterFullScreen and key_exitFullScreen have same shortcut keys.
Therefore, mapping only to key_enterFullScreen must be fine for the
toggle UIs.

This patch does not contain the tests for checking the tooltip label on
the toolbar buttons because the shortcut key information does not appear
in the DOM tree.

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/acef8ddb67b4 Map fullscreen menu items and toolbar buttons to the shortcut key correctly r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: