[Webkit-unassigned] [Bug 154916] WKWebView needs feature to allow file:// subresources
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 11 04:42:27 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=154916
guram.kajaia at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |guram.kajaia at gmail.com
--- Comment #7 from guram.kajaia at gmail.com ---
(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")
--
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/da4fe9d4/attachment.html>
More information about the webkit-unassigned
mailing list