{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/16295","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/16295/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/16295/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/16295/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/16295","id":187574053,"number":16295,"title":"29130863: Loading html strings in a WKWebView cannot access user documents on device","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"id":243427784,"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:yes","name":"reproducible:yes","color":"5319e7","default":false},{"id":243427744,"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/2","html_url":"https://github.com/lionheart/openradar-mirror/milestones/iOS","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/2/labels","id":1237416,"number":2,"title":"iOS","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":2593,"closed_issues":18,"state":"open","created_at":"2015-08-03T02:08:30Z","updated_at":"2016-11-06T17:01:57Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-11-06T17:01:57Z","updated_at":"2016-11-06T17:01:57Z","closed_at":null,"body":"#### Description\n\nWhen using WKWebView.loadHTMLString(_:baseURL:) the html cannot reference files contained in the application documents. What I want to be able to do is reference a stylesheet on disk (\"style.css\"). I would expect to provide a base url for the directory that style.css is in so that the html can correctly reference it. This works in both the simulator and on device when the directory is in the application bundle, and works in the simulator when the directory is in application documents, but does not work on device when the directory is in application documents.\r\n\r\nWKWebView.loadFileURL(_:allowingReadAccessTo:) does work as expected, but I cannot use it as I am handling sensitive data that cannot be stored in plaintext on disk, so I cannot write it to a file.\n\n-\nProduct Version: 10.0.1\nCreated: 2016-11-06T16:38:18.476050\nOriginated: 2016-11-06T00:00:00\nOpen Radar Link: http://www.openradar.me/29130863"}}
{"actor":{"display_login":"openradar-mirror"}}