Following along from last week’s 1.8 release, we’ve released a 1.8.1 patch release today to address a regression logged in bug 771825. You can download the SDK directly in either zip or tarball format.
This bug was reported by Yonatan Ben-Nes on the Jetpack google group. The problem can affect any add-on that uses the exports.main() function in main.js and attempts to react to the property options.loadReason
:
exports.main = function(options, callbacks) { if (options.loadReason === 'install') { // do something } };
In SDK version 1.8 this code will fail with an error ‘options.loadReason is undefined’. A workaround with 1.8 is to look at self.loadReason
instead, however we have fixed this regression and restored the original behaviour in Add-on SDK version 1.8.1.
As always, we’d love to hear from you about your experiences with this release. You can contact us in a variety of ways:
post to our discussion group
chat with us on irc.mozilla.org #jetpack
report a bug
check out the source and contribute bug fixes, enhancements, or documentation
For more information on the Jetpack Project check out our wiki.
John Nagle, Silicon Valley, CA wrote on
Jeff Griffiths wrote on