Enforce a maximum depth for native menu nesting on macOS
Categories
(Core :: Widget: Cocoa, task)
Tracking
()
People
(Reporter: mstange, Assigned: mstange)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-release+
|
Details | Review |
Let's limit how deep you can expand native menus. The hope is that this will address the hangs reported in bug 1979283.
| Assignee | ||
Comment 1•7 days ago
|
||
Updated•7 days ago
|
Comment 4•5 days ago
|
||
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
| Assignee | ||
Comment 5•5 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D269452
Comment 6•5 days ago
|
||
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
| Assignee | ||
Comment 7•5 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D269452
Updated•5 days ago
|
Updated•5 days ago
|
Updated•4 days ago
|
Updated•4 days ago
|
Updated•4 days ago
|
Comment 10•1 day ago
•
|
||
The issue is verified fixed with Firefox 145.0b6 and Firefox 146.0a1 on macOS 13 ARM and macOS 14.
Comment 11•16 hours ago
•
|
||
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.
Comment 12•16 hours ago
|
||
Can you confirm which version of macOS you tested with? The hang with Spotlight only occurs on macOS 26 Tahoe. Thanks!
Comment 13•16 hours ago
•
|
||
(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)
Description
•