Fix JS errors when interacting with Folder Mode Headers
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(thunderbird_esr78 unaffected)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr78 | --- | unaffected |
People
(Reporter: aleca, Assigned: aleca)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
3.63 KB,
patch
|
aleca
:
review+
|
Details | Diff | Splinter Review |
A couple of minor errors when interacting with folder mode headers.
JavaScript error: chrome://messenger/content/folderPane.js, line 1327:
TypeError: can't access property "isServer", folder is null
JavaScript error: chrome://messenger/content/folderPane.js, line 2824:
TypeError: can't access property "invalidateRow", this._tree is null
| Assignee | ||
Comment 1•4 years ago
|
||
Oh wow, this error: JavaScript error: chrome://messenger/content/folderPane.js, line 2824: TypeError: can't access property "invalidateRow", this._tree is null, was happening even before my patch.
Super obscure to reproduce.
Open the Account Settings > Synchronization & Storage and click on the "Advanced..." button to open the subdialog.
Close the subdialog by clicking on the X on the top right, not Cancel or OK, but just the X.
Go back on the Mail Tab and click "Get Messages".
It seems that the closing of the subdialog is not hooked to the gFolderTreeView.unload(); leaving that Tree still listening for property changes even if it doesn't exist aymore.
| Assignee | ||
Comment 2•4 years ago
|
||
This should fix the reported issues.
Comment 3•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Comment 4•4 years ago
|
||
Perfect, thanks for the review.
| Assignee | ||
Updated•4 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/0e5a8c9dc16b
Fix Folder mode headers javascript errors. r=mkmelin
Description
•