Closed Bug 1290187 Opened 6 years ago Closed 5 years ago

nsIMsgCompDeliverMode disappeared from compose window in 2.41a1?


(SeaMonkey :: Composer, defect)

SeaMonkey 2.41 Branch
Not set


(seamonkey2.48 affected, seamonkey2.49esr fixed, seamonkey2.50 fixed, seamonkey2.51 fixed, seamonkey2.52 fixed)

Tracking Status
seamonkey2.48 --- affected
seamonkey2.49esr --- fixed
seamonkey2.50 --- fixed
seamonkey2.51 --- fixed
seamonkey2.52 --- fixed


(Reporter: jik, Assigned: frg)


(Keywords: regression)


(1 file)

My add-on uses the global variable nsIMsgCompDeliverMode in the message composition window.

This variable is no longer defined when my JavaScript code that is pulled in by an XUL overlay for this window tries to use it.

I bisected nightly builds, and I found that the variable is defined in the nightly comm-central-trunk x86_64 Linux build on 10/7/2015, and undefined in the build on the next night, 10/8/2015.

I have looked at the commit messages for the comm-central changes between those two builds, as well as at the diff, and I can't see anything that would explain this change in behavior.

Current Thunderbird trunk still has the variable defined.
Probably related to Bug 1209777.

It's a const in SeaMonkey and a var in TB.

I can put up a patch. Could you tell ne with which addon I can test it.
Flags: needinfo?(jik)
Version: Trunk → SeaMonkey 2.41 Branch
Version 6.0.2 of Send Later ( has the problem. There's a workaround in newer versions, so if you want to reproduce the problem and confirm that it's fixed, you will need to use 6.0.2.

Unfortunately, you won't see an error in the error console when the problem manifests (I've found that Firefox, Thunderbird, SeaMonkey, etc. are incredibly unpredictable about when JavaScript errors in add-on code get logged and when they don't), but you will know the problem is happening because when you compose a message and type Ctrl-Shift-Enter, the message will get put into your Outbox, rather than the Send Later dialog popping up.

Flags: needinfo?(jik)
[Approval Request Comment]
Regression caused by (bug #): 589199 
User impact if declined: Addon copy-sent-to-current and probably others broken.
Testing completed (on m-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): very very low.
String changes made by this patch: none

comm-release implies approval for comm-esr52 too.

I took only the patch for MsgComposeCommands.js from Bug 1209777. 

Neil indicated in Bug 1209777 Comment 29 that SeaMonkey doesn't need the patch. That seems only to be true for the base product but not for add-ons. At least one other add-on (copy-sent-to-current) broke too. Tested this one with the patch and works fine now.

I reran

> find suite/ -type f -iname *.js* -exec sed -i -E 's/^(const|let) /var /g' {} \;

and looked at the changed Files. I think we shouldn't change anything else based on the output. The other changes are mostly real constants only used in the file they are declared in and test code. As long as no other breakages are reported I wouldn't want to change them.

If ewong is ok with this I would like to take it to 2.48 too.
Assignee: nobody → frgrahl
Attachment #8863197 - Flags: review?(iann_bugzilla)
Attachment #8863197 - Flags: feedback?(ewong)
Attachment #8863197 - Flags: approval-comm-release?
Attachment #8863197 - Flags: approval-comm-beta?
Comment on attachment 8863197 [details] [diff] [review]

Attachment #8863197 - Flags: review?(iann_bugzilla)
Attachment #8863197 - Flags: review+
Attachment #8863197 - Flags: approval-comm-release?
Attachment #8863197 - Flags: approval-comm-release+
Attachment #8863197 - Flags: approval-comm-beta?
Attachment #8863197 - Flags: approval-comm-beta+
I'm going to suggest we not add this to 2.48 since we didn't even include it
during the beta stage.
Attachment #8863197 - Flags: feedback?(ewong)
You need to log in before you can comment on or make changes to this bug.