WKWebView sometimes does not load/run local resources/scripts on iOS 11 beta 5 & below but seems to be fixed in beta 6

Originator:JoshyHargreaves
Number:rdar://34012075 Date Originated:
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
I started creating this bug report before iOS11 beta 6 which seems to have fixed this issue, but as I haven't seen an openradar bugs, I wanted to submit the report anyway just in case this issue comes back. 

On iOS 11 beta 5 & below (but only on iOS 11, not iOS 10), our mobile application has had WKWebView display issues when loading local web content. From doing some investigation, it looks like scripts can non-deterministically sometimes not be loaded sometimes upon initial page load of the index.html. I have come to this conclusion by running on a device & inspecting the webview from Safari on mac and under the resources tab, it show's that some of our script files are shown to not have been loaded. This theory is supported by the behavior we are seeing as it seems like our JavaScript is not actually executing when we see this bug.

I have attached some screenshots of mac safari inspecting the webview on iOS.

I tried recreating a standalone project to reproduce, but did not manage to identify what might be causing this. Simply our application loads a local file and resources in a view within our application that is loaded during a UINavigationController transition to that view.

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!