Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds support for recognizing Dart and Flutter web apps compiled with WebAssembly (Wasm) or modern web libraries (such as package:web) by checking for the presence of dart:js_interop or dart:js_interop_unsafe in addition to dart:html. It also introduces comprehensive unit tests for this detection logic. However, a critical issue was identified where serviceManager can be null (e.g., in offline apps), which would cause a null pointer exception when accessing isDartWebApp. This needs to be safely handled.
hkarmoush
force-pushed
the
detect-web-js-interop
branch
from
October 26, 2026 00:34
a8a2f0c to
190f2c5
Compare
srawlins
approved these changes
Oct 29, 2026
hkarmoush
force-pushed
the
detect-web-js-interop
branch
from
November 5, 2026 17:23
190f2c5 to
90c62a7
Compare
srawlins
approved these changes
Nov 9, 2026
hkarmoush
force-pushed
the
detect-web-js-interop
branch
from
November 13, 2026 10:49
dbc001c to
d2ae705
Compare
srawlins
approved these changes
Nov 21, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9973
ConnectedApp.isDartWebApppreviously only checked fordart:html, so dart2wasm /package:webapps were not detected. It now also checksdart:js_interopanddart:js_interop_unsafe, short-circuiting on the first match.ConnectedApplibraryUriAvailabletoFakeServiceManager