Apps using WKWebView serving local html file cannot use localstorage
Originator: | contact | ||
Number: | rdar://27051672 | Date Originated: | 28/06/2016 |
Status: | Open | Resolved: | |
Product: | iOS | Product Version: | iOS 10.0 (14A5261u) |
Classification: | Serious | Reproducible: | Always |
Area: WebKit Summary: Apps using WKWebView to serve local assets, like Cordova apps, cannot use localstorage. Typing 'localstorage' in de inspector results in SecurityError: DOM Exception 18. Steps to Reproduce: 1. create app with WKWebview pointing to a local html file with file:/// URI 2. Run in simulator 3. open Web Inspector 4. type 'localStorage' Expected Results: It returns Storage object Actual Results: Error: SecurityError: DOM Exception 18 Version: iOS 10.0 (14A5261u) Notes: Configuration: XCode Version 8.0 beta (8S128d) - Simulator
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!
+1, this is a mayor issue for us. We would like to know if there are plans to fix this issue before iOS 10 is released. Thanks!