Closed Bug 1720725 Opened 3 years ago Closed 3 years ago

email will not send - chokes on the spellchecker being not initialized

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr78 unaffected, thunderbird91+ fixed, thunderbird92 affected)

RESOLVED FIXED
92 Branch
Tracking Status
thunderbird_esr78 --- unaffected
thunderbird91 + fixed
thunderbird92 --- affected

People

(Reporter: musiquegraeme, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

I clicked on Send

Actual results:

The send, spelling and save buttons were greyed out and that was that.

Expected results:

The email should have been sent.
The solution was to remove my addon but this has come as a result of TB91 which came today. I can't find any change listed anywhere that will explain this error and there is no consistent message in the Addon debugger to explain it.
It seems that there is a change unreported in the onBeforeSend function.

You might say - fix the addon but I rely on knowing what changes have been made. The addon is SingleDomain. There is a small experimental part of that but removing that made no difference.

Severity: -- → S3
See Also: → 1716799
Summary: email will not send → email will not send with SingleDomain add-on

It is not an error in his add-on, but it chokes on the spellchecker being not initialized. That is new.

Sorry, I misunderstood comment 1

Status: UNCONFIRMED → NEW
Component: Untriaged → Composition
Ever confirmed: true
Product: Thunderbird → MailNews Core
Summary: email will not send with SingleDomain add-on → email will not send - chokes on the spellchecker being not initialized
Component: Composition → Add-Ons: Extensions API
Product: MailNews Core → Thunderbird

Regressed by https://phabricator.services.mozilla.com/D118994

STR:

Flags: needinfo?(geoff)
Regressed by: 1718492

Just to respond to this - I do have Spell checker initialised - it checks as I type. So I'm not sure how this setting is really affecting the sending of emails.. Hate to disagree but just wanting to be clear.

I was unclear. Spell checking in the UI while composing is working, but the core spellchecker component is no longer initialized when the onBeforeSendEvent calls setComposeDetails() (or something), which triggers some spellchecker related stuff.

That is at least what I see on the error console and what needs to be fixed. Could of course be that you see another bug, which we can check after this issue has been fixed.

Assignee: nobody → geoff
Status: NEW → ASSIGNED

This fixes things, as far as I can tell.

Flags: needinfo?(geoff)

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4c44225a8394
Fix setting compose details from an onBeforeSend listener. r=john.bieling

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch

Comment on attachment 9232072 [details]
Bug 1720725 - Fix setting compose details from an onBeforeSend listener. r=john.bieling

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
The onBeforeSend event cannot be used.

Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky):
Low.

Attachment #9232072 - Flags: approval-comm-beta?

Comment on attachment 9232072 [details]
Bug 1720725 - Fix setting compose details from an onBeforeSend listener. r=john.bieling

[Triage Comment]
Approved for beta

Attachment #9232072 - Flags: approval-comm-beta? → approval-comm-beta+

Updated to 91.0b2 and it doesn't seem to have changed at all... Should it have or is it going to be in the next beta?

Next Beta. You can test it in Daily though.

Regressions: 1721801

I have reports this not being fixed on 91.0 release. Will test more. Maybe we should back out this fix and the original cause for this fix (https://phabricator.services.mozilla.com/D118994)

The TopicBox report started with a different error but eventually ended up here:
https://thunderbird.topicbox.com/groups/addons/T90f2914acf15917b-Me8d07197be3c046d900aa88e/mx-fails-in-91-promise-rejected-after-context-unloaded

Flags: needinfo?(geoff)

For completeness in this tangled web, the working theory for bug bug 1721801 (reported 2021-07-22) is the regressor is bug 1311934, landed on nightly 2021-07-19.

ANd this bug reported 2021-07-15 predates bug 1311934.

It all seems to be working fine in 91 for me. I tried a bunch of likely things and couldn't fault it. Let's not confuse the issue further by backing stuff out.

Flags: needinfo?(geoff)

TB91 still breaks on the onBeforeSend event, if the user has no dictionary installed. You can reproduce this by downloading:
https://download.mozilla.org/?product=thunderbird-91.0.1-SSL&os=linux64&lang=en-GB

See Also: → 1726280
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: