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>
Mon, 30 May 2022 17:36:06 +0000 (18:36 +0100)
commitdf25560b6b9dd8691e384fcbe1a6d2b2a67d07d9
treedcc1a1e400da5d2e7c6183209ebc28ecd4d8b4f4
parent173b8756811819641fdc82a5f9e1d1c198c57316
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