<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&#64;apple.com" title="Anders Carlsson &lt;andersca&#64;apple.com&gt;"> <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">&gt; (In reply to <a href="show_bug.cgi?id=154916#c6">comment #6</a>)
&gt; &gt; (In reply to <a href="show_bug.cgi?id=154916#c5">comment #5</a>)
&gt; &gt; &gt; 
&gt; &gt; &gt; Just for the sake of mentioning it, this works correctly if you set the
&gt; &gt; &gt; allowFileAccessFromFileURLs preference in WKPreferences, but there's no
&gt; &gt; &gt; public API to do so.
&gt; &gt; 
&gt; &gt; Yep, it's there in the source:
&gt; &gt; <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>
&gt; &gt; Cocoa/WKPreferences.mm#L388-L396
&gt; &gt; 
&gt; &gt; Are you saying that there is no way to enable that preference when creating
&gt; &gt; a WKWebView?
&gt; 
&gt; There is a way to set this property:
&gt; wkwebview.configuration.preferences.setValue(true, forKey:
&gt; &quot;allowFileAccessFromFileURLs&quot;)</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>