Skip to content

iframe navigation on Android gets handled by main frame with NavigationDecision.navigate #145208

@petermnt

Description

@petermnt

What package does this bug report belong to?

webview_flutter

What target platforms are you seeing this bug on?

Android

Have you already upgraded your packages?

Yes

Dependency versions

pubspec.lock
  webview_flutter_android:
    dependency: transitive
    description:
      name: webview_flutter_android
      sha256: "3e5f4e9d818086b0d01a66fb1ff9cc72ab0cc58c71980e3d3661c5685ea0efb0"
      url: "https://pub.dev"
    source: hosted
    version: "3.15.0"

Steps to reproduce

  1. Add NavigationDeletage.onNavigationRequest to the Webview
  2. Go to a site which has an iframe that executes data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>

Expected results

Iframe is allowed to load that content

Actual results

The main frame loads this content, causing a white page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions