升级插件安全策略、包管理和运行时能力

This commit is contained in:
2026-08-17 09:06:32 +08:00
parent 92e5c330f2
commit c3a8737fd6
50 changed files with 4409 additions and 2646 deletions
+10
View File
@@ -0,0 +1,10 @@
# 从旧清单迁移到 manifest v3
1. 添加 `manifestVersion: 3``apiVersion: "2"``runtime: "WebView"`
2.`permissions` 中每项权限添加非空 `permissionReasons`
3. 将启动必需权限放入 `security.requiredPermissions`,其余保持可选。
4.`Http` 添加精确公网 HTTPS/WSS `network.allowedOrigins`
5. 为外链和内置工具分别添加 `openExternalOrigins``runToolIds`
6. 移除 Shell/Script、原生可执行文件、任意文件路径、`file://`、远程脚本、任意目标探测和 WebRTC/STUN 绕过。
7. 使用浏览器 `localStorage`/IndexedDB 保存纯 Web 私有状态;需要宿主 KV 时声明 `Storage`
8. 在插件页重新审阅权限并启用。旧授权不会自动继承到新策略指纹。