[Webkit-unassigned] [Bug 154916] New: WKWebView needs feature to allow file:// subresources

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 2 07:12:50 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=154916

            Bug ID: 154916
           Summary: WKWebView needs feature to allow file:// subresources
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: iOS
                OS: iOS 9.2
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ashley at scirra.com

WKWebView can load an index page from a file, as is typically done by Cordova applications. However applications using this approach immediately run in to some serious problems:

- XMLHttpRequest to local files fails
- images count as cross-origin, so cannot be uploaded as WebGL textures
- <audio> and <video> cannot load resources from file://
- scripts count as cross-origin, so all errors turn in to "Script error" on line 0, making debugging difficult

These problems make it virtually impossible to port a lot of Cordova apps to WKWebView, where they previously worked in UIWebView.

I suggest that either these restrictions are lifted and restored to how UIWebView treats them, or perhaps a new flag added to WKWebView to allow such subresource loads from local files to count as same-origin.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160302/7d47dbc5/attachment-0001.html>


More information about the webkit-unassigned mailing list