[Webkit-unassigned] [Bug 154916] WKWebView needs feature to allow file:// subresources
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 11 07:30:08 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=154916
--- Comment #8 from Anders Carlsson <andersca at apple.com> ---
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > >
> > > 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:
> > https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/
> > 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")
That's not a supported way to do things. It might stop working at any time.
--
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/20161011/ae8a3cf8/attachment.html>
More information about the webkit-unassigned
mailing list