Closed Bug 1896907 Opened 1 year ago Closed 1 year ago

Adjust scripting.compose API and scripting.messageDisplay API to survive background termination

Categories

(Thunderbird :: Add-Ons: Extensions API, task)

Tracking

(Not tracked)

RESOLVED FIXED
128 Branch

People

(Reporter: john, Assigned: john)

Details

Attachments

(1 file)

No description provided.

The implementations of scripting.compose and scripting.messageDisplay
added in D210241 laid the groundwork and were mostly a clone of the
former composeScripts API and messageDisplayScripts API.

This patch adds the Manifest V3 flavor and stops automatic script
unregistering on context close (for example background page termination)
and keeps track of all scripts in a global Map.

When registering scripts in the background page, one now has to check
beforehand, if the script has been registered already. Re-registering a
script will throw.

Depends on D210460

Assignee: nobody → john
Status: NEW → ASSIGNED
Target Milestone: --- → 128 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b2306ae8a8e2
Adjust scripting.compose API and scripting.messageDisplay API to survive background termination. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: