Closed Bug 1896522 Opened 1 year ago Closed 1 year ago

Deprecate composeScripts API and messageDisplayScripts API in Manifest V3 and introduce scripting.compose API and scripting.messageDisplay API

Categories

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

Tracking

(Not tracked)

RESOLVED FIXED
128 Branch

People

(Reporter: TbSync, Assigned: TbSync)

Details

Attachments

(1 file)

No description provided.

Thunderbird has two special content script types (one for the editor of
the compose window and the other for messages being displayed) for which
we have the dedicated composeScripts API and messageDisplayScripts API.

Manifest V3 moved content script related methods into the scripting API
and applied the following changes:

  • no longer allows to use code strings as content scripts
  • dropped its child implementation
  • has a dedicated unregister function (the register function no longer
    returns an object with an unregister() method)
  • has a getRegisterdScripts() function

To adjust to these changes, we deprecate both our current content script
APIs and add new ones to the scripting API.

This patch only updates existing tests to work with the new
implementation. A follow-up will add tests for the new features of the
added APIs

Depends on D210103

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

Pushed by benc@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/8824953f9775
Deprecate composeScripts API and messageDisplayScripts API in Manifest V3 and introduce scripting.compose API and scripting.messageDisplay API. r=aleca,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

Created:
Updated:
Size: