Hi,
I'm trying to migrate all my customization from Thunderbird 78 to Thunderbird 91 but I got an issue with the nsILDAPMessage::getBinaryValues method.
While processing the aMessage object, if I call the getBinaryValues I got the following exception :
17:20:41:490 [ERROR] [XXXXXXXXXX] [certFetchingStatusOverride.js] onLDAPMessage(?) throws exception [Exception... "JavaScript component does not have a method named: "getBinaryValues"'JavaScript component does not have a method named: "getBinaryValues"' when calling method: [nsILDAPMessage::getBinaryValues]" nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: "JS frame :: chrome://messenger-smime/content/certFetchingStatus.js :: ldapMessageListener.prototype.onLDAPMessage :: line 288" data: no]
ldapMessageListener.prototype.onLDAPMessage@chrome://messenger-smime/content/certFetchingStatus.js:288:69
searchExt/this._messageId<@resource:///modules/LDAPOperation.jsm:76:26
_onData@resource:///modules/LDAPClient.jsm:169:17
fetchMissingCertificates@chrome://XXXXXXXXXX/content/messenger-smime/msgCompSecurityInfoOverlay.js:136:13
onLoad@chrome://XXXXXXXXXX/content/messenger-smime/msgCompSecurityInfoOverlay.js:52:2
onload@chrome://messenger-smime/content/msgCompSecurityInfo.xhtml:1:1
showMessageComposeSecurityStatus@chrome://messenger/content/messengercompose/MsgComposeCommands.js:1808:12
onSecurityChoice@chrome://messenger/content/messengercompose/MsgComposeCommands.js:4354:7
oncommand@chrome://messenger/content/messengercompose/messengercompose.xhtml:1:17
Some traces tell me that :
- the aMessage object has the nsILDAPMessage interface ;
- the aMessage object has a "userCertificate;binary" attribute (the only one) ;
- the aMessage object has a function named "getBinaryValues" ;
But when I call aMessage.getBinaryValues("userCertificate;binary") I get this exception.
My code is working great with Thunderbird 78.12.0 and 88.0, but not in 91.0b1.
After comparing some source code (into comm/ldap/xpcom), I really don't understand what is happening with this beta version.
Thanks in advance to have a look to this issue.
Regards,
Chris
Bug 1720917 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Hi,
I'm trying to migrate all my customization from Thunderbird 78 to Thunderbird 91 but I got an issue with the nsILDAPMessage::getBinaryValues method.
While processing the aMessage object, if I call the getBinaryValues I got the following exception :
17:20:41:490 [ERROR] [XXXXXXXXXX] [certFetchingStatusOverride.js] onLDAPMessage(?) throws exception [Exception... "JavaScript component does not have a method named: "getBinaryValues"'JavaScript component does not have a method named: "getBinaryValues"' when calling method: [nsILDAPMessage::getBinaryValues]" nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: "JS frame :: chrome://messenger-smime/content/certFetchingStatus.js :: ldapMessageListener.prototype.onLDAPMessage :: line 288" data: no]
ldapMessageListener.prototype.onLDAPMessage@chrome://messenger-smime/content/certFetchingStatus.js:288:69
searchExt/this._messageId<@resource:///modules/LDAPOperation.jsm:76:26
_onData@resource:///modules/LDAPClient.jsm:169:17
fetchMissingCertificates@chrome://XXXXXXXXXX/content/messenger-smime/msgCompSecurityInfoOverlay.js:136:13
onLoad@chrome://XXXXXXXXXX/content/messenger-smime/msgCompSecurityInfoOverlay.js:52:2
onload@chrome://messenger-smime/content/msgCompSecurityInfo.xhtml:1:1
showMessageComposeSecurityStatus@chrome://messenger/content/messengercompose/MsgComposeCommands.js:1808:12
onSecurityChoice@chrome://messenger/content/messengercompose/MsgComposeCommands.js:4354:7
oncommand@chrome://messenger/content/messengercompose/messengercompose.xhtml:1:17
Some traces tell me that :
- the aMessage object has the nsILDAPMessage interface ;
- the aMessage object has a "userCertificate;binary" attribute (the only one) ;
- the aMessage object has a function named "getBinaryValues" ;
But when I call aMessage.getBinaryValues("userCertificate;binary") I get this exception.
My code is working great with Thunderbird 78.12.0 and 88.0b1, but not in 91.0b1.
After comparing some source code (into comm/ldap/xpcom), I really don't understand what is happening with this beta version.
Thanks in advance to have a look to this issue.
Regards,
Chris