Browseraction button disappear from toolbar after Thunderbird restart
Categories
(Thunderbird :: Add-Ons: Extensions API, defect)
Tracking
(thunderbird_esr6868+ fixed, thunderbird69 fixed, thunderbird70 fixed)
People
(Reporter: chris, Assigned: darktrojan)
Details
Attachments
(2 files)
16.76 KB,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
17.19 KB,
patch
|
darktrojan
:
review+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.94 Safari/537.36 Vivaldi/2.6.1566.40
Steps to reproduce:
Use Thunderbird 68b5 or 69b2
Create a fresh new profile
Install a WebExtension add-on with a browserAction button defined in manifest.json
The installation can be made by manually selecting an .xpi file, of with side-loading (Windows registry).
I did it with my own extension but also addressBooks extension provided in WebExtensions samples:
https://github.com/thundernest/sample-extensions
Check that the button is properly displayed in Thunderbird toolbar and properly respond to clicks.
Then restart Thunderbird
Actual results:
After restart, the browserAction button is briefly displayed in the toolbar and after a few seconds disappear.
The button is then present among all other potential toolbar buttons with "Personalize" toolbar context menu
.
Note that if you reinsert the button manually in the toolbar. It will remain present if you restart Thunderbird several times.
Expected results:
After initial installation, the browserAction button should have remained in the toolbar even after a restart.
It's a problem because if this button is an essential part of your extension to access to some functionalities, the user must find out by himself that it must open "Personalize" toolbar context menu and reinstall the button (if he even knows that such button exists). So the button should remain present after initial installation even after a restart of Thunderbird.
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
I'm sure I checked this worked when I added it, but I can't find anything to blame for breaking it, so maybe I checked wrong…
Sorry for the late report. I only saw it recently because I was mainly using the "Load temporary Add-on" facility. I had shortly tested before usual side-loading but didn't notice the problem (if it ever existed before). I doubled checked that it could not be caused by a side effect, like a specific flag present in my Thunderbird command, or another extension which could be installed by side-loading, but it seemed to be OK. For now, I've switched back to the overlay loader. Despite a couple of initial glitches, and a few adaptations required, it seems to work properly. It greatly helps to manage the transition, as the possibility to enable experimental APIs, even in official releases. Many thanks for all this.
Assignee | ||
Comment 3•5 years ago
|
||
No apology necessary. We wouldn't know there was a problem without your report.
Assignee | ||
Comment 4•5 years ago
|
||
I've changed the code to add the button directly to the persistence store when the extension is first installed (and remove it when uninstalled). The UI then checks the store when asked to add a button.
I've also made a few changes to this flaky mochitest which hopefully will make it more resilient.
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Actually, this was reported for TB 68 beta. So we should do a 68 uplift?
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/433226218567
Explicitly persist browser/composeAction toolbar position, and clear on uninstall. r=mkmelin
Updated•5 years ago
|
Comment 8•5 years ago
|
||
TB 69 beta 3:
https://hg.mozilla.org/releases/comm-beta/rev/a221fedbe06298daff382f00ab1e5890c3f6b1b3
Assignee | ||
Comment 9•5 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #6)
Actually, this was reported for TB 68 beta. So we should do a 68 uplift?
Yes but I want this in a beta first.
Comment 10•5 years ago
|
||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Assignee | ||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
TB 68.0 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/b1b5996189c100805df34088252b421b3f069007
Description
•