Skip to content

[BUG] WebView直接访问contentDocument导致无法跨域加载WebView #19171

Description

@lauryo

const body = iframe.contentDocument && iframe.contentDocument.body;

我在开发移动Web端游戏,现在需要通过WebView加载活动页。由于活动页面和游戏页面不在同一个域下,WebViewImpl又强行访问属性iframe.contentDocument,导致iOS端直接报错。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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