From 8ee7c6952ca118905d9b007ce39cc7e81cc9b8db Mon Sep 17 00:00:00 2001 From: Local Dev Date: Tue, 8 Sep 2026 12:30:21 +0200 Subject: [PATCH] =?UTF-8?q?fix(theseus/addons):=20package=20addon-tab-prel?= =?UTF-8?q?oad.js=20=E2=80=94=20was=20missing=20since=200.3.19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The preload for full-tab add-on pages (opened via api.openTab, used by the screenshot editor) has been in the source tree since 0.3.19 but was never declared in the electron-builder `files:` list, so packaged Theseus builds shipped without it. Symptom: an add-on tab loads with a DevTools error 'ENOENT, addon-tab-preload.js not found in app.asar', window.silentmode is undefined, and any button that uses the API (Discard's closeTab fallback, future closeTab / DOM helpers) either misfires or falls back to a partial no-op. The image-loading path itself does not depend on the preload, so this is orthogonal to the 'blank screenshot' bug (that one is fixed in 0.3.26 by the CDP capture switch); a user on any build 0.3.19 – 0.3.26 needs BOTH the CDP capture fix (already in 0.3.26 main.js) AND this preload packaged, which is why 0.3.25 still surfaced a broken editor. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index f3e1e62..678425c 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "approval-preload.js", "approval.html", "addon-inject-preload.js", + "addon-tab-preload.js", "addons-host.js", "addon-updater.js", "addon-update-pubkeys.js",