Talk:Thunderbird/Add-ons Guide 63: Difference between revisions
(question about stringbundle service and XPCOM interface nsIStringBundleService - is it replaced / redundant too?) |
(answer for XUL stringbundleset/stringbundle) |
||
| Line 14: | Line 14: | ||
Tb63 - on removing XUL stringbundleset/stringbundle | Tb63 - on removing XUL stringbundleset/stringbundle | ||
dies this also effect nsIStringBundleService? Or can this still be used - e.g.: | dies this also effect nsIStringBundleService?<br /> | ||
let sb = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService); | Or can this still be used - e.g.:<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(..). | |||
Revision as of 11:22, 25 October 2018
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.
Tb63 - AddonManager.getAddonByID(..) used to be called asynchronously, it seems to not be called anymore?
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
And it said that a manifest.json file is all that's required. I tried that, did a VERY basic manifest.json and zipped it and tried loading it in TB and was told it looked corrupted! Something like https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension would be SO helpful. But I'm sure you're all too busy...
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?
Tb63 - on removing XUL stringbundleset/stringbundle
dies this also effect nsIStringBundleService?
Or can this still be used - e.g.:
let sb = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);
A ==>> 'dies' means it will go away ;) so you need to change to as said:
Replacement: Services.strings.createBundle(..).