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

(→‎A sample extension?: corrected to be more up to date)
 
(One intermediate revision by the same user not shown)
Line 26: Line 26:
'''Question''': Can I write an addon and use the API that are already there... or do I have to create everything?
'''Question''': Can I write an addon and use the API that are already there... or do I have to create everything?


'''Answer''': Unclear what you're asking.
'''Answer''': You can use the API at https://thunderbird-webextensions.readthedocs.io/en/latest/. That page also provides a link to a document on Web Extensions Experiment with good explanations of details. Under the Address book API there is an example addon.


==== stringbundle removal and nsIStringBundleService ====
==== stringbundle removal and nsIStringBundleService ====
Line 45: Line 45:
this doesn't work, although these events look exactly the same. What is the difference?
this doesn't work, although these events look exactly the same. What is the difference?


'''Answer''':
'''Answer''': the windows API is different from the tabs API and so this doesn't work. You can add a listener to a new window with a WebExtensions Experiments addon.