-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dart:html APIs unsupported on some browser should be nullable #41905
Comments
@srujzs could you take a look at making those APIs nullable for now? We should meet to discuss the possibility of being more conservative at first (sprinkle more nullable APIs for now) or to validate with something like the dom d.ts or a way to load the MDN in an automated fashion. /cc @rakudrama |
@vsmenon @jacob314 - are you aware of a location where the MDN information can be downloaded in a machine format that we can use as input for this? For what it's worth, none of the APIs above that have issues appear in the typescript d.ts file: https://github.com/microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts |
Another one: |
Bug: #41905 Addresses browser incompatibilities for attributes that are blocking dart2js tests. Change-Id: I2c7af57e236ba6122cce4c0e98efc04d5e11b525 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148320 Auto-Submit: Srujan Gaddam <[email protected]> Commit-Queue: Sigmund Cherem <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]>
#41905 This repo is added for code generation for dart:html. There are various instances of APIs being unsupported for some browsers, and this repo provides metadata on which ones are unsupported. Change-Id: I6740c022cec46352017c38f7c298581695ad33e0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149051 Commit-Queue: Srujan Gaddam <[email protected]> Auto-Submit: Srujan Gaddam <[email protected]> Reviewed-by: Alexander Thomas <[email protected]>
Bug: #41905 Uses MDN information in the generator script to get a better idea of which attributes are compatible and are not. mdnreader.py is introduced to parse the data present in third_party. Change-Id: I330ccf918cb42deb4c09ab97db5f3d2f0c432d99 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149800 Reviewed-by: Stephen Adams <[email protected]>
Changes introduced in dart-lang/sdk#41905 require compatible changes in flutter engine. This CL adds null-asserts wherever necessary to maintain behavior.
Changes related to compatibility info require changes in Flutter engine libraries. This CL adds null-asserts wherever necessary to maintain behavior and adds some small modifications to handle the change in nullability. Warnings about unnecessary null assertions are disabled temporarily in this CL as well. Original issue: dart-lang/sdk#41905
Changes introduced in dart-lang/sdk#41905 require compatible changes in flutter engine. This CL adds null-asserts wherever necessary to maintain behavior.
Changes related to compatibility info require changes in Flutter engine libraries. This CL adds null-asserts wherever necessary to maintain behavior and adds some small modifications to handle the change in nullability. Warnings about unnecessary null assertions are disabled temporarily in this CL as well. Original issue: dart-lang/sdk#41905
Changes related to compatibility info require changes in Flutter engine libraries. This CL adds null-asserts wherever necessary to maintain behavior and adds some small modifications to handle the change in nullability. Warnings about unnecessary null assertions are disabled temporarily in this CL as well. Original issue: dart-lang/sdk#41905
Changes related to compatibility info require changes in Flutter engine libraries. This CL adds null-asserts wherever necessary to maintain behavior and adds some small modifications to handle the change in nullability. Warnings about unnecessary null assertions are disabled temporarily in this CL as well. Original issue: dart-lang/sdk#41905
Dart changes have been merged. Closing. |
Since dart-lang/sdk#41905 has closed, this CL removes the suppression of unnecessary_non_null_assertion and unnecessary_null_comparison. It also removes an unnecessary null assertion that was not being reported.
Since dart-lang/sdk#41905 has closed, this CL removes the suppression of unnecessary_non_null_assertion and unnecessary_null_comparison. It also removes an unnecessary null assertion that was not being reported.
Since dart-lang/sdk#41905 has closed, this CL removes the suppression of unnecessary_non_null_assertion and unnecessary_null_comparison. It also removes few unnecessary null assertions that was not being reported.
Since dart-lang/sdk#41905 has closed, this CL removes the suppression of unnecessary_non_null_assertion and unnecessary_null_comparison. Related issues: dart-lang/sdk#41905 (resolved)
Since dart-lang/sdk#41905 has closed, this CL removes the suppression of unnecessary_non_null_assertion and unnecessary_null_comparison. Related issues: dart-lang/sdk#41905 (resolved)
Since dart-lang/sdk#41905 has closed, this CL removes the suppression of unnecessary_non_null_assertion and unnecessary_null_comparison. Related issues: dart-lang/sdk#41905 (resolved)
In debugging some internal apps I've come across several APIs that are not supported in FF and Safari. These are currently marked as non-nullable because they aren't nullable in Chrome, but in those browsers they are.
So far I've run into:
Performance.memory
(see https://developer.mozilla.org/en-US/docs/Web/API/Performance)navigator.connection
in Safary (see https://developer.mozilla.org/en-US/docs/Web/API/Navigator)navigator.connection.downlink
in FF (see https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation)Short term we need to mark all those APIs as nullable. We should however discuss whether we should change our default (being more lax about nullability, or cross referencing them with some other database).
The text was updated successfully, but these errors were encountered: