-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[CP-stable]Made the view controller weak for the accessibility bridge. #176030
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
[CP-stable]Made the view controller weak for the accessibility bridge. #176030
Conversation
…172871) fixes: flutter#172105 The migration to ARC accidentally changes the semantics for this ivar. [It was previously a weak ptr](https://github.com/flutter/flutter/blob/303823993244ab930458f3767d86255f76e332d8/engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.h#L91), this restores that. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
|
This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter. Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request is a cherry-pick that bundles a large number of fixes. The primary fix, as indicated by the title, addresses a memory leak in the iOS accessibility bridge by using a weak reference to the view controller. This resolves an issue where Flutter views could hang in add-to-app scenarios.
Beyond this, the PR introduces a significant refactoring of the iOS device launching mechanism to support LLDB-based debugging on newer iOS and Xcode versions, with a fallback to the existing Xcode automation. It also includes numerous other improvements and bug fixes across the engine and tooling, such as correcting a buffer flush issue in Impeller, fixing a race condition in the Vulkan backend, improving the web click debouncer for Safari, and enhancing various build and migration scripts for robustness. My review includes a couple of minor suggestions in a C++ test file to improve adherence to the style guide.
reidbaker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSLGTM
Reminder to format your changelog entry following the best practices https://github.com/flutter/flutter/blob/main/docs/releases/Hotfix-Documentation-Best-Practices.md
|
autosubmit label was removed for flutter/flutter/176030, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR. |
|
autosubmit label was removed for flutter/flutter/176030, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR. |
d3d45dc
into
flutter:flutter-3.35-candidate.0
Sets the engine version to the the most recent engine change (#176030).
This pull request is a manual cherry pick of #172871 after I had trouble updating the automatic cherry pick pull request (#175595).
Issue Link:
What is the link to the issue this cherry-pick is addressing?
#172105
Changelog Description:
Explain this cherry pick in one line that is accessible to most Flutter developers. See best practices for examples
Fixes issue in iOS add-to-app where Flutter view may hang after multiple transitions.
Impact Description:
What is the impact (ex. visual jank on Samsung phones, app crash, cannot ship an iOS app)? Does it impact development (ex. flutter doctor crashes when Android Studio is installed), or the shipping production app (the app crashes on launch)
App may hang after transitioning between multiple pages on iOS.
Workaround:
Is there a workaround for this issue?
No
Risk:
What is the risk level of this cherry-pick?
Test Coverage:
Are you confident that your fix is well-tested by automated tests?
Validation Steps:
What are the steps to validate that this fix works?
Using https://github.com/flutter/samples/tree/main/add_to_app/fullscreen