SFSafariViewControllerDelegate "didCompleteInitialLoad" doesn't report 404 failures

Originator:jaredsinclair.rn
Number:rdar://22340386 Date Originated:19-Aug-2015 05:25 AM
Status:Open Resolved:
Product:iOS SDK Product Version:9.0
Classification:Other Bug Reproducible:Always
 
Summary:
404 failures aren’t properly detected and passed to SFSafariViewController’s delegate.

Steps to Reproduce:
1. Intialize a SFSafariViewController with the following garbage url: http://jaredsinclair.com/broken 
2. Provide the view controller with a delegate that implements public func safariViewController(controller: didCompleteInitialLoad:) 
2. The view controller attempts to load http://jaredsinclair.com/broken, which leads to a 404 error page.
3. SFSafariViewController calls the delegate method but “didCompleteInitialLoad” is true instead of false.

Expected Results:
SFSafariViewController should call the delegate method where “didCompleteInitialLoad” is false, since the load 404’ed.

Actual Results:
SFSafariViewController calls the delegate method but “didCompleteInitialLoad” is true instead of false.

Regression:
n/a

Notes:
n/a

Comments

Link to duplicate

My Radar was resolved as a duplicate of this Radar.

It lives here: https://openradar.appspot.com/22569408

By james.reggio at Sept. 9, 2015, 7:56 p.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!