From 247bd31f20c6c073025cfef57d34bb24863ce1e6 Mon Sep 17 00:00:00 2001 From: Andre <200930841+Andre-Bzk@users.noreply.github.com> Date: Wed, 15 Apr 2026 20:02:25 +0200 Subject: [PATCH] fix: Mozilla-Addon-Validierung korrigiert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `data_collection_permissions` in `browser_specific_settings` ergänzt (`required: ["none"]`) - `applications` → `browser_specific_settings` migriert (aktueller Manifest-Schlüssel) - Unsichere `innerHTML`-Zuweisung in content-script.js durch `DOMParser` ersetzt --- manifest.json | 8 ++++++-- src/content-script.js | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 5c950db..3b87983 100644 --- a/manifest.json +++ b/manifest.json @@ -43,9 +43,13 @@ "run_at": "document_idle" } ], - "applications": { + "browser_specific_settings": { "gecko": { - "id": "anyclip@example.local" + "id": "anyclip@example.local", + "data_collection_permissions": { + "required": ["none"], + "optional": [] + } } } } diff --git a/src/content-script.js b/src/content-script.js index 95f8f61..bad4870 100644 --- a/src/content-script.js +++ b/src/content-script.js @@ -59,8 +59,7 @@ function getSelectionFragment() { return { text: "", element: null }; } - const container = document.createElement("div"); - container.innerHTML = lastSelectionHtml; + const container = new DOMParser().parseFromString(lastSelectionHtml, "text/html").body; return { text: lastSelectionText,