thunderbird can't register itself as the default mail app on win7
Categories
(Thunderbird :: OS Integration, defect, P5)
Tracking
(thunderbird68- affected)
People
(Reporter: bughit.github, Unassigned)
References
Details
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Comment 4•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment 8•6 years ago
|
||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
| Reporter | ||
Comment 12•6 years ago
|
||
| Reporter | ||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
| Reporter | ||
Comment 17•6 years ago
|
||
Comment 18•6 years ago
|
||
| Reporter | ||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
| Reporter | ||
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
| important | ||
Updated•6 years ago
|
Comment 24•6 years ago
|
||
Comment 25•6 years ago
|
||
(In reply to Robert Strong (Robert he/him) [:rstrong] (use needinfo to contact me) from comment #18)
From this point a Thunderbird dev will need to decide on which path forward
to take.
Hi Robert, what makes you think that we have Windows system programming skills in our team? I think we will need to hire an external contractor for this work, and while they are at it, also other Windows related issues, like MAPI, in these bugs:
Bug 393302, bug 1517955 (just in which might be a variation on this bug), bug 1506488, bug 547027.
I compared the M-C and C-C versions of nsWindowsShellService.cpp and it would be an expensive matter of trial and error for me trying to work out which bits need to be ported over.
Would you happen to know anyone with the right skill set we could approach?
Comment 26•6 years ago
•
|
||
(In reply to Masatoshi Kimura [:emk] from comment #24)
(In reply to Robert Strong (Robert he/him) [:rstrong] (use needinfo to
contact me) from comment #16)I forgot to mention that Firefox now launches the OS provided UI so the
clients can set as default instead of invoking the new API directly.It is untrue on Windows 7.
Looks like in Firefox's nsWindowsShellService.cpp Windows 7 launches UI as well.
Comment 27•6 years ago
|
||
Jorg, nothing makes me think that Thunderbird has Windows system programming skills in your team especially after Scott, David, and Seth left. I've helped out on my own time over the years because of this.
You might be able to find someone from the log of changes on nsWindowsShellService.cpp
Comment 28•6 years ago
|
||
(In reply to Robert Strong (Robert he/him) [:rstrong] (use needinfo to contact me) from comment #26)
(In reply to Masatoshi Kimura [:emk] from comment #24)
(In reply to Robert Strong (Robert he/him) [:rstrong] (use needinfo to
contact me) from comment #16)I forgot to mention that Firefox now launches the OS provided UI so the
clients can set as default instead of invoking the new API directly.It is untrue on Windows 7.
Looks like in Firefox's nsWindowsShellService.cpp Windows 7 launches UI as well.
Really? Windows 7 will never launch UI due to IsWin8OrLater() check here:
https://searchfox.org/mozilla-central/rev/c3ebaf6de2d481c262c04bb9657eaf76bf47e2ac/browser/components/shell/nsWindowsShellService.cpp#410
I also confirmed that Firefox 64 did not launch UI on my Win7 box.
Comment 29•6 years ago
|
||
Thanks for pointing that out... I missed that when skimming the file. Anyways, I haven't worked on shell integration for quite some time and haven't kept up with it. Perhaps emk can help out with this.
Comment 30•6 years ago
|
||
| important | ||
This bug is not related with 32-bit vs. 64-bit. I can reproduce the issue if I install both Thunderbird 52 and 60 side by side. Apparently Thunderbird 52 will write registry keys under HKCU\Software\Classes, but Thunderbird 60 will not.
Comment 31•6 years ago
|
||
emk's observation in comment 30 looks interesting; indeed, correcting the registry keys will stop the prompts with TB x64 on a system where a 32bit release was there before - though only a clean install of 32bit TB 60 can rule out such a regression from 52.
Updated•6 years ago
|
Comment 32•6 years ago
|
||
If this bug isn't fixed for Thunderbird 68 ESR can it be closed as WONTFIX as "after January 14, 2020, Microsoft will no longer provide security updates or support for PCs running Windows 7"? Thank you
https://www.microsoft.com/en-us/windowsforbusiness/end-of-windows-7-support
Comment 33•6 years ago
|
||
(In reply to Óvári from comment #32)
If this bug isn't fixed for Thunderbird 68 ESR can it be closed as WONTFIX as "after January 14, 2020, Microsoft will no longer provide security updates or support for PCs running Windows 7"?
We wouldn't do that today or in the coming months, when Thunderbird (and Firefox) typically support OSes 1-2 years after a vendor desupports an OS. Not even sure why you suggest this, when there are clearly efforts to resolve the issue
Comment 34•6 years ago
|
||
Mike do you have any insight to apply to this?
This may be the last code issue standing in the way of bug 634233
Comment 35•6 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #34)
Mike do you have any insight to apply to this?
I suppose it's some problem in helper.exe - which is an NSIS installer executable. I don't know enough about NSIS, unfortunately. I only can say that a master build I made shows a UAC prompt for me when I ask it to make TB the default application on Windows 10 x64 (primary development box), while doesn't ask for elevated permissions on Win7 x64 VM, and runs and only sets some per-user settings (HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.eml and the like). But possibly that is unrelated, and could be because of some debug library missing on the VM or something...
Comment 36•6 years ago
|
||
Jorg, in bug 1517955 comment 2 you mention this is on your todo list. Can yuo sort this for 68? Or do we need additional resources?
Comment 37•6 years ago
|
||
As per comment #23, the TB shell integration needs to be brought in line with years of development in FF. As per comment #25, I looked at nsWindowsShellService.cpp and concluded that a person with the appropriate skill set needs to do that. Maybe the issue is easier as per comment #30, there might even just be a regression that needs fixing.
Comment 38•6 years ago
|
||
| important | ||
I checked a bit the history of the FX nsWindowsShellService.cpp.cpp. Here are some bugs that manage the default browser:
Bug 1324617 - Allow any of multiple installations to be set as the Windows default browser
Bug 1337530 - Fix Windows default browser detection
Bug 1338843 - Use the install path to distinguish between multiple installations when checking default browser status
Maybe this could help.
Comment 39•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #37)
As per comment #23, the TB shell integration needs to be brought in line with years of development in FF. As per comment #25, I looked at nsWindowsShellService.cpp and concluded that a person with the appropriate skill set needs to do that. Maybe the issue is easier as per comment #30, there might even just be a regression that needs fixing.
Did anybody look into this comment #30 thing yet?
Just updated to 60.8.0 (32-bit). Still 32 bit.
Comment 40•6 years ago
|
||
Sadly not, not many Windows "system programmers" around. But it's on the radar.
Comment 42•6 years ago
•
|
||
(In reply to Masatoshi Kimura [:emk] from comment #30)
This bug is not related with 32-bit vs. 64-bit. I can reproduce the issue if I install both Thunderbird 52 and 60 side by side. Apparently Thunderbird 52 will write registry keys under HKCU\Software\Classes, but Thunderbird 60 will not.
(In reply to Hungerburg from comment #31)
emk's observation in comment 30 looks interesting; indeed, correcting the registry keys will stop the prompts with TB x64 on a system where a 32bit release was there before - though only a clean install of 32bit TB 60 can rule out such a regression from 52.
(In reply to Jorg K (GMT+2) from comment #37)
As per comment #23, the TB shell integration needs to be brought in line with years of development in FF.
I just created bug 1572266 to get this started
Comment 43•6 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #38)
I checked a bit the history of the FX nsWindowsShellService.cpp.cpp. Here are some bugs that manage the default browser:
Bug 1324617 - Allow any of multiple installations to be set as the Windows default browser
Bug 1337530 - Fix Windows default browser detection
Bug 1338843 - Use the install path to distinguish between multiple installations when checking default browser statusMaybe this could help.
Does someone else want to create 3 new bugs for Thunderbird to do these things?
Comment 44•6 years ago
|
||
Not really. We can do a port in this bug here. Creating more bugs doesn't fix the issue. We need to find a person who can do it.
Comment 45•6 years ago
|
||
Is there a registry editor file for me to just launch and have the prompt not appear anymore? I just installed 68 x64 on a w7 system, even using the 32bit version of TB, it comes up every start.
Comment 46•6 years ago
|
||
Why don't you switch off the check in TB?
Comment 47•6 years ago
|
||
Options, Advanced, System Integration: Always check to see if Thunderbird is the default mail client on startup.
Comment 48•6 years ago
|
||
Thank you Jörg; in fact, the very same prompt for system integration offers the checkbox, to not ask again. I just wanted to make sure, TB is registered.
Nevertheless, the "send email" explorer desktop shortcut opens up a TB compose window - I did not try from other software that calls to mapi though…
Curiously, the "default apps" system control does not even list a "send email" action, nor does TB provide a "send email" action there (only nttp and news).
Comment 49•6 years ago
|
||
TB will stay registered until some other software registers itself ... which doesn't happen on my machine, hence no need to check.
Yes, we fixed MAPI even for 64bit now, it works OK from various programs, like LibreOffice. Plus, TB is integrated via MAPI into many workflows, so we hear about it very soon if something doesn't work.
As for the "default apps", there there's only a setting for Email in the UI, but TB registers itself for stuff like news/NNTP IIRC.
Reading though the bug, you'll see that in comment #3 the reporter told us that switching off the check wasn't a solution, only a workaround, and I agree. There are also registry settings in comment #7.
| Comment hidden (offtopic) |
| Comment hidden (offtopic) |
Comment 54•5 years ago
|
||
(In reply to Óvári from comment #32)
If this bug isn't fixed for Thunderbird 68 ESR can it be closed as WONTFIX as "after January 14, 2020, Microsoft will no longer provide security updates or support for PCs running Windows 7"? Thank you
https://www.microsoft.com/en-us/windowsforbusiness/end-of-windows-7-support
(In reply to Wayne Mery (:wsmwk) from comment #33)
(In reply to Óvári from comment #32)
If this bug isn't fixed for Thunderbird 68 ESR can it be closed as WONTFIX as "after January 14, 2020, Microsoft will no longer provide security updates or support for PCs running Windows 7"?
We wouldn't do that today or in the coming months, when Thunderbird (and Firefox) typically support OSes 1-2 years after a vendor desupports an OS. Not even sure why you suggest this, when there are clearly efforts to resolve the issue
Just an FYI that this January 14, 2020 date has now passed.
That said, I am running a Thunderbird nightly build, and whenever I click on a mailto: link in Firefox (also nightly), it will open a bazillion Microsoft IE windows, to the point of me needing to restart my computer to kill it. Not sure if this helps anything or not. Let me know if there is anything you would like me to try.
Comment 55•5 years ago
|
||
Windows 7 is no longer supported by Microsoft.
How does that affect this bug?
Comment 56•5 years ago
|
||
For the record : I have none of the keys reported by bughit in my W7 64bits registry, but still I've got the same behaviour.
Had a Thunderbird that updated itself for a long time without this problem. I decided to move Thunderbird from one disk to another by uninstalling it then installing a fresh downloaded version. Now I'm hit by the bug.
TB announces to be 68.7.0 32bits by the way.
| Comment hidden (duplicate) |
Comment 59•5 years ago
|
||
I see https://hg.mozilla.org/comm-central/file/c6b42eb37520559241470f824fae0d6ba7b1c8d7/mail/components/shell/nsWindowsShellService.cpp#l248 checks for HKEY_CLASSES_ROOT.eml (https://hg.mozilla.org/comm-central/file/c6b42eb37520559241470f824fae0d6ba7b1c8d7/mail/components/shell/nsWindowsShellService.cpp#l82) which does not exist on my system.
I fail to understand these checks, as in making them relate to https://docs.microsoft.com/en-us/windows/win32/shell/default-programs#after-installation
Comment 60•5 years ago
|
||
(In reply to Worcester12345 from comment #55)
Windows 7 is no longer supported by Microsoft. How does that affect this bug?
It doesn't significantly affect this bug because a) there is still a significant percentage of Thunderbird users on win7, b) the decision of how critical we see this bug is tied to whether WE officially support Windows 7, and as of this date we still do. I suspect we will until some time in 2021. (which is essentially what I point out in comment 33)
Comment 61•5 years ago
|
||
Is this fixed (WORKSFORME) or no (WONTFIX)? It might be good to just resolve this one way or the other.
| Reporter | ||
Comment 62•5 years ago
|
||
I've long since given up on this being fixed. But it should be pointed out that:
- win7 is supported by MS (win7 ESU)
- whether it is or not is not particularly relevant
- there are only two reasons for TB to drop support for win7
- if its usage becomes insignificant
- if it has unpatchable RCE that can be exploited via TB
- neither is the case
- win7 usage is still huge (~ 25%)
- it was 40% when this bug was reported 2 years ago
- releasing an email client that can't be registered as default by 40% of your potential users is absurd
Comment 63•5 years ago
|
||
Please look at whether something has block bug before commenting.
(In reply to Worcester12345 from comment #61)
Is this fixed (WORKSFORME) or no (WONTFIX)? It might be good to just resolve this one way or the other.
no
Comment 64•5 years ago
|
||
releasing an email client that can't be registered as default by 40% of your potential users is absurd
Thunderbird 32bit is still available and won't be going anywhere for I'd assume 10yrs or more. This bug is strictly for users hanging on to win7 and for unknown reasons want to update to 64 bit Thunderbird even it doesn't make a difference in the program's functionality.
| Reporter | ||
Comment 65•5 years ago
|
||
Thunderbird 32bit is still available
This is a not a 64bit issue, I included 64 in the title because that's how I encountered it. TB cannot register itself as default on win7, period. And the excuse for not fixing it is that users can install the old working version first to do the registration and then upgrade to the broken version?
Comment 66•5 years ago
•
|
||
(In reply to Wayne Mery (:wsmwk) from comment #63)
Please look at whether something has block bug before commenting.
Blocks:
bug 1517955, bug 1568550
I guess bug 1517955 should be removed as blocking this bug (1509918) then (see below, and response from bug reporter).
(In reply to Magnus Melin [:mkmelin] from comment #64)
releasing an email client that can't be registered as default by 40% of your potential users is absurd
Thunderbird 32bit is still available and won't be going anywhere for I'd assume 10yrs or more. This bug is strictly for users hanging on to win7 and for unknown reasons want to update to 64 bit Thunderbird even it doesn't make a difference in the program's functionality.
I did not even notice this:
Platform:
x86_64
Windows 7
I guess the "x86_64" should be removed then. I thought it was for all Windows. We have mostly moved beyond Windows 7, so this does not concern me as much. Bummer for the bug reporter though.
Comment 69•4 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #64)
releasing an email client that can't be registered as default by 40% of your potential users is absurd
This bug is strictly for users hanging on to win7 and for unknown reasons want to update to 64 bit Thunderbird even [if] it doesn't make a difference in the program's functionality.
Let's ask a different question - for win7 users who lack "correct" registry settings, will moving them to 64bit break any functions that are not already broken by this bug?
If the answer is no, then we remove blocking of bug 634233. If the answer is yes, then do we exclude windows 7 from automatic updates to 64bit?
FWIW, I estimate the percentage of Windows users of Thunderbird (on a current version) to be 20-30% win7
Comment 70•4 years ago
|
||
I haven't gone trough the bugs lately, but I don't know of any other problems.
I'd think a large portion of the win7 users probably are on 32bit hardware anyway (we could probably get numbers on this). I don't see a benefit in upgrading win7 users to 64bit in general, so IMHO we could well just exclude them from the conversion. Quite frankly, it's not like that is very tested territory...
Comment 71•4 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #70)
I'd think a large portion of the win7 users probably are on 32bit hardware anyway (we could probably get numbers on this).
I would be wary of stating such assumptions.
32 bits hardware is hard to come by these days, and suggesting 20-30% of the otherwise estimated user base runs on (very, very) old hardware resembles IMHO much of a stunt.
If you got telemetry, please do check numbers.
If you don't, please avoid wild theories.
B.
Comment 72•4 years ago
|
||
Well, these days yes, but how did they end up with Win7 to begin with? You haven't been able to get that from anywhere for many years.
Anyway, I believe we do have telemetry on this so we could check.
Not sure it makes a difference for what we opt to do here though. What would the argument be for upgrading people on Win7 to 64bit? There isn't much for people on Win10 with 64bit hw either...
Comment 73•4 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #69)
If the answer is yes, then do we exclude windows 7 from automatic updates to 64bit?
That should be doable. Does anyone have a Win7 machine to test that though?
Comment 74•4 years ago
•
|
||
(In reply to Magnus Melin [:mkmelin] from comment #72)
Anyway, I believe we do have telemetry on this so we could check.
I checked this back in November and just redid it for today, as of Thursday last week here's the breakdown:
| OS | Nov 2020 | Feb 2021 |
|---|---|---|
| Win10 | 76.3% | 77.4% |
| Win7 64-bit | 11.1% | 10.3% |
| Win7 32-bit | 4.2% | 3.9% |
| MacOS | 3.6% | 3.9% |
| Win8 | 3.7% | 3.7% |
| Linux | 1% | 0.7% |
| WinXP | 0.2% | 0.2% |
Comment 75•4 years ago
|
||
The excuse brought forward not to address this issue but circumvent it, and which needed checking, is whether Windows 7 users are in majority running 32 bits architecture hardware.
Have you got hardware telemetry by any chance?
Comment 76•4 years ago
|
||
(In reply to B from comment #75)
The excuse brought forward not to address this issue but circumvent it, and which needed checking, is whether Windows 7 users are in majority running 32 bits architecture hardware.
Sorry, my bad. The comments in this bug are very confusing. If we are talking users on Win7 32-bit only, then it's 3.9% of all. I've updated the table accordingly as well.
Comment 77•4 years ago
|
||
(In reply to B from comment #71)
I would be wary of stating such assumptions.
32 bits hardware is hard to come by these days, and suggesting 20-30% of the otherwise estimated user base runs on (very, very) old hardware resembles IMHO much of a stunt.
Per the data above, at the moment 27.5% of win7 users are in this (32bit OS) group.
Comment 78•4 years ago
|
||
Can someone explain to me why we're discussing 32-bit vs 64-bit here, and what this has to do with the migration?
According to Comment #65 by the original reporter, this bug occurs on Win7 period regardless of 32/64-bit.
Comment 79•4 years ago
|
||
(In reply to Andrei Hajdukewycz [:sancus] from comment #78)
Can someone explain to me why we're discussing 32-bit vs 64-bit here, and what this has to do with the migration?
(In reply to bughit from comment #3)
Did you match os and bitness? win7 x64 sp1, tb 60.3.1 x64
(In reply to Jorg K (CEST = GMT+2) from comment #4)
This is still pointing to the x86 52.9.1 and the set default from x64 60.3.1
does not alter it
Maybe that's a general problem with the 64bit version. Officially, there's
isn't a 64bit version. This may well be an installer bug. Could be related
to bug 1507618.
This is where it came from. There's more, but you can find the rest above.
Comment 80•3 years ago
|
||
As has been pointed out, this isn't 64bit specific, so removing bug 634233
Updated•3 years ago
|
Comment 81•2 years ago
|
||
Is this Windows 7 support still being worked on, or should this just get marked as "WONTFIX" once and for all?
Comment 82•1 year ago
|
||
(In reply to Worcester12345 from comment #81)
Is this Windows 7 support still being worked on, or should this just get marked as "WONTFIX" once and for all?
If someone wants to submit a patch I believe it would be accepted.
Description
•