fix: Mozilla-Addon-Validierung korrigiert

- `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
This commit is contained in:
Andre
2026-04-15 20:02:25 +02:00
parent 8ce098980b
commit 247bd31f20
2 changed files with 7 additions and 4 deletions
+6 -2
View File
@@ -43,9 +43,13 @@
"run_at": "document_idle" "run_at": "document_idle"
} }
], ],
"applications": { "browser_specific_settings": {
"gecko": { "gecko": {
"id": "anyclip@example.local" "id": "anyclip@example.local",
"data_collection_permissions": {
"required": ["none"],
"optional": []
}
} }
} }
} }
+1 -2
View File
@@ -59,8 +59,7 @@ function getSelectionFragment() {
return { text: "", element: null }; return { text: "", element: null };
} }
const container = document.createElement("div"); const container = new DOMParser().parseFromString(lastSelectionHtml, "text/html").body;
container.innerHTML = lastSelectionHtml;
return { return {
text: lastSelectionText, text: lastSelectionText,