-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
platform: webIssues / PRs which are specifically for web.Issues / PRs which are specifically for web.plugin: coretype: bugSomething isn't workingSomething isn't working
Description
Bug report
Describe the bug
Google Flutter web apps using Firebase plugins that rely on firebase_core_web are receiving browser error reports through the TrustedTypes browser APIs. Specifically, the script injection code in _injectSrcScript is not adhering to the standards and is causing errors to be logged.
Steps to reproduce
Run a Flutter Web app on a browser with TrustedType API support, or polyfill present.
Expected behavior
Script manipulation should not trigger TrustedType violations.
Example migration
Some script-manipulation code in the Flutter framework has already been migrated to satisfy the TrustedType checks. Here are two examples:
Metadata
Metadata
Assignees
Labels
platform: webIssues / PRs which are specifically for web.Issues / PRs which are specifically for web.plugin: coretype: bugSomething isn't workingSomething isn't working