Thunderbird/Add-ons Guide 63: Difference between revisions

Update link to add-on update guide
(Tweaked section about nsIRequestObserver and nsIStreamListener and whole-sale replaced "tt" with "code" tags.)
(Update link to add-on update guide)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<big>'''Add-ons Guide for Thunderbird 63 and beyond'''</big>
<big>'''Add-ons Guide for Thunderbird 63 and beyond'''</big>


{{note|The documentation at https://thunderbird-webextensions.readthedocs.io/en/latest/how-to/extensions68.html is a better place to start learning about converting add-ons to run on recent Thunderbird builds. However, this page contains details about specific issues you may encounter that aren't all documented there, so this may be a useful reference as well.|reminder}}
{{note|This guide has been deprecated. All its information has been moved to [https://developer.thunderbird.net/add-ons/updating developer.thunderbird.net]. Please do not add new information to this wiki, but get in contact with us and share what is missing and it will be added to the official guide. The goal is to have one single source of information.}}


If you have programming questions or wish to discuss the future can be posted in the mozilla.dev.apps.thunderbird newsgroup, see [[Thunderbird/CommunicationChannels#If_you.27re_a_developer|Communication Channels]].
'''Contact:''' Check the mozilla.dev.apps.thunderbird newsgroup and our [[Thunderbird/CommunicationChannels#If_you.27re_a_developer|communication channels]].


__TOC__
__TOC__
Line 59: Line 59:
* "Signature Switch"  
* "Signature Switch"  
* "ThunderHTMLedit"
* "ThunderHTMLedit"
* [https://github.com/jikamens/send-later/ Send Later]


== Removed in Thunderbird 60 ==
== Removed in Thunderbird 60 ==
Line 71: Line 72:
== Removed in Thunderbird 63 ==
== Removed in Thunderbird 63 ==
* XUL elements <code>listbox</code>, <code>listboxitem</code> and <code>listcell</code>. <br/>Replacement: <code>richlistbox</code> ([https://github.com/jobisoft/CategoryManager/commit/2267888be7de0d7ebe4f5b4626c48210c071b16f example migration])  
* XUL elements <code>listbox</code>, <code>listboxitem</code> and <code>listcell</code>. <br/>Replacement: <code>richlistbox</code> ([https://github.com/jobisoft/CategoryManager/commit/2267888be7de0d7ebe4f5b4626c48210c071b16f example migration])  
* XUL <code>stringbundleset</code> / <code>stringbundle</code>. You will also be unable to use the `nsIStringBundleService` interface.<br/>Replacement: Use <code>Services.strings.createBundle(...)</code>.<br/>In order to use stringbundles, you need to load stringbundle.js in your XUL: <code>&lt;script type="application/x-javascript" src="chrome://global/content/elements/stringbundle.js"/&gt;</code>, but the XUL Overlay loader takes care of this. See also [https://bugzil.la/1459743 bug 1459743].
* XUL <code>stringbundleset</code> / <code>stringbundle</code>. You will also be unable to use the `nsIStringBundleService` interface.<br/>Replacement: Use <code>Services.strings.createBundle(...)</code>.
 
{{note|I am not sure the above information is correct with current Thunderbird trunk builds as of March 30, 2019. I got errors when attempting to embed <code>stringbundle</code> elements in XUL overlays. [[User:Jikamens|Jikamens]] ([[User talk:Jikamens|talk]]) 00:34, 31 March 2019 (UTC)}}
* <code>mailServices.js</code> has been renamed to <code>MailServices.jsm</code>. The old name keeps working for now, but you get a deprecation warning in the error console if you use the old name.
* <code>mailServices.js</code> has been renamed to <code>MailServices.jsm</code>. The old name keeps working for now, but you get a deprecation warning in the error console if you use the old name.
* Starting in Thunderbird 63, all XBL-bindings will be removed from Thunderbird. That means, that if you have a XBL=binding in your add-on that extends a binding that is removed, your binding will fail. With [https://bugzilla.mozilla.org/buglist.cgi?o1=equals&v1=1484976&f1=blocked this] query, you can see all the bugs related to de-xbl-ing Thunderbird, and see how the removal of each binding is handled.
* Starting in Thunderbird 63, all XBL-bindings will be removed from Thunderbird. That means, that if you have a XBL=binding in your add-on that extends a binding that is removed, your binding will fail. With [https://bugzilla.mozilla.org/buglist.cgi?o1=equals&v1=1484976&f1=blocked this] query, you can see all the bugs related to de-xbl-ing Thunderbird, and see how the removal of each binding is handled.
* A bunch of globals in the message composition window were removed: <code>nsIMsgCompDeliverMode</code>, <code>nsIMsgCompSendFormat</code>, <code>nsIMsgCompConvertible</code>, <code>nsIMsgCompType</code>, <code>nsIMsgCompFormat</code>, <code>nsIAbPreferMailFormat</code>, <code>nsIPlaintextEditorMail</code>, <code>nsISupportsString</code>, and <code>mozISpellCheckingEngine</code>. If you use any of these, there are available as the same names underneath <code>Ci.</code> (a.k.a. <code>Components.interfaces.</code>).
* A bunch of globals in the message composition window were removed: <code>nsIMsgCompDeliverMode</code>, <code>nsIMsgCompSendFormat</code>, <code>nsIMsgCompConvertible</code>, <code>nsIMsgCompType</code>, <code>nsIMsgCompFormat</code>, <code>nsIAbPreferMailFormat</code>, <code>nsIPlaintextEditorMail</code>, <code>nsISupportsString</code>, and <code>mozISpellCheckingEngine</code>. If you use any of these, there are available as the same names underneath <code>Ci.</code> (a.k.a. <code>Components.interfaces.</code>).
== Removed in Thunderbird 64 ==
== Removed in Thunderbird 64 ==
* XUL element <code>colorpicker</code>.<br/>Replacement: HTML <code>input type=color</code>
* XUL element <code>colorpicker</code>.<br/>Replacement: HTML <code>input type=color</code>
Line 148: Line 148:
== See also ==
== See also ==


More information about updating extensions for Thunderbird 68 can be found [https://thunderbird-webextensions.readthedocs.io/en/latest/how-to/extensions68.html here].
More information about updating extensions for Thunderbird 68 can be found [https://developer.thunderbird.net/add-ons/tb68 here].
12

edits