Skip to content

[Bug]隔离没有彻底 #3067

@listen80

Description

@listen80

接入乾坤

What happens?

1 原型上新增的方法属性无法隔离
2 事件注册无法隔离,addEventListener,customElements.define等

最小可复现仓库

任意qiankun项目

复现步骤,错误日志以及相关配置

1 主应用修改String.prototype.fn = function() {}
2 子应用修改String.prototyoe.fnChild = function() {}
3 另外的子应用 发现两者都能访问
4 customElements.define两个子应用同时定义会报错(因为两者组件库一致)

相关环境信息

  • qiankun 版本 2.10.5
  • 浏览器版本:chrome 112
  • 操作系统: windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions