Skip to content

Flutter Web : Cannot read property 'Symbol(dartx.postMessage)' of null. #78294

@sivaram16

Description

@sivaram16

I am having a HtmlElementView which will have Html content to render it, so when i open it first time its works fine as expected when i go back and open again its showing error.Here i have attached the reproducing example repo https://github.com/ThalapathySiva/flutter_html_reproducing_repo which will have two buttons on home page first click any one of those it will open the html render screen and it will work first time just go back and click the button again it will throw error without rendering and if you go back and refresh the whole window and tapped the button again it works this is the scenario by the way the contentwindow is getting null thats the issue.How can we handle this case. Thank you

Error :

TypeError: Cannot read property 'Symbol(dartx.postMessage)' of null
at http://localhost:55601/dart_sdk.js:33443:33
at internalCallback (http://localhost:55601/dart_sdk.js:25104:11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectengineflutter/engine related. See also e: labels.found in release: 2.0Found to occur in 2.0has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions