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

Declare the js context as nullable in skwasm surface callback #45810

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

eyebrowsoffire
Copy link
Contributor

Declaring this as non-nullable causes breakage with an incoming JS interop change from the SDK. Marking this as nullable fixes the issue.

This doesn't actually change any behavior. The breakages were in test/ui/image_golden_test.dart. No changes to the test are required (they did catch the issue when the dart roll happened).

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie or stuartmorgan on the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@github-actions github-actions bot added the platform-web Code specifically for the web engine label Sep 14, 2023
@eyebrowsoffire eyebrowsoffire changed the title Declare the js context as nullable Declare the js context as nullable in skwasm surface callback Sep 14, 2023
@eyebrowsoffire eyebrowsoffire added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 14, 2023
@auto-submit auto-submit bot merged commit 87b2bda into flutter:main Sep 14, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 14, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 14, 2023
…134769)

flutter/engine@035932d...3a3a280

2023-09-14 [email protected] Roll Skia from 9bdf01416042 to 0f003d5748bc (4 revisions) (flutter/engine#45841)
2023-09-14 [email protected] Declare the js context as nullable in skwasm surface callback (flutter/engine#45810)
2023-09-14 [email protected] [Impeller] Release a texture during Playground teardown (flutter/engine#45832)
2023-09-14 [email protected] Roll Skia from 87025d1e162c to 9bdf01416042 (1 revision) (flutter/engine#45835)
2023-09-14 [email protected] Make `fml::ScopedCleanupClosure` `std::move`-able and add unit tests. (flutter/engine#45772)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Mairramer pushed a commit to Mairramer/flutter that referenced this pull request Oct 10, 2023
…lutter#134769)

flutter/engine@035932d...3a3a280

2023-09-14 [email protected] Roll Skia from 9bdf01416042 to 0f003d5748bc (4 revisions) (flutter/engine#45841)
2023-09-14 [email protected] Declare the js context as nullable in skwasm surface callback (flutter/engine#45810)
2023-09-14 [email protected] [Impeller] Release a texture during Playground teardown (flutter/engine#45832)
2023-09-14 [email protected] Roll Skia from 87025d1e162c to 9bdf01416042 (1 revision) (flutter/engine#45835)
2023-09-14 [email protected] Make `fml::ScopedCleanupClosure` `std::move`-able and add unit tests. (flutter/engine#45772)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
harryterkelsen pushed a commit that referenced this pull request Oct 23, 2023
Declaring this as non-nullable causes breakage with an incoming JS interop change from the SDK. Marking this as nullable fixes the issue.

This doesn't actually change any behavior. The breakages were in `test/ui/image_golden_test.dart`. No changes to the test are required (they did catch the issue when the dart roll happened).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants