Closed Bug 1911596 Opened 1 year ago Closed 1 year ago

Clicking a mailto: link from Bugzilla notifications breaks the message browser and does not bring up the compose window

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 130
x86_64
Linux
defect

Tracking

(thunderbird_esr128 affected, thunderbird129 affected)

RESOLVED DUPLICATE of bug 1914250
Tracking Status
thunderbird_esr128 --- affected
thunderbird129 --- affected

People

(Reporter: babolivier, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(2 files)

See the video attached. Note how:

  • when I hover the link, Thunderbird correctly shows its target as a mailto: URL (in the bottom left corner)
  • when I click the link, the message browser becomes completely empty, and no compose window appears
  • no error appears in the console

When this bug happens in the 3-pane view, clicking on another message does not fix the issue - the message browser stays empty until Thunderbird is restarted.

I've only see this happen with Bugzilla notification emails, I haven't been able to reproduce when crafting an email with a normal mailto: link in it. The link in Bugzilla notifications seems to have an onclick action, which might be the cause of this issue.

I've just noticed the following in my terminal when I try to open such a link (and not a "normal" mailto: link):

[Parent 222697, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x804B000A (NS_ERROR_MALFORMED_URI): file /home/babolivier/Documents/mozilla/mozilla-central/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp:1836
[Parent 222697, Main Thread] WARNING: NS_ENSURE_TRUE(mPumpingData) failed: file /home/babolivier/Documents/mozilla/mozilla-central/netwerk/base/nsBaseChannel.cpp:379
[Child 223013, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x805D0001 (NS_ERROR_WONT_HANDLE_CONTENT): file /home/babolivier/Documents/mozilla/mozilla-central/uriloader/base/nsURILoader.cpp:166
[Parent 222697, Main Thread] WARNING: NS_ENSURE_TRUE(mPumpingData) failed: file /home/babolivier/Documents/mozilla/mozilla-central/netwerk/base/nsBaseChannel.cpp:386
[Parent 222697, Main Thread] WARNING: 'aOwner->IsDiscarded()', file /home/babolivier/Documents/mozilla/mozilla-central/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SyncedContextInlines.h:95

Which looks like a smoking gun.

This appears to affect ESR too.

I don't think the onclick is the issue. If I remove it (in the eml and then import that), the bug still occurs. It also doesn't seem to be the <base>.

The difference seems to be that working clicks don't reach the MailtoProtocolHandler.sys.mjs. While the bugged behavior hits that code path twice for a single click.

This seems to be the same problem as bug 1914250. Even though it's older, I'm closing this one, since there's already a proposed fix in the other one.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1914250
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: