[Webkit-unassigned] [Bug 175565] Not allowed to load local resources from other volumes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 16 04:37:45 PDT 2017


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

eelco at motif.co changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #5 from eelco at motif.co ---
I filed the bug against Safari, because it’s easiest to reproduce there, but it also exists in WKWebView. (It does not occur in Blink/Chrome.)

Our use case for WKWebView is as follows:
- Load a web app from disk (or via an internal web server, does not matter in a WKWebView).
- Allow a user to open our files, which will load in the web app.
- The files contain/refer to resources (images) which are on disk.
- This bug occurs when files are saved on a USB drive or different partition.

Looking at the code it seems that the intended behavior is to have read-only access to “/”, but this is restricted (by the sandbox, I assume) to be only the volume that’s mounted on “/”. I don’t think it makes sense to treat volumes differently than regular file permissions in this case, especially because there does not seem a way to express that it should be “/” *and* cross volumes.

Alternatively, having an API to explicitly add files/directories with read access to WKWebView would be workable.

-- 
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/20170816/5feac36b/attachment-0001.html>


More information about the webkit-unassigned mailing list