-
Notifications
You must be signed in to change notification settings - Fork 147
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
grant unsafeWindow 后 window scope 问题 #273
Labels
bug
Something isn't working
Comments
看起来是不符合预期的,沙盒模式下,不应该能通过window访问到Quill |
我感觉严格上来说,第二个表现应该是比较正确? |
是的,第二个是tampermonkey |
我不带 console.log("tm Quill", Quill)
console.log("tm window", "------", window.Quill)
console.log("tm unsafeWindow", "------", unsafeWindow.Quill)
console.log("tm onload", window.onload, unsafeWindow.onload) |
funny |
处理了,目前的表现形式与tm一致了,哥哥可以试试这个版本:https://github.com/scriptscat/scriptcat/actions/runs/8873074186 但是不知道会不会对其它内容产生影响,单元测试是通过了( |
ggnb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在
grant unsafeWindow
后,即使使用window
也可以访问inject
页面本身的window
对象,与油🐒脚本管理器的表现不一致,不知是否符合预期。加入脚本后访问
https://quilljs.com/playground/snow
,即使window
已经是被代理而非原始window
,但仍可以发现在window
上也可以访问到Quill
对象。The text was updated successfully, but these errors were encountered: