lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
246 stars 17 forks source link

25921607: Safari View Controller Delegate deallocates before transition finishes #14632

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

Description

Summary: If the Safari View Controller is contained in a container view controller that is set as its delegate, the container view controller will deallocate before the Safari View Controller can finish sending it a safariViewControllerDidFinish: message, after swiping to dismiss. Pressing the done button works properly, but swiping causes the container view controller to deallocate before the transition can complete.

Steps to Reproduce:

  1. Open sample project in Xcode.
  2. Set a breakpoint on line 55 (safariViewControllerDidFinish:) of the ContainerViewController.m file.
  3. Run application on device or simulator.
  4. Tap the "Present Safari View Controller" button.
  5. Dismiss the Safari View Controller by swiping from the left edge of the screen.

Expected Results: The safariViewControllerDidFinish: should be called after the swipe to dismiss transition completes. The breakpoint should be hit.

Actual Results: The safariViewControllerDidFinish: is not called after the swipe to dismiss transition completes. The breakpoint is not hit.

Version: iOS 9.3.2 (13F61)

Configuration: iPhone 6s 64 GB T-Mobile, using Wi-Fi

Sample Code: https://github.com/sqwerl/safariviewcontrollerbugs

Product Version: 9.3.2 Created: 2016-05-04T20:56:37.626010 Originated: 2016-04-25T17:49:00 Open Radar Link: http://www.openradar.me/25921607

openradar-mirror commented 8 years ago

Modified: 2016-05-04T21:20:33.259540