<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<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#c8">Comment # 8</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:andersca@apple.com" title="Anders Carlsson <andersca@apple.com>"> <span class="fn">Anders Carlsson</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=154916#c7">comment #7</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=154916#c6">comment #6</a>)
> > (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?
>
> There is a way to set this property:
> wkwebview.configuration.preferences.setValue(true, forKey:
> "allowFileAccessFromFileURLs")</span >
That's not a supported way to do things. It might stop working at any time.</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>