<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - WKWebView needs feature to allow file:// subresources"
href="https://bugs.webkit.org/show_bug.cgi?id=154916">154916</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>WKWebView needs feature to allow file:// subresources
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>iOS
</td>
</tr>
<tr>
<th>OS</th>
<td>iOS 9.2
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebKit API
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ashley@scirra.com
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>