[Mac] The Firefox icon for the "Original Profile" is missing. Only the profile avatar is visible.
Categories
(Toolkit :: Startup and Profile System, defect, P2)
Tracking
()
People
(Reporter: rpopovici, Assigned: jhirsch)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [fidefe-profile-management])
Attachments
(10 files)
|
120.17 KB,
image/png
|
Details | |
|
197.00 KB,
image/png
|
Details | |
|
1.15 MB,
image/png
|
Details | |
|
1.04 MB,
image/png
|
Details | |
|
230.21 KB,
image/png
|
Details | |
|
16.01 KB,
image/png
|
Details | |
|
191.71 KB,
video/quicktime
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
139.35 KB,
video/quicktime
|
Details | |
|
13.25 KB,
image/png
|
Details |
Found in:
Nightly 134.0a1
Affected versions:
Nightly 134.0a1
Tested platforms:
Affected platforms: macOS 13.2.1
Preconditions:
Ensure that the pref "browser.profiles.enabled" is set to true in about:config.
The system theme is set to Dark and Firefox is pinned to the Dock.
Steps to reproduce:
- Open the Profiles panel from the menu bar
- Create a profile by using the "New profile" option
- Observe the Firefox icon added for the "Original Profile" in the Dock
Expected result:
The Firefox icon with a pre-selected avatar for the "Original Profile" should be properly displayed in the Dock.
Actual result:
The Firefox icon for the "Original Profile" is missing. Only the profile avatar is visible. Please see the screenshot with the heart avatar.
Regression range:
This is not a regression.
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
:mossop, I'm happy to attempt a fix here. Any thoughts on a good starting point for debugging?
Comment 2•1 year ago
|
||
I would guess something is going wrong when we draw the application icon for the custom dock tile. It would be interested to see if a similar problem occurs when not using multiple profiles and downloading a large file. This causes us to also build a custom dock tile to overlay the download progress bar.
Comment 3•1 year ago
|
||
The severity field is not set for this bug.
:mossop, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 4•1 year ago
|
||
Mass setting S2 severity for 0.5% release bugs. Apologies for the bug spam!
Updated•1 year ago
|
Updated•1 year ago
|
Comment 5•1 year ago
|
||
I've been unable to reproduce this on my laptop. Is this still reproducible for you?
Comment 6•1 year ago
|
||
(In reply to Dave Townsend [:mossop] from comment #5)
I've been unable to reproduce this on my laptop. Is this still reproducible for you?
And if so can you try reproducing without profiles enabled and starting a long download. This should overlay a progress bar on the dock icon and I'm interested in whether the icon also disappears in this case.
Comment 7•1 year ago
|
||
I reproduced this by creating a new secondary profile (for the first time after enabling the pref), switching back to the original profile, and then switching back again to the newly-created secondary profile. I've closed the window with the secondary profile, and the missing icon still remains for the original profile.
| Reporter | ||
Comment 8•1 year ago
|
||
| Reporter | ||
Comment 9•1 year ago
|
||
I noticed that I could reproduce this bug after restarting my device(macOS 13.2.1), opening Nightly 136.0a1(already pinned to the dock), and creating a switching profile. The icon is missing for the "Original profile". Please see my screenshot.
Comment 10•1 year ago
|
||
(In reply to Cieara Meador [:cmkm] from comment #7)
Created attachment 9446398 [details]
Screenshot 2025-01-08 at 16.59.12.pngI reproduced this by creating a new secondary profile (for the first time after enabling the pref), switching back to the original profile, and then switching back again to the newly-created secondary profile. I've closed the window with the secondary profile, and the missing icon still remains for the original profile.
Can you still reproduce this? When you talk about switching between profiles how exactly were you doing that?
Can you also try to see if comment 6 shows the same issue?
| Assignee | ||
Comment 11•1 year ago
|
||
Hi Raluca, can you still reproduce this in the latest Nightly? We think this is now fixed
| Reporter | ||
Comment 12•1 year ago
|
||
| Reporter | ||
Comment 13•1 year ago
•
|
||
Hi Jared,
Yes, I could reproduce the issue by installing the latest Nightty 136.0a1(27-01-2025). I'll attach the new screenshots.
Don't forget the preconditions:
- Ensure that the pref "browser.profiles.enabled" is set to true(the pref is already enabled by default on the latest Nightly) in about:config.
- The system theme is set to Dark and Firefox is already pinned to the Dock.
Steps:
- Open the Profiles panel from the menu bar.
- Create a profile by using the "New profile" option.
- Observe the Firefox icon added for the "Original Profile" in the Dock and the "Profiles" menu.
| Reporter | ||
Comment 14•1 year ago
|
||
Comment 15•1 year ago
|
||
(In reply to Raluca Popovici, Desktop QA from comment #13)
Hi Jared,
Yes, I could reproduce the issue by installing the latest Nightty 136.0a1(27-01-2025). I'll attach the new screenshots.
Please can you try what I asked for in comment 6?
| Reporter | ||
Comment 16•1 year ago
|
||
I set the pref to false and start to download a long video -> the browser icon is visible on the Dock. See the screenshot.
| Reporter | ||
Comment 17•1 year ago
|
||
Comment 18•1 year ago
|
||
A long download didn't seem to affect this in my testing. Clearing NI since I haven't been able to pinpoint any more specific steps here than the ones mentioned. I'll update if I manage to do so in the future.
Comment 19•1 year ago
|
||
I am still unable to reproduce this so I'm not sure it is worth me staying assigned. I would guess that the error lies somewhere in here and maybe there is something special we need to do for dark mode but looking over the macOS docs doesn't show anything obvious. That said if this is working for the download progress case I'm really unsure what might be happening because that is the same codepath.
| Assignee | ||
Comment 20•1 year ago
|
||
I have some more info which might help with diagnosis.
I suspect there are app bundle icon caching issues at play, because I was able to reproduce on macOS 15 without pinning to the dock, but only on the first run after a clobber build in a brand new profile.
Steps to Reproduce:
- set the system to dark mode (Settings > Appearance > Dark)
- it's helpful to set the dock to turn hiding off (right-click the dock > Turn Hiding Off)
- do a clobber build (very important!)
- start nightly via
./mach run -Pand create a new profile - observe the Nightly icon in the dock. it looks normal.
- in nightly, open the app menu and click 'profiles' then click 'new profile'
- once the second dock entry finishes animating in, the original dock item goes blank except for the badge.
I suspect the issue is something to do with app bundle icon caching, or something about our dark mode icon, since I can't reproduce twice without a clobber build, and I can't reproduce the bug in light mode.
The only way I could see this affecting users would be in dark mode, on first run, which could well be users installing Firefox specifically to try out multiple profiles.
Does this help narrow things down at all?
Comment 21•1 year ago
|
||
(In reply to Jared Hirsch [:jhirsch] (he/him) (Needinfo please) from comment #20)
Created attachment 9466996 [details]
dock icon screen recordingI have some more info which might help with diagnosis.
I suspect there are app bundle icon caching issues at play, because I was able to reproduce on macOS 15 without pinning to the dock, but only on the first run after a clobber build in a brand new profile.
Steps to Reproduce:
- set the system to dark mode (Settings > Appearance > Dark)
- it's helpful to set the dock to turn hiding off (right-click the dock > Turn Hiding Off)
- do a clobber build (very important!)
- start nightly via
./mach run -Pand create a new profile- observe the Nightly icon in the dock. it looks normal.
- in nightly, open the app menu and click 'profiles' then click 'new profile'
- once the second dock entry finishes animating in, the original dock item goes blank except for the badge.
I suspect the issue is something to do with app bundle icon caching, or something about our dark mode icon, since I can't reproduce twice without a clobber build, and I can't reproduce the bug in light mode.
The only way I could see this affecting users would be in dark mode, on first run, which could well be users installing Firefox specifically to try out multiple profiles.
Does this help narrow things down at all?
It suggests that this is a bug in macOS. We just ask for the application icon to be drawn and macOS is meant to take care of that. It's possible we might get a different result by manually loading the application icon from the application bundle.
| Assignee | ||
Comment 22•1 year ago
|
||
Hmm. What if we attempted to add some kind of delay when we first badge the original profile's icon, in case it's an obscure timing issue on the macOS side? (I might take this on, but also wonder if you have thoughts on who on the platform team might have thoughts on a workaround.)
Comment 23•1 year ago
|
||
spohl is most likely to have some idea about this.
Comment 24•1 year ago
•
|
||
I can't speak to the timing issue directly, but I'd try to parse the Console logs to see if there are any messages that might be relevant. There are tons of log entries and it can become difficult to parse, so I'd suggest starting logging right before reproducing the issue and stopping right after to reduce the size of the log. Searching for anything along the lines of "dock" might help narrow things down. I would be looking for any kind of error message or warning related to setting the Dock icon.
| Assignee | ||
Comment 25•1 year ago
|
||
Thanks--I'll do some logging in a debug build and see if I find any dock-related errors. I'll also try to step through the code mossop linked in comment 19 in XCode and see if the debugger being attached has any effect on whether the bug can be reproduced.
| Assignee | ||
Comment 26•1 year ago
|
||
I can't seem to reproduce this in a debug build at all with XCode attached, which makes me more suspicious that it's a race condition.
| Assignee | ||
Comment 27•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 28•1 year ago
|
||
I wasn't able to reproduce the bug with the XCode debugger attached, which was especially onerous because the bug can only be reproduced on the first run after a clobber build.
However, since we kick off the second Firefox instance from JS, I played around a bit with inserting delays at various points in the flow.
As a reminder, the steps I'm following are:
- have macOS in dark mode
- run an artifact clobber build into a fresh profile
- so,
./mach clobber && ./mach build && ./mach run -P, create a new profile, then start into it
- so,
- in profile 1, in the app menu, click profiles > new profile
- profile 2 is created and launched
- the profile 2 icon animates into the dock with a badge
- the profile 1 icon in the dock is badged, but the firefox/nightly icon vanishes
It turns out (see screencast and attached patch) that we can hack around this bug by overwriting the missing dock icon, but only after the dock animation ends for profile 2. Shorter timeouts do not fix the bug (for example, using 100 millisecond delay instead of 1000 in the patch).
:spohl, does this provide any additional clues as to where the bug might be lurking?
Comment 29•1 year ago
|
||
(In reply to Jared Hirsch [:jhirsch] (he/him) (Needinfo please) from comment #28)
:spohl, does this provide any additional clues as to where the bug might be lurking?
Unfortunately not.
| Assignee | ||
Comment 30•1 year ago
|
||
To my surprise, the hacky solution is now accepted, so I've filed followup bug 1952338 in hopes that we someday figure out the "right" fix.
Comment 31•1 year ago
|
||
| Assignee | ||
Comment 32•1 year ago
|
||
Hi Raluca - It seems like this bug may actually be a bug in macOS. To improve the situation for 138, I've found a hacky fix where the icon still disappears, then we redraw it 1 second later. I've filed a followup bug (bug 1952238) for us to try to find a better fix in the future. At least this makes the situation better for new users.
Comment 33•1 year ago
|
||
| bugherder | ||
| Reporter | ||
Comment 34•1 year ago
|
||
I verified the fix on macOS 13.2.1 using the Nightly treeherder build from 07-03-2025, and I noticed that the newly created profile doesn't have an avatar icon (please see the screenshot). Should I file a new bug or reopen the existing one?
| Reporter | ||
Comment 35•1 year ago
|
||
| Reporter | ||
Updated•1 year ago
|
| Assignee | ||
Comment 36•1 year ago
|
||
Hi Raluca - I think the missing badge would make sense as a separate bug--I thought there was a bug for a missing badge, but I can't seem to find it now. (I have noticed the missing badge seems to occur when the user has the "system auto" theme, but I'm not sure if that's the only case.)
| Reporter | ||
Comment 37•1 year ago
|
||
I just found the mentioned bug: 1950167.
I will close this one and keep track of the bug 1950167.
Updated•1 year ago
|
Description
•