Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

[Accessibility / iOS 8] Fix 8.0 and 8.1-only, VoiceOver crash when clearing delegate / dataSource for Table or Collection #1624

Merged
merged 1 commit into from
May 10, 2016

Conversation

maicki
Copy link
Contributor

@maicki maicki commented May 5, 2016

If a delegate / dataSource get's set to nil in ASTableView or ASCollectionView on iOS 8.0 / 8.1 it triggers an accessibility call that the delegate / dataSource proxy is catching. The problem with that is that it goes into a loop as it tries to call proxyTargetHasDeallocated what could again trigger to set the delegate / dataSource to nil and the accessibility call is triggered again.

@appleguy
Copy link
Contributor

appleguy commented May 5, 2016

@levi, @nguyenhuy, anyone else who could give this a review? Happy to merge as soon as one person gives a close analysis.

@appleguy appleguy changed the title Fix crash in delegate / dataSource proxies for ASCollectionView and ASTableView [Accessibility / iOS 8] Fix 8.0 and 8.1-only, VoiceOver crash when clearing delegate / dataSource for Table or Collection May 5, 2016
@appleguy appleguy added this to the 1.9.8 milestone May 5, 2016
@nguyenhuy
Copy link
Contributor

@appleguy: LGTM

@levi
Copy link
Contributor

levi commented May 10, 2016

@appleguy LGTM. Land away!

@appleguy appleguy merged commit d88e170 into facebookarchive:master May 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants