WKURLSchemeHandler is not designed to handle "http" and "https" schemes and you are doing this at your own risk.
WebKit's documentation clearly says that all the methods of WebKit have to be called from main thread, that is not a case for you, as I see from screenshot.
Always call WebKit functions and methods from your app’s main thread or main dispatch queue.
Moving dealloc call to main thread may resolve your issue.
Topic:
Safari & Web
SubTopic:
General
Tags: