Closed Bug 1386450 Opened 7 years ago Closed 7 years ago

Something broke in add-on loading as of 2017-07-26 Thunderbird nightly

Categories

(Thunderbird :: Add-Ons: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jik, Unassigned)

Details

(Keywords: regression)

As of the 2017-07-26 Thunderbird nightly build, neither Enigmail nor the Expression Search / Google Mail UI add-on work. There are errors from both of them in the error console:

NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIXPCComponents_Utils.import]  mime.jsm:16
Contract ID '@mozilla.org/enigmail/cline-handler;1' was registered as a command line handler for entry 'cline-enigmail', but could not be created.
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIXPCComponents_Utils.import]  mime.jsm:16
Expression Search: init...
Caught Exception NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIXPCComponents_Utils.import]
@resource://expressionsearch/ExpressionSearchFilter.js:12:1
importModules@chrome://expressionsearch/content/es.js:59:5
init@chrome://expressionsearch/content/es.js:27:9
@chrome://expressionsearch/content/es.js:753:1
JS frame :: resource://expressionsearch/ExpressionSearchFilter.js :: <TOP_LEVEL> :: line 12
  ExpressionSearchFilter.js:12
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIXPCComponents_Utils.import]

Queries typed in the search box don't work, and whenever I go to send a message, I get a pop-up alerting me that Enigmail couldn't be initialized and asking me to confirm sending an unencrypted message.
I fixed Enigmail for TB Daily on 2017-07-28. Please download the very latest nightly build of Enigmail from https://www.enigmail.net/index.php/en/download/nightly-build
> Something broke in add-on loading as of 2017-07-26 Thunderbird nightly
Absolutely.

Now all imports need to be correct:
Components.utils.import("resource://gre/modules/Services.jsm"); for M-C imports and
Components.utils.import("resource:///modules/mailServices.js"); for C-C imports.

Non-compliant add-ons will break TB or only break themselves.

Prominent add-ons that needed fixing: Enigmail, Lightning and ThunderHTMLedit.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Sorry, forgot the references: bug 1384218 - bug 1383215.
Is there any chance of fixing the TB code to produce a better error message than "NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIXPCComponents_Utils.import]", to make it at least a bit more obvious what needs to be fixed?
You've really have to refer the question to the M-C people from bug 1383215. You know that TB doesn't own that code. I agree that the message is less than helpful.
Expression Search / Google Mail UI (https://github.com/wangvisual/expression-search) Fixed.
Thanks Jonathan.
Component: General → Add-Ons: General
You need to log in before you can comment on or make changes to this bug.