Bug 1494436 - Unset MOZ_APP_LAUNCHER for external MIME handlers
authorSimon McVittie <smcv@debian.org>
Wed, 9 Mar 2022 11:22:42 +0000 (11:22 +0000)
committerCarsten Schoenert <c.schoenert@t-online.de>
Tue, 19 Apr 2022 18:27:13 +0000 (19:27 +0100)
commit9b545aa89f77119f70ec51dad1436689a6b837ff
tree101e766c9ea25c3aee1e394fde997fdc8d1b9dbd
parentf3df0e150eca5842c2f13c62cbd0b4601d624e3e
Bug 1494436 - Unset MOZ_APP_LAUNCHER for external MIME handlers

If Thunderbird sets this in its startup script (as it does in Debian
and Fedora), Firefox does not set this in its startup script (it doesn't
in Debian), and Firefox is the handler for clicking a link in
Thunderbird, then Firefox will think it is part of Thunderbird and offer
to make Thunderbird (not Firefox!) the default browser. If the user
accepts this, it will break the ability to open normal HTTP links and
HTML files from other applications.

The same would be true for any other pair of Mozilla-based applications.
To avoid this, unset MOZ_APP_LAUNCHER for the Firefox child process.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1494436
Bug-Debian: https://bugs.debian.org/948691

Gbp-Pq: Topic fixes
Gbp-Pq: Name Bug-1494436-Unset-MOZ_APP_LAUNCHER-for-external-MIME-hand.patch
toolkit/system/gnome/nsGIOService.cpp