macOS 27 (Golden Gate) - Profiles Menu bar bug
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr153 | --- | affected |
People
(Reporter: robbwww08, Assigned: spohl)
References
(Blocks 2 open bugs)
Details
Attachments
(3 external files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:155.0) Gecko/20100101 Firefox/155.0
Steps to reproduce:
I open Firefox and close the initial opening window.
I switch to another app or the Finder
I switch back to Firefox
Actual results:
I switch back to Firefox and the 'Profiles' menu bar entry is not displayed in the space it should be presented in.
Expected results:
I switch back to Firefox and I expect all the menu bar items to show at the top of the screen.
This seems to only happen if Firefox has no open windows when I swtch to it. When one or more already open windows are present the menu bar is always as expected. This item does come back eventually even without being clicked on.
Comment 2•3 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Cocoa' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 months ago
|
Comment 3•2 months ago
|
||
I see the Profiles menu momentarily missing and then it appears
| Assignee | ||
Comment 4•2 months ago
|
||
This looks like it is not specific to macOS 27. gProfiles.init() and gSync.init() run from browser-window-idle-tasks, which only browser windows run. On macOS the menubar that stays up when no window is open belongs to the hidden window, and that window never runs those tasks, so its "Profiles" menu keeps whatever the markup sets until a browser window opens and takes the menubar over. That seems to match comment 1, where the item comes back on its own once a window exists.
I have patches for this. They add a browser-menubar-init category so that every window hosting the shared menubar sets up its service-driven items rather than only browser windows, and they fix two related things in the macOS non-browser windows: the private browsing and quit shortcut setup that browser-init.js and nonbrowser-mac.js each did separately, and a few browser-only items that were left enabled where they cannot do anything. The macOS and Linux browser-chrome suites are running on try now, and they were green on the previous revision of the patches: https://treeherder.mozilla.org/jobs?repo=try&revision=e8ac5229c3a3e888eabbd1d54d88af3767ba8eb2
Dave, re: comment 3, could you say whether you see that with no browser window open, or with one already open? The setup is dispatched on idle, so a short delay before the menu shows up may be a separate thing from what this bug describes.
| Assignee | ||
Comment 5•2 months ago
|
||
browser-init.js did this for browser windows and nonbrowser-mac.js repeated it for the macOS hidden window. Doing it once in the script which the menubar markup loads covers both, and the Library, Page Info, About and Set Desktop Background windows as well.
Removing key_privatebrowsing leaves menu_newPrivateWindow pointing at a key that no longer exists, which logs an error when the File menu is built. The quit item already drops its key attribute for the same reason, and without doing the same here this move would spread that error to the windows it newly covers.
Updated•2 months ago
|
| Assignee | ||
Comment 6•2 months ago
|
||
"Synced Tabs" in the History menu opens the synced tabs view of the toolbar's account button, which these windows do not have, so it is disabled like the other browser-only items. "Close Window" is hidden in the markup and only shown by the tab bar code of browser windows, so it is shown here as well, and disabled in the hidden window which has nothing to close.
| Assignee | ||
Comment 7•2 months ago
|
||
gProfiles.init() and gSync.init() run from the browser-window-idle-tasks category, which only browser windows run, so the Profiles menu and the sync items of the Tools menu keep their markup defaults in the menubar of the macOS hidden window. macOS shows that menubar once the last browser window closes, which is when the Profiles menu goes missing. The Library, Page Info, About and Set Desktop Background windows host the same menubar and have the same gap.
The new browser-menubar-init category is invoked from browser-menubar.js, the script which the menubar markup itself loads, so its consumers run in exactly the windows that host the menubar. Registering there instead of in browser-window-idle-tasks is what keeps future menubar items from having the same problem.
Comment 8•2 months ago
|
||
What I see is with no browser windows open there is no profiles menu at all. When I open a browser window there is a gap displayed where the profiles menu should be and then a moment later the text appears.
Comment 9•2 months ago
|
||
We should track this on 153 ESR.
| Assignee | ||
Comment 10•2 months ago
|
||
(In reply to Dave Townsend [:mossop] from comment #8)
What I see is with no browser windows open there is no profiles menu at all. When I open a browser window there is a gap displayed where the profiles menu should be and then a moment later the text appears.
Thanks, that confirms it. The missing menu with no window open is the hidden window's menubar: gProfiles.init() only runs in browser windows, so the hidden window's "Profiles" menu keeps the markup default of hidden. The patches on this bug make the hidden window set it up like a browser window does.
The gap that fills in a moment after a browser window opens looks like a separate thing. The new window's native menubar is installed as soon as the window becomes main, before the idle task unhides "Profiles", and inserting the item into the installed menu bar seems to leave macOS 27 drawing an empty slot until it catches up. Keeping a single menubar installed for the whole application should avoid that insertion, since the shared menubar would already show "Profiles" before a window opens. That work is tracked in bug 2074267.
| Assignee | ||
Comment 11•2 months ago
|
||
[Tracking Requested - why for this release]:
The Profiles menu is not displayed in the main menu bar if the user has closed all windows (with Firefox still running).
Comment 12•1 month ago
|
||
:spohl, we will track this for ESR153 161+, but is it likely to land within the next week?
| Assignee | ||
Comment 13•1 month ago
|
||
(In reply to Donal Meehan [:dmeehan] from comment #12)
:spohl, we will track this for ESR153 161+, but is it likely to land within the next week?
No, this is a rather large architectural change that is still being discussed. I do not expect this to land anytime soon and we will want to have full QA coverage as well.
Comment 14•1 month ago
|
||
Clearing tracking, the ESR153 uplift can be revisited once it's landed
Updated•1 month ago
|
Updated•9 days ago
|
Updated•9 days ago
|
Updated•9 days ago
|
Description
•