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

fixes crash when sets mouseTrackingMode before view is loaded #26576

Merged
merged 3 commits into from
Jun 4, 2021

Conversation

chunhtai
Copy link
Contributor

@chunhtai chunhtai commented Jun 3, 2021

This is a regression introduced by my previous pr #25600 where i add more assert around flutterview usage.

fixes flutter/flutter#83933

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.
  • The reviewer has submitted any presubmit flakes in this PR using the engine presubmit flakes form before re-triggering the failure.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@@ -396,7 +396,9 @@ - (void)listenForMetaModifiedKeyUpEvents {
}

- (void)configureTrackingArea {
NSAssert(self.viewLoaded, @"View must be loaded before setting tracking area");
if (!self.viewLoaded) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

What causes this to get set again when the view loads?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

- (void)viewDidLoad; will call the configureTrackingArea selector

Copy link
Contributor

Choose a reason for hiding this comment

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

cool - maybe just mention that here in a comment? otherwise LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes platform-macos waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MacOS: Assertion when specifying mouseTrackingMode
3 participants