Re: Sandboxed WkWebView


Sandor Szatmari
 

One thing that can cause delegate methods to never be called is if there’s been some sort of exception thrown, one that doesn’t crash the app but causes SDK internals to get all mucked up. Do you have a catch all Objc exception breakpoint set? I can imaging if the path to the volume is getting mangled and everything ‘seems’ ok that some call is failing and causing your delegate reference to fail.

Sandor

On Oct 16, 2017, at 07:46, Gerriet M. Denkmann <g@mdenkmann.de> wrote:

macOS 12.6

When I start my sandboxed app, I get lots of messages like:

“could not create “/Volumes/เม่น/Users/gerriet/Library/Containers/….”."

Of course there is no disk-partition called “เม่น”.

And when I check “/Volumes/เม่น™/Users/gerriet/Library/Containers/….” all complained about folders have been created.

So far so confusing.


But when I do [ wkWebView loadHTMLString: … ] I see again:

“could not create “/Volumes/เม่น/Users/gerriet/Library/Containers/de.mdenkmann.TestViewsMac/Data/Library/Caches/WebKit/NetworkCache”"

and then nothing happens - no delegate method is ever called and the view remains blank.

Any idea what I am doing wrong?

Gerriet.

P.S. works fine without sandboxing. And WebView works with or without sandboxing.




Join cocoa@apple-dev.groups.io to automatically receive all group messages.