Closed Bug 1807697 Opened 2 years ago Closed 2 years ago

Windows and other items disappear from Window menu due to dynamic WebRTC Window "Tab sharing devices" menu item

Categories

(Core :: Widget: Cocoa, defect)

Firefox 108
Desktop
macOS
defect

Tracking

()

VERIFIED FIXED
110 Branch
Tracking Status
relnote-firefox --- 108+
firefox-esr102 --- unaffected
firefox108 --- verified
firefox109 --- verified
firefox110 --- verified

People

(Reporter: spohl, Assigned: spohl)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

+++ This bug was initially created as a clone of Bug #1800550 +++

WebRTC dynamically adds a "Tab sharing devices" menu item to the Window menu on macOS. Since bug 1642138, macOS manages the list of windows in the Window menu for us. However, this stops working if we dynamically modify the list of menu items. Therefore, the WebRTC menu item should move to another menu. I propose to move this to the "Tools" menu, as seen in the attached picture. I will post a patch for discussion on Phabricator.

Fixing this bug may or may not address bug 1800550. I'm waiting to get confirmation of this in bug 1800550, but I thought it would be important to get the conversation started about where to move this menu item to, hence this bug.

Assignee: nobody → spohl.mozilla.bugs
Status: NEW → ASSIGNED

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

Duplicate of this bug: 1800550
Pushed by spohl@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e15c46e9f7e4
Move the 'Tabs sharing devices' menu item for WebRTC from the Window menu to the Tools menu on macOS. r=Gijs
Blocks: 1807827
No longer blocks: 1807827
See Also: → 1807827
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch

Comment on attachment 9309912 [details]
Bug 1807697: Move the 'Tabs sharing devices' menu item for WebRTC from the Window menu to the Tools menu on macOS. r=Gijs

Beta/Release Uplift Approval Request

  • User impact if declined: The Window menu on macOS becomes corrupted if a user uses WebRTC, losing the list of open windows and other functionality exposed by macOS such as tiling of windows etc. Recovering the Window menu is not straightforward and may at times require a restart of Firefox before full functionality is restored.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: 1. Click the "User gesture" button at https://jan-ivar.github.io/dummy/gdm.html
  1. Share a window. You may need to first enable screen sharing in macOS preferences.
  2. Open the Window menu and verify that the menu contains the full list of open windows.
  3. Open the Tools menu and verify that it contains a new menu item "Tabs sharing devices", listing the window that was shared.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This change simply moves an existing menu item from the Window menu to the Tools menu on macOS only.
  • String changes made/needed: none
  • Is Android affected?: No
Attachment #9309912 - Flags: approval-mozilla-release?
Attachment #9309912 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Verified that using the latest Nightly 110.0a1 on macOS 13.1 and macOS 11.6 the "Tabs sharing devices" menu is now located in Tools.

Comment on attachment 9309912 [details]
Bug 1807697: Move the 'Tabs sharing devices' menu item for WebRTC from the Window menu to the Tools menu on macOS. r=Gijs

Approved for 109.0b8.

Attachment #9309912 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9309912 [details]
Bug 1807697: Move the 'Tabs sharing devices' menu item for WebRTC from the Window menu to the Tools menu on macOS. r=Gijs

Approved for 108.0.2

Attachment #9309912 - Flags: approval-mozilla-release? → approval-mozilla-release+

Verified that the "Tabs sharing devices" menu is now located in Tools with Firefox 109.0b8 and Firefox 108.0.2 on macOS 11.7.2. Although when accessing the menu it will show a slim bar and not showing the tab like it is looks in the attachment in Comment 0. Here's an attachment of how it looks. Any idea Spohl?

Flags: needinfo?(spohl.mozilla.bugs)

(In reply to Catalin Sasca, QA [:csasca] from comment #13)

Created attachment 9310778 [details]
tabs sharing devices.png

Verified that the "Tabs sharing devices" menu is now located in Tools with Firefox 109.0b8 and Firefox 108.0.2 on macOS 11.7.2. Although when accessing the menu it will show a slim bar and not showing the tab like it is looks in the attachment in Comment 0. Here's an attachment of how it looks. Any idea Spohl?

Are you able to reproduce this with a build before my change if you share the exact same tab/window/desktop? This might depend on the type of tab, window or desktop that is being shared and is most likely unrelated to my change.

Flags: needinfo?(spohl.mozilla.bugs) → needinfo?(catalin.sasca)

Yep, tried on Firefox 109.0b5 where the "Tabs sharing devices" menu is located in Window. Seems to be the same there as well. Will mark this as verified then. Do you know if there is an issue logged for the situation mentioned above or should I create one? Thanks!

Status: RESOLVED → VERIFIED
Flags: needinfo?(catalin.sasca) → needinfo?(spohl.mozilla.bugs)
Flags: qe-verify+

(In reply to Catalin Sasca, QA [:csasca] from comment #15)

Yep, tried on Firefox 109.0b5 where the "Tabs sharing devices" menu is located in Window. Seems to be the same there as well. Will mark this as verified then. Do you know if there is an issue logged for the situation mentioned above or should I create one? Thanks!

Unfortunately I don't know, but the folks working on WebRTC might. If you file the bug under Core : WebRTC it will get triaged and duplicated to another bug if it is already filed. Thanks for verifying!

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

Attachment

General

Created:
Updated:
Size: