Changes

Jump to: navigation, search

Thunderbird/Add-ons Guide 63

356 bytes added, 12:32, 6 December 2018
Added description about options for TB65+
Warning: Scripts in overlays are now run after all elements have been inserted into the document. This may cause unexpected behavior if your script previously ran before elements were inserted. For elements with event handlers these event handlers may run when the element is added, and they may fail if they rely on content being set up by a script which now runs after the creation of the element.
To use this overlay loader, XUL overlay legacy extensions must replace install.rdf file with a WebExtensions style manifest.json file, which includes the key "legacy" set to true. See Lightning as an example:<br />https://hg.mozilla.org/comm-central/rev/e81f4b59a00a7d3e18d50fd3851ecbd47762a186#l2.5 <small>(Note: In this changeset the @variables@ are build variables, add-ons need to use fixed strings)</small>.<br /> If your add-on has options specified in install.rdf, you need to put this in the manifest.json also. To do this, add the file to the key "legacy" instead of the value true in the following way: <source lang="json"> "legacy" : { "options" : { "page" : "chrome://[path to your options.xul]", "open_in_tab" : true/false } }</source>
Examples of extensions converted to this type include "Lightning", "Compact Header", "Signature Switch" and "ThunderHTMLedit" (as of 3rd December 2018).
52
edits

Navigation menu