UpdateExtraAddressProcessing function randomly throws exception "JavaScript component does not have a method named: "hasEmailAddress""
Categories
(Thunderbird :: Address Book, defect)
Tracking
(thunderbird_esr78 fixed, thunderbird84 fixed)
People
(Reporter: cmgaudry33, Assigned: cmgaudry33)
Details
Attachments
(2 files, 4 obsolete files)
|
680 bytes,
patch
|
Details | Diff | Splinter Review | |
|
1.91 KB,
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36
Steps to reproduce:
- Select a message in a folder
- Add multiple mailing lists from the Address books window
- Display the console
Actual results:
Some time the following exception is thrown :
[Exception... "JavaScript component does not have a method named: "hasEmailAddress"'JavaScript component does not have a method named: "hasEmailAddress"' when calling method: [nsIAbCard::hasEmailAddress]" nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: "JS frame :: chrome://messenger/content/msgHdrView.js :: UpdateExtraAddressProcessing :: line 1546" data: no] msgHdrView.js:1546:17
UpdateExtraAddressProcessing chrome://messenger/content/msgHdrView.js:1543
updateExtraAddressProcessing chrome://messenger/content/mailWidgets.js:1225
OnAddressBookDataChanged chrome://messenger/content/msgHdrView.js:407
forEach self-hosted:225
OnAddressBookDataChanged chrome://messenger/content/msgHdrView.js:401
onItemAdded chrome://messenger/content/msgHdrView.js:380
notifyDirectoryItemAdded resource:///modules/AddrBookManager.jsm:521
addMailList resource:///modules/AddrBookDirectory.jsm:1105
...
Expected results:
No exception because :
- AddrBookMailling.asCard method should return a card implementing the hasEmailAddress method defined in the nsIAbCard interface.
- UpdateExtraAddressProcessing method should check if item is a mailing list or not before calling the hasEmailAddress, to be efficient.
| Assignee | ||
Comment 1•5 years ago
|
||
This patch add hasEmailAddress method implementation for mailinglist as card object.
| Assignee | ||
Comment 2•5 years ago
|
||
This patch adds check on the item type before calling its method hasEmailAddress because no need to call this method if the item is a mailing list.
| Assignee | ||
Comment 3•5 years ago
|
||
| Assignee | ||
Comment 4•5 years ago
|
||
| Assignee | ||
Comment 5•5 years ago
|
||
| Assignee | ||
Comment 6•5 years ago
|
||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Chris, please remember to flag patches for review.
| Assignee | ||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Updated•5 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a6a68fcf215a
Make UpdateExtraAddressProcessing function not throw Error of "does not have a method named: "hasEmailAddress" when mail lists are updated r=mkmelin
Comment 10•5 years ago
|
||
Comment on attachment 9186633 [details] [diff] [review]
bug_1676128_msgHdrView.diff
[Approval Request Comment]
Cleaning up errors, quite safe to uplift
Comment 11•5 years ago
|
||
Comment on attachment 9186633 [details] [diff] [review]
bug_1676128_msgHdrView.diff
[Triage Comment]
Approved for beta
Comment 12•5 years ago
|
||
| bugherder uplift | ||
Thunderbird 84.0b2
https://hg.mozilla.org/releases/comm-beta/rev/f2cb00c1c2b5
Comment 13•5 years ago
|
||
Comment on attachment 9186633 [details] [diff] [review]
bug_1676128_msgHdrView.diff
[Triage Comment]
Approved for esr78
Comment 14•5 years ago
|
||
| bugherder uplift | ||
Thunderbird 78.5.1:
https://hg.mozilla.org/releases/comm-esr78/rev/d7af3f7cbc49
Description
•