Closed Bug 1995621 Opened 7 days ago Closed 6 days ago

Enforce a maximum depth for native menu nesting on macOS

Categories

(Core :: Widget: Cocoa, task)

All
macOS
task

Tracking

()

VERIFIED FIXED
146 Branch
Tracking Status
firefox144 --- verified
firefox145 --- verified
firefox146 --- verified

People

(Reporter: mstange, Assigned: mstange)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Let's limit how deep you can expand native menus. The hope is that this will address the hangs reported in bug 1979283.

Assignee: nobody → mstange.moz
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch

firefox-beta Uplift Approval Request

  • User impact if declined: Users with recursive bookmark folders encounter browser hangs on macOS 26
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Using the Library, copy the Bookmarks Menu folder and paste it inside the Bookmarks Menu folder, creating a recursive structure. Then open the Bookmarks menu in the menubar and keep traversing as deep as you can. With this fix, eventually there should be no more submenu (around 20 levels deep).
    Also try doing a Spotlight search on macOS Tahoe and check if Firefox starts hanging.
  • Risk associated with taking this patch: low
  • Explanation of risk level: Relatively small fix
  • String changes made/needed: none
  • Is Android affected?: no
Attachment #9522013 - Flags: approval-mozilla-beta?
Flags: qe-verify+

firefox-release Uplift Approval Request

  • User impact if declined: Users with recursive bookmark folders encounter browser hangs on macOS 26
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Using the Library, copy the Bookmarks Menu folder and paste it inside the Bookmarks Menu folder, creating a recursive structure. Then open the Bookmarks menu in the menubar and keep traversing as deep as you can. With this fix, eventually there should be no more submenu (around 20 levels deep).
    Also try doing a Spotlight search on macOS Tahoe and check if Firefox starts hanging.
  • Risk associated with taking this patch: low
  • Explanation of risk level: Relatively small fix
  • String changes made/needed: no
  • Is Android affected?: no
Attachment #9522029 - Flags: approval-mozilla-release?
Attachment #9522013 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [uplift] [qa-ver-needed-c146/b145]
Attachment #9522029 - Flags: approval-mozilla-release? → approval-mozilla-release+

The issue is verified fixed with Firefox 145.0b6 and Firefox 146.0a1 on macOS 13 ARM and macOS 14.

Status: RESOLVED → VERIFIED

Hello! I have confirmed that with Firefox 144.0, I can open over 24 submenus on the macOS bookmark menu. However, I cannot reproduce the hang by using Spotlight to open Firefox 144.0 or by searching with Spotlight while Firefox 144.0 is open.
I can confirm that I can no longer open more than 19 submenus bookmark folders using the macOS menu with Firefox 144.0.2, 145.0b7, and 146.0a1 (2025-10-27). I also opened all Firefox builds by searching for them in Spotlight and performed additional Spotlight searches while the builds were running, but I didn’t encounter any hangs.

Has STR: --- → yes
QA Whiteboard: [uplift] [qa-ver-needed-c146/b145] → [uplift] [qa-ver-done-c146/b145]
Flags: qe-verify+
QA Contact: atrif

Can you confirm which version of macOS you tested with? The hang with Spotlight only occurs on macOS 26 Tahoe. Thanks!

Flags: needinfo?(atrif)

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

Can you confirm which version of macOS you tested with? The hang with Spotlight only occurs on macOS 26 Tahoe. Thanks!

Sorry, I tested on macOS Tahoe 26.1. I forgot to add that somehow.

L.E.: I also asked two colleagues, using macOS 26.1 (aarch64) and 26.0.1 (Intel), and they couldn’t reproduce the hang issue while searching with Spotlight with Firefox 144.0 (affected) and with Firefox 144.0.2, 145.0b7, and 146.0a1 (2025-10-27)

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

Attachment

General

Created:
Updated:
Size: