<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:guram.kajaia@gmail.com" title="guram.kajaia@gmail.com">guram.kajaia@gmail.com</a>
</span> changed
<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">bug 154916</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>guram.kajaia@gmail.com
</td>
</tr></table>
<p>
<div>
<b><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#c7">Comment # 7</a>
on <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">bug 154916</a>
from <span class="vcard"><a class="email" href="mailto:guram.kajaia@gmail.com" title="guram.kajaia@gmail.com">guram.kajaia@gmail.com</a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=154916#c6">comment #6</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=154916#c5">comment #5</a>)
> >
> > Just for the sake of mentioning it, this works correctly if you set the
> > allowFileAccessFromFileURLs preference in WKPreferences, but there's no
> > public API to do so.
>
> Yep, it's there in the source:
> <a href="https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/">https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/</a>
> Cocoa/WKPreferences.mm#L388-L396
>
> Are you saying that there is no way to enable that preference when creating
> a WKWebView?</span >
There is a way to set this property:
wkwebview.configuration.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs")</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>