David Iglesias
David Iglesias
TrustedTypes definitions have landed, but please consider the following changes to the API to make it more usable: 1. Make `trustedTypes` nullable, or provide a way to check if `trustedTypes`...
I think `HTMLScriptElement` needs a src setter that accepts a `TrustedScriptURL`. After conditionally creating a trustedUrl like this: ``` // If TrustedTypes are available, prepare a trusted URL. web.TrustedScriptURL? trustedUrl;...
Any chance of making `NodeList` mix-in `Iterable`? Something like: ```dart @JS() @staticInterop class IterableNodeList extends html.NodeList with Iterable { @override Iterator get iterator => _NodeListIterator(this); } class _NodeListIterator implements Iterator...
Generated `fakeConstructor$` do not work and can't be called in dart2js, hence they probably shouldn't be generated anymore. [This](https://github.com/dart-lang/js_facade_gen/blob/ea261549bb41ccb39603fdba59227b590c923a51/lib/declaration.ts#L127-L143) should be removed.
In the same way we're wrapping returned Promises in `promiseToFuture`, so they can be directly used in Dart as Futures, I think we could also wrap callbacks passed as parameters...
The current implementation of `cross_file` relies on cross-platform constructors that "need to work" across all platforms. With time, and as features are added, these constructors end up growing, and now...
While investigating a separate timeout, I noticed that the "legacy" implementation of the `webview_flutter_web` package is accessing the iFrame element on the DOM before it's injected into the page: *...
### Document Link https://flutter.dev/go/web-cleanup-service-worker ### What problem are you solving? The current default service worker implementation is one of (several) approaches that can be used by Flutter web, however it's...
The current implementation of `Future.toJS` ([here](https://github.com/dart-lang/sdk/blob/4a80b6d88bd87bcbbc8e84942f12a2ea3a71bdd4/sdk/lib/js_interop/js_interop.dart#L734), [here](https://github.com/dart-lang/sdk/blob/4a80b6d88bd87bcbbc8e84942f12a2ea3a71bdd4/sdk/lib/js_interop/js_interop.dart#L767)) handles errors coming from the Dart future by rejecting a JS Promise. This is great so JS code knows that something failed within...
This PR attempts to solve the current issues of `XFile` by slightly re-architecting it. In this PR: * `XFile` is now an interface that does not have any code, except...