NSSearchField restores deallocated first responder from popover

Originator:maximilian.szengel
Number:rdar://26064913 Date Originated:03-May-2016 06:21 PM
Status:Closed Resolved:15-June-2016 06:21 PM
Product:OS X Product Version:10.11.4
Classification: Reproducible:Always
 
Summary:
Window restoration accesses a deallocated object from a popover if the previous firstResponder was an object inside the popover.

Steps to Reproduce:
0. Enable "All controls" in the Keyboard System Preferences
1. Run the app
2. Click on the "button" which opens a popover
3. Directly click into the search field in the main window
4. Move focus to another app (cmd+tab)
5. Crash!

Expected Results:
No Crash. "_previousResponder" should be weak.

Actual Results:
Crash

Version:
Mac OS X 10.11.4

Notes:


Configuration:
"All controls" in the Keyboard System Preferences enabled


Update:
Fixed in 10.12 beta 1

Comments

Workaround

https://gist.github.com/maxsz/a27b0c8c7d318166a9588dc4e55e4450

By maximilian.szengel at May 4, 2016, 9:32 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!