Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件改为manifest v3架构 #54

Open
Yun-Shan opened this issue Jun 30, 2022 · 1 comment · May be fixed by #104
Open

插件改为manifest v3架构 #54

Yun-Shan opened this issue Jun 30, 2022 · 1 comment · May be fixed by #104
Assignees
Labels
enhancement New feature or request

Comments

@Yun-Shan
Copy link
Member

Yun-Shan commented Jun 30, 2022

Note: Chrome官方信息推迟了v2淘汰时间,目前时间待定,预计至少在2024年6月前都能正常使用
参考:
https://groups.google.com/u/1/a/chromium.org/g/chromium-extensions/c/zQ77HkGmK9E
https://developer.chrome.com/docs/extensions/migrating/mv2-sunset/

必要性:

  • ✅ chrome从2023年1月时间待定开始全面淘汰manifest v2,届时v2插件将被拒绝运行,且不再能够推送更新(旧版chrome应该可以运行,但大概率不能推送更新)

可实现性:

  • ✅ chrome在一年多前的版本就已经是v3全部用户可用了
  • ✅ firefox目前已在101版本开放v3的开发者测试,个人认为年底应该能上全部用户可用的版本
  • 💥 旧版本很可能无法使用v3插件,需要调研如何让旧版能够使用(最差情况要构建两种版本的插件)

难点:

  • 🏗️ v3插件不再支持持久化后台,需要将background重构为基于事件响应的模式,这可能会遇到很多问题
  • 💥 setTimeout不再可靠,正式的alarm api最短频率是1分钟,这会给蹲饼的实时性带来很大挑战(可能的一种方案是创建很多个alarm,但可行性不清楚,需要测试)
@Yun-Shan Yun-Shan added the enhancement New feature or request label Oct 7, 2023
@Yun-Shan Yun-Shan self-assigned this May 17, 2024
@Yun-Shan
Copy link
Member Author

DDL DDL
最早在24年7月就要被停用啦!

@Yun-Shan Yun-Shan linked a pull request Jun 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 计划中
Development

Successfully merging a pull request may close this issue.

1 participant