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

Conversation

@yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Sep 16, 2021

Surfaces register DOM event listeners, which need to be cleaned up before hot restarting, lest they are triggered after the hot restart and attempt to operate on discarded objects.

Fixes flutter/flutter#90236.

@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 on the #hackers channel in Chat.

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.

@flutter-dashboard flutter-dashboard bot added platform-web Code specifically for the web engine needs tests labels Sep 16, 2021
@google-cla google-cla bot added the cla: yes label Sep 16, 2021
Copy link
Contributor

@annagrin annagrin left a comment

Choose a reason for hiding this comment

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

LGTM - in my non-specialist eye:)

Copy link
Contributor

@annagrin annagrin left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@harryterkelsen harryterkelsen left a comment

Choose a reason for hiding this comment

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

LGTM

@yjbanov yjbanov merged commit e2bd498 into flutter:master Sep 21, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2021
GaryQian pushed a commit to flutter/flutter that referenced this pull request Sep 22, 2021
* ffdaa4b Implement a default font manager for Fuchsia. (flutter/engine#28673)

* 0608a01 Replace jcenter() for mavenCentral() (flutter/engine#28777)

* ccec08a Roll Dart SDK from a0243abd09e3 to 86a21d182523 (6 revisions) (flutter/engine#28779)

* e2bd498 [web] clear surfaces on hot restart (flutter/engine#28675)

* 6eceff5 Roll Skia from e32309d771ee to a48e7b0186b3 (10 revisions) (flutter/engine#28782)

* 3c01c60 Eliminate unnecessary canvaskit imports (flutter/engine#28787)

* 4e4873e Set MinimumOSVersion to iOS 9 in Info.plist (flutter/engine#28783)

* 4872f8f Roll Dart SDK from 86a21d182523 to c2429dee845e (1 revision) (flutter/engine#28789)

* d8120eb Roll Skia from a48e7b0186b3 to bb30fc16e1be (1 revision) (flutter/engine#28791)

* 13a631a Roll Fuchsia Mac SDK from 3k3-vCrm5... to NM9FaaYay... (flutter/engine#28792)

* a60c0c3 Roll Fuchsia Linux SDK from JD40LpEJO... to bWZcp2jnx... (flutter/engine#28793)

* 04d47cd Roll Skia from bb30fc16e1be to 5527735121f5 (1 revision) (flutter/engine#28794)

* 827c62a Roll Dart SDK from c2429dee845e to 715a98df1828 (1 revision) (flutter/engine#28795)

* f16f0ce Roll Skia from 5527735121f5 to cb25d566c21d (3 revisions) (flutter/engine#28796)

* ec009a3 Roll Dart SDK from 715a98df1828 to 4e396689de4f (1 revision) (flutter/engine#28797)

* df5b566 Disable failing unit tests on UWP (flutter/engine#28785)

* b6e7440 Roll Dart SDK from 4e396689de4f to 6e17953f4e7e (1 revision) (flutter/engine#28800)

* fa2eb22 [canvaskit] Fix bug when overlays are disabled (flutter/engine#28790)
clocksmith pushed a commit to clocksmith/flutter that referenced this pull request Oct 29, 2021
* ffdaa4b Implement a default font manager for Fuchsia. (flutter/engine#28673)

* 0608a01 Replace jcenter() for mavenCentral() (flutter/engine#28777)

* ccec08a Roll Dart SDK from a0243abd09e3 to 86a21d182523 (6 revisions) (flutter/engine#28779)

* e2bd498 [web] clear surfaces on hot restart (flutter/engine#28675)

* 6eceff5 Roll Skia from e32309d771ee to a48e7b0186b3 (10 revisions) (flutter/engine#28782)

* 3c01c60 Eliminate unnecessary canvaskit imports (flutter/engine#28787)

* 4e4873e Set MinimumOSVersion to iOS 9 in Info.plist (flutter/engine#28783)

* 4872f8f Roll Dart SDK from 86a21d182523 to c2429dee845e (1 revision) (flutter/engine#28789)

* d8120eb Roll Skia from a48e7b0186b3 to bb30fc16e1be (1 revision) (flutter/engine#28791)

* 13a631a Roll Fuchsia Mac SDK from 3k3-vCrm5... to NM9FaaYay... (flutter/engine#28792)

* a60c0c3 Roll Fuchsia Linux SDK from JD40LpEJO... to bWZcp2jnx... (flutter/engine#28793)

* 04d47cd Roll Skia from bb30fc16e1be to 5527735121f5 (1 revision) (flutter/engine#28794)

* 827c62a Roll Dart SDK from c2429dee845e to 715a98df1828 (1 revision) (flutter/engine#28795)

* f16f0ce Roll Skia from 5527735121f5 to cb25d566c21d (3 revisions) (flutter/engine#28796)

* ec009a3 Roll Dart SDK from 715a98df1828 to 4e396689de4f (1 revision) (flutter/engine#28797)

* df5b566 Disable failing unit tests on UWP (flutter/engine#28785)

* b6e7440 Roll Dart SDK from 4e396689de4f to 6e17953f4e7e (1 revision) (flutter/engine#28800)

* fa2eb22 [canvaskit] Fix bug when overlays are disabled (flutter/engine#28790)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes needs tests platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A few hot restarts in a row cause a canvaskit failure

3 participants