Repository navigation
Conversation
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.
a8a2f0c to
190f2c5
Compare
190f2c5 to
90c62a7
Compare
dbc001c to
d2ae705
Compare
|
Hi @srawlins, this is approved and CI is green. The only push since your approval was a small dart format fix on connected_app.dart. Could it be merged when you get a chance? Thanks for the reviews. |
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