Skip to content

[macOS] Handle platform views that reparent themselves #146810

@knopp

Description

@knopp

When WKWebView enters full screen (i.e. during video playback) it moves itself over to new window and puts another view in its position ("click to exit FullScreen). Currently platform view container on macOS always reparents the webview back essentially breaking full screen.

One option is to let plugin handle this by using an intermediate view. However the platform view infrastructure on macOS already has an intermediate view in place that holds nothing else then the platform view. This makes it fairly trivial to handle this situation in the embedder making it easier for plugin authors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: desktopRunning on desktopa: platform-viewsEmbedding Android/iOS views in Flutter appsc: proposalA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.platform-macBuilding on or for macOS specificallyr: fixedIssue is closed as already fixed in a newer versionteam-macosOwned by the macOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions