Closed Bug 1536078 Opened 5 years ago Closed 5 years ago

Legacy add-ons having both a manifest.json and _locales don't prompt for restart after installation

Categories

(Thunderbird :: Add-Ons: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 68.0

People

(Reporter: nONoNonO, Assigned: darktrojan)

Details

Attachments

(1 file)

Installing/upgrading Mail Redirect add-on in Thunderbird 67.0a1 Daily doesn't prompt for restart. It is a legacy add-on with an added manifest.json, in order to be compatible with TB 63+. I have also added a _locales directory in order to have the extensionName and extensionDescription localized and it looks like this causes TB not to prompt for a restart. If I remove the _locales directory from the xpi and the default_locale from manifest.json, I do get a prompt to restart TB.

Flags: needinfo?(geoff)

I think this must've broken a while back when the toolkit people were messing around with install paths.

I've also stopped a warning about unsigned extensions from showing, because we don't do that.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Flags: needinfo?(geoff)
Attachment #9057211 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9057211 [details] [diff] [review]
1536078-extension-install-prompt-1.diff

Review of attachment 9057211 [details] [diff] [review]:
-----------------------------------------------------------------

::: mail/base/modules/ExtensionsUI.jsm
@@ +554,5 @@
>          if (progressNotification) {
>            progressNotification.remove();
>          }
>  
> +        info.unsigned = false;

please add a comment that we don't use signing, so won't warn for it
Attachment #9057211 - Flags: review?(mkmelin+mozilla) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4764301eccdf
Fix extension install prompt when a restart is required, and stop warning about unsigned extensions; r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 68.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: