[Webkit-unassigned] [Bug 154916] WKWebView needs feature to allow file:// subresources

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 3 01:00:00 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=154916

--- Comment #11 from ae at instinctive.de ---
(In reply to Jeremy Colton from comment #10)
> (In reply to ae from comment #9)
> > I am actually doing this (wkwebview.configuration.preferences.setValue(true,
> > forKey:"allowFileAccessFromFileURLs") in one of my apps, and after already
> > dancing around happily because it worked, it crashes on the iPhone 5
> > simulator (not on 5s, and not on a real iPhone SE). Odd.
> 
> Hi, in your Cordova app, where are you adding this code?  The
> WKWebViewEngine.m shows an error when I add this line to it with the other
> wkWebView.configuration.preferences data and the API in XCode doesn't show a
> setValue method...
> 
> Thanks

Hi, I used to set it via:

WKPreferences *preferences = [[WKPreferences alloc] init];
[preferences setValue:@"true" forKey:@"allowFileAccessFromFileURLs"];

However, this started to crash on the simulator one day and now I've resorted to serving files via an embedded GCDWebServer.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170503/5baef9f6/attachment.html>


More information about the webkit-unassigned mailing list