# 0001 – Manifest V3 with scripting.compose **Date:** 2026-11-24 · **Status:** accepted ## Context Thunderbird supports MailExtensions with Manifest V2 and V3. Thunderbird 128 is the first ESR release with full Manifest V3 support; in Manifest V3, compose scripts are registered through `scripting.compose`. The add-on is developed and tested with Betterbird 153, which is considerably newer. ## Decision Manifest V3 with a minimum version of 128 (`strict_min_version`). Compose scripts are registered with `scripting.compose.registerScripts` (replaces `composeScripts` from V2), and the background script is an event page. ## Consequences - The background script can be stopped at any time: state lives in `storage.session` (an in-memory map only as a fallback when `storage.session` is missing), listeners are registered at the top level. - Registered scripts only apply to new compose windows; windows that are already open get the script through `scripting.executeScript` after install or update. - No execution of JavaScript strings, only files. - Thunderbird versions before 128 are not supported.