[Maildev] nsIPrefBranch.setComplexValue failing in TB 58.0b1
jik at kamens.us
Sat Dec 9 15:59:33 EST 2017
With Thunderbird 58.0b1, many of the add-ons I have installed, including
some of the add-ons I wrote and maintain, are erroring on startup like this:
1512852280822 addons.xpi WARN Exception running bootstrap
method startup on remote-content-by-folder at kamens.us: [Exception...
"Component returned failure code: 0x80004002 (NS_NOINTERFACE)
[nsIPrefBranch.setComplexValue]" nsresult: "0x80004002
(NS_NOINTERFACE)" location: "JS frame ::
:: pref :: line 99" data: no] Stack trace:
-> file:///home/jik/src/remote-content-by-folder/bootstrap.js:170 <
< startup()@resource://gre/modules/addons/XPIProvider.jsm:2230 <
Note that this is a bootstrapped add-on, not an overlay add-on, and that
I'm not relying on Thunderbird to load my default preferences
automatically -- that has never been supported in bootstrapped add-ons,
so I've always had code in this add-on to load the default preferences,
and that code is what's failing here.
I know there has been email going back and forth about various things
changing and becoming incompatible, but I don't recall whether
nsIPrefBranch in general or nsIPrefBranch.setComplexValue in particular
was mentioned as having changed in an incompatible way.
I've searched to see if I can find out more about this failure, but by
Google-fu apparently is not good enough to find anything, or it's just
not out there, I don't know which.
Is this failure expected? If so, then what's the fix for it? I.e., how
do I store UTF-8 strings in preferences?
FYI, the code that's failing in the error shown above can be found here
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Maildev