Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[web] Avoid returning List from DOM apis. #33880

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

joshualitt
Copy link
Contributor

Returning a List from DOM APIs can result in dangerous corner cases, i.e. inserting into a static NodeList. This CL changes those APIs to return Iterables wrapping static interop objects which should be safer.

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Jun 7, 2022
@joshualitt joshualitt marked this pull request as ready for review June 7, 2022 19:13
@joshualitt joshualitt requested a review from eyebrowsoffire June 7, 2022 19:13
Copy link
Contributor

@eyebrowsoffire eyebrowsoffire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@joshualitt joshualitt merged commit c1cb617 into flutter:main Jun 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 8, 2022
houhuayong pushed a commit to houhuayong/engine that referenced this pull request Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-web Code specifically for the web engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants