Thunderbird crashes when a background script is used and the startup cache is invalidated
Categories
(Thunderbird :: Add-Ons: General, defect)
Tracking
(Not tracked)
People
(Reporter: myaddons, Unassigned)
Details
(Whiteboard: https://bugzilla.mozilla.org/show_bug.cgi?id=1718481#c8)
Attachments
(1 file)
|
899 bytes,
application/x-xpinstall
|
Details |
While I was testing my own add-on Mail Merge on Beta 94.0a1 I discovered, that I could reliably crash Thunderbird when opening the message compose window after my add-on had been deactivated (manually).
I traced it down to an unholy interaction between using a background script and calling "startupcache-invalidate" within the function onShutdown() in the experiment API.
I have attached a test add-on, in which the necessary code to reproduce the problem is stripped down to its bare minimum.
Steps to reproduce:
- Start Thunderbird and install the add-on
- Restart Thunderbird
- Deactivate the add-on
- Open a new message compose window or another main window -> CRASH!
If you delete the "background" code from the manifest.json, Thunderbird does not crash!
"background": {
"scripts": ["background.js"]
},
If you delete the "startup-invalide" code from the implmenetation.json, Thunderbird does not crash!
Services.obs.notifyObservers(null, "startupcache-invalidate", null);
The problem can be reproduced on Beta 94.0a1 and Nightly 95.0a1. Thunderbird 91 is not(!) affected. Add-ons like Mail Merge and Quicktext can trigger this bug as well.
Comment 1•4 years ago
•
|
||
I was able to reproduce this in Daily 94 once. But since then it upgraded to Daily 95 and I can no longer reproduce. Also Beta 94.0b2 does not seem to be affected.
Are you able to confirm these findings? It looks like this was a bug introduced in Daily 94 in mozilla-central, then fixed.
Edit: On another System it still occurs.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 2•4 years ago
|
||
-> WFM then?
Comment 3•4 years ago
|
||
Oh I see. Being worked on in bug 1736039.
Description
•