A basic web request with WKWebView fails to load

Originator:jaanus
Number:rdar://21481398 Date Originated:Jun 22, 2015
Status:Open Resolved:
Product:iOS SDK Product Version:Xcode 7 beta, iOS 9 beta
Classification: Reproducible:Always
 
Summary:
When I create a basic single-view app and add one WKWebView to it, the web view fails to load any content from an Internet destination with iOS9/Xcode7. The same code works without changes with iOS8.4 and Xcode 6.3.2.

Steps to Reproduce:
1. Create a single-view app from Xcode template.
2. Add a WKWebView to it.
3. Try to load content with the loadRequest method

Expected Results:
Web content should be loaded.

Actual Results:
Nothing is loaded on Xcode7/iOS9. Only the "decide policy for navigation action" and "start provisional navigation" WKNavigationDelegate methods fire.

Content loads as expected when compiling the same code with Xcode6.3.2/iOS8. All navigation delegate methods fire as expected.

Comments


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!