Changes

Jump to: navigation, search

Thunderbird/Add-ons Guide 57

438 bytes added, 19:08, 6 March 2018
Added removed nsIDOM* interfaces and nsIURI changes
* StopIteration [https://developer.mozilla.org/en-US/docs/Archive/Web/StopIteration]
== Removed and changed in mozilla59 ==
* Dialog (optionsType=1) and Inline (2) options were removed in {{bug|1414406}}. Thunderbird will not support that feature any more, only options in tabs (3) work now. Replacements:
# If add-on's install.rdf contains no <em:optionsType> declaration, the add-on's preferences page (<em:optionsURL>) will only be accessible via a new submenu in Tools menu (implemented in {{Bug|1419145}}, landed on Daily 59 as of 2017-12-22). The preferences will open in a dialog, as was the case in older versions. [[File:Add-on Options.png|none|Screenshot showing Add-on Options in TB 59]]
# Alternatively, add-ons may embed a WebExtension to display inline options [https://developer.mozilla.org/Add-ons/WebExtensions/Embedded_WebExtensions][https://developer.mozilla.org/Add-ons/WebExtensions/manifest.json/options_ui]. This should be working now that {{bug|1418914}} has been fixed.
* The statusbarpanel-iconic and statusbarpanel-iconic-text was removed, use toolbarbutton instead. See {{bug|1417198}} for [https://hg.mozilla.org/comm-central/rev/d342491c066b an example].
* nsIURI.spec is read-only, use url.mutate().setSpec(aSpec).finalize();
== Changes to JS in mozilla59 ==
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/preferences/preferences.css"?>
</pre> to the XUL file that defines that dialog.
 
== Removed and changed in mozilla60 ==
* Removed interfaces: nsIDOMXPathResult, nsIDOMNodeFilter, many methods of nsIDOMNode, nsIDOMElement::{Get|Set}Attribute(), nsIDOMHTMLElement, nsIDOMHTMLDocument, nsIDOMHTMLMediaElement, nsIDOMFormData. Some of the removed interfaces only affect C++ in Thunderbird internally but are listed here for completeness.
* All attributes of nsIURI.spec are read-only, use for example url.mutate().setQuery(aQuery).finalize();
== Outlook and Suggestion ==
'''Suggestion for add-on authors wishing to be compatible with Thunderbird 59: Go, go, go!''' The fix for {{bug|1414398}} (default preferences) and {{Bug|1419145}} (menu to access add-on options, tab options (3) work) has arrived (2017-12-12 and 2017-12-22). {{Bug|1418914}} has been fixed and then inline options can be achieved via an embedded WebExtension. We will prepare a sample of how this is done in early 2018.
All add-ons compatible with TB 58 beta need further changes as mentioned above to be compatible with TB 59 Beta (expected at the beginning of February 2018) and TB 60 Daily.
== Also Note ==
The list above only contains selected changes relevant to add-ons. The full list of changes can be seen at [https://developer.mozilla.org/en-US/Firefox/Releases Firefox developer release notes] where all the details, bugzilla bug reports and patches implementing those changes can be found.
316
edits

Navigation menu