-
Notifications
You must be signed in to change notification settings - Fork 610
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
在chrome 85以下版本,子应用执行window.window报错 #280
Comments
原因分析无界的子应用运行环境使用Proxy对原有的window进行代理, wujie/packages/wujie-core/src/proxy.ts Lines 49 to 74 in 9d657ee
通过判断self和window会返回 此时会触发Proxy的handler.get()的约束机制 85版本之前configurable 和 writable 为false,会触发约束无法正确返回 **85版本之后window的PropertyDescriptor 此时获取方式变成了getter,不会触发约束,正常返回 |
请问该问题是否可解? |
描述bug
在Chrome 85以及以下版本中,子应用执行
window.window
报错。如何复现
给出详细的复现步骤
1、打开Chrome 85以及以下版本浏览器
2、 打开无界在线预览页面 https://wujie-micro.github.io/doc/wujie/
3、打开控制台执行
window[0].__WUJIE.proxy.window
约等于 子应用执行window.window
错误截图
最小复现仓库或者地址
https://wujie-micro.github.io/doc/wujie/
The text was updated successfully, but these errors were encountered: