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

Formatting
(Question about browser.windows.onCreate)
(Formatting)
Line 3: Line 3:
==== Removing install.rdf? ====
==== Removing install.rdf? ====


'''Question''': "To use this overlay loader... extensions must replace <tt>install.rdf</tt> file with a ... <tt>manifest.json</tt>". <- isn't it enough to just ''add'' a <tt>manifest.json</tt> file? Or do I actually need to remove the `install.rdf` to prevent Thunderbird from mishandling my extension?
'''Question''': "To use this overlay loader... extensions must replace <tt>install.rdf</tt> file with a ... <tt>manifest.json</tt>". <- isn't it enough to just ''add'' a <tt>manifest.json</tt> file? Or do I actually need to remove the <tt>install.rdf<tt> to prevent Thunderbird from mishandling my extension?


==== Name confusion ====
==== Name confusion ====
Line 27: Line 27:
'''Question''': Thunderbird 63 - does removing XUL <tt>stringbundleset</tt>/<tt>stringbundle</tt>, also effect <tt>nsIStringBundleService?</tt><br />
'''Question''': Thunderbird 63 - does removing XUL <tt>stringbundleset</tt>/<tt>stringbundle</tt>, also effect <tt>nsIStringBundleService?</tt><br />
Or can this still be used - e.g.:<br />
Or can this still be used - e.g.:<br />
<tt>let sb = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);</tt> <br /> 
  let sb = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);


'''Answer''':  <tt>nsIStringBundleService</tt> goes away as well. You need to use <tt>Services.strings.createBundle(..)</tt> as suggested on the page.
'''Answer''':  <tt>nsIStringBundleService</tt> goes away as well. You need to use
  Services.strings.createBundle(...)
as suggested on the page.


====windows API====
====windows API====
20

edits