Talk:Thunderbird/Add-ons Guide 63: Difference between revisions

Formatting of questions and answers
(answer for XUL stringbundleset/stringbundle)
(Formatting of questions and answers)
Line 1: Line 1:
Name confusion
(Please place your question in a separate section, with a relevant heading.)
 
==== Name confusion ====
It seems to me that it would be good to make clear somehow that bootstrapped and restartless are the same things - especially as we talk about overlay legacy addons and bootstrapped legacy addons.
It seems to me that it would be good to make clear somehow that bootstrapped and restartless are the same things - especially as we talk about overlay legacy addons and bootstrapped legacy addons.




Tb63 - AddonManager.getAddonByID(..) used to be called asynchronously, it seems to not be called anymore?


Tb63 - AddonManager.getAddonByID(..) used to be called asynchronously, it seems to not be called anymore?
==== A sample extension? ====


This sounds good. I'd like to create a WebExtensions addon... but I looked at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json
This sounds good. I'd like to create a WebExtensions addon... but I looked at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json
Line 12: Line 15:


Just a point of clarity - can I write an addon and use the API that are already there... or do I have to create everything?
Just a point of clarity - can I write an addon and use the API that are already there... or do I have to create everything?
==== stringbundle removal and nsIStringBundleService ====


Tb63 - on removing XUL stringbundleset/stringbundle
Tb63 - on removing XUL stringbundleset/stringbundle
Line 17: Line 22:
Or can this still be used - e.g.:<br />
Or can this still be used - e.g.:<br />
let sb = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService); <br />   
let sb = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService); <br />   
A ==>> 'dies' means it will go away ;) so you need to change to as said:<br /> Replacement: Services.strings.createBundle(..).
 
'''Answer''':  'dies' means it will go away ;) so you need to change to as said:<br /> Replacement: Services.strings.createBundle(..).
20

edits