Skip to content

Bug 2002462 - Fix dock icon race#423

Draft
gcp wants to merge 2 commits intoenterprise-mainfrom
bug-2002462-dock-icon-race
Draft

Bug 2002462 - Fix dock icon race#423
gcp wants to merge 2 commits intoenterprise-mainfrom
bug-2002462-dock-icon-race

Conversation

@gcp
Copy link
Contributor

@gcp gcp commented Feb 10, 2026

No description provided.

gcp added 2 commits February 10, 2026 23:04
When rapidly clicking links, macOS spawns multiple Firefox "remoting
client" processes that each briefly show a dock icon before sending
their URL to the running instance and exiting.

Fix by setting LSUIElement=true in Info.plist (guarded by
MOZ_ENTERPRISE) so no Enterprise Firefox process shows a dock icon at
launch time. After the remoting check determines this is the main
process (not a remoting client), the dock icon is restored via
setActivationPolicy:Regular. Remoting clients exit before that point
and never show a dock icon.

Also guard the MOZ_FELT_UI LSEnvironment entry with MOZ_ENTERPRISE and
pass MOZ_ENTERPRISE to the plist preprocessor via PLIST_EXTRA_FLAGS.
…con race

Add test_rapid_new_windows_from_cli that launches 5 --new-window
processes simultaneously, and test_rapid_new_tabs_from_cli that launches
5 -url processes simultaneously (tabs in existing window), to detect
the race condition where rapid link clicks could spawn duplicate dock
icons (see bug 2002462 comment 18).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant