Thunderbird loops GET requests when set as default browser
Categories
(Thunderbird :: OS Integration, defect)
Tracking
(thunderbird_esr6869+ fixed, thunderbird70 fixed, thunderbird71 fixed)
People
(Reporter: benbruecker, Assigned: benjamin)
References
Details
Attachments
(1 file, 2 obsolete files)
|
1.74 KB,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
Comment 1•10 years ago
|
||
Comment 2•9 years ago
|
||
Comment 4•6 years ago
|
||
I tested this now and it's reproducible, although nowadays it's certainly not easy to get yourself into this situation since the Ubuntu default browser selector only lists browsers and you can't directly add a path (which IIRC one used to be able to do).
Anyway, to reproduce this (use a trash profile), do this (I'm using Ubuntu 18.10):
- in a terminal execute xdg-settings set default-web-browser thunderbird.desktop
- send yourself an email with an http link, open the mail and click the link
- observe the massive traffic!
Now, exactly how to prevent this, I'm not sure. Any ideas? I wonder if it can happen in windows too...
Comment 5•6 years ago
|
||
I actually didn't test this with trunk or 68 , only the system version (60) pointed to through thunderbird.desktop
Comment 6•6 years ago
|
||
I wonder if we're ending up here: https://searchfox.org/comm-central/rev/72694e3d97e48704952acf28871e0b64a38081f9/mail/components/nsMailDefaultHandler.js#306
Benjamin, can you investigate - verify it's reproducible on trunk? If that's the spot, can we just add an !/^http?s:/i.test(uri) check to the else above it?
Updated•6 years ago
|
| Assignee | ||
Comment 7•6 years ago
|
||
Confirmed in 69.0b1 and 70.0b1
I've added the suggested fix to the top most if statement here: https://searchfox.org/comm-central/rev/72694e3d97e48704952acf28871e0b64a38081f9/mail/components/nsMailDefaultHandler.js#293
and it resolves the issue. I'm not sure if it is the best play for the check as it might keep some web addresses that link to eml files or feeds from being accessed.
I'll move it around a bit and do some testing.
| Assignee | ||
Comment 9•6 years ago
|
||
I've tested the issue against the bugs description. No signs of regression in testing normal TB operations with patch applied.
Comment 10•6 years ago
|
||
You mean ^https? - right?
| Assignee | ||
Comment 11•6 years ago
•
|
||
I tried with ^https? but that didn't catch "non-secure" sites. I know we're all moving in that direction, but until all sites are secure ^http? catches both. At least in my tests.
Comment 12•6 years ago
|
||
Umm, try https://regex101.com/ with ^https? - Also see:
https://searchfox.org/comm-central/search?q=%5Ehttps%3F&case=false®exp=false&path=
All that code can't we wrong ;-)
Actually, it should be ^https?:
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Since firefox removed feed support, and thus no longer prefixes a feed with |feed:|, attempts to subscribe with Tb as a default result in just an http url being passed to Tb, which opens compose as a default. The feed: protocol never became a standard and it's not probable that other browsers preface with |feed:| either.
The problem here is that passing an http url probably shouldn't open compose, so a decision needs to be made how to handle http in a command line without any flags. If it doesn't go to feed handling, then where? And if not, then the feed bit here is useless.
| Assignee | ||
Comment 15•6 years ago
|
||
No worries Magnus,
I've made the changes to the patch as suggested. Should I go ahead and edit the code that alta88 suggests in comment 14 for good measure?
Comment 16•6 years ago
|
||
Yeah let's pass the urls to subscribeToFeed
| Assignee | ||
Comment 18•6 years ago
|
||
Passing http urls to subscribeToFeed. All is well in my tests.
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Updated•6 years ago
|
Comment 21•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/47eb1c03649d
make http urls passed from the command line trigger feed subscription. r=mkmelin
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 22•6 years ago
|
||
TB 70 beta 2:
https://hg.mozilla.org/releases/comm-beta/rev/0783b216edb1080d3a60900e4442a5e42871c15e
Updated•6 years ago
|
Comment 23•6 years ago
|
||
TB 68.1.1 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/5d2d0a94b89b30a432e8d4e62366e59674fbec94
Description
•