Firefox MV3 或无法实现后台脚本功能 #1330
cyfung1031
started this conversation in
General
Replies: 2 comments 3 replies
-
|
@CodFrm |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
@CodFrm https://bugzilla.mozilla.org/show_bug.cgi?id=1685123 原因是,Firefox团队最初让 eval 在MV3完全禁止让扩充变得安全的想法,被 executeScript 这个API打破了缺口,因此Firefox整个团队的想法是舍弃 executeScript, 而倒过来为了扩充能使用 自定义代码, 会重新在MV3实现 sandbox 现在最新版是 151.0a1 (2026-04-06) 应该今年内就会补回 sandbox, 然后 Firefox那边也可以踏入 MV3 时代了 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Firefox MV3 不支持在 扩充页面进行
eval/new Function查过很多资料和方法。没有任何可行的做法
除非打开一个网络的沙盒页
当作一般页面的脚本注入,在里面跑代码
Beta Was this translation helpful? Give feedback.
All reactions