JS resource load problem in Webkit

We got a problem when we use wkwebview. We use WKWebView to load webpage in our app,but sometimes we found that when the page is loading, JS resources are always in the pending state, resulting in page loading blocking. As long as we reset WKProcessPool, the problem is solved. But it will come back after a while.
We set a singleton object to WKWebview's processpool :
Code Block WKWebViewConfiguration* configuration = [WKWebViewConfiguration alloc] init];
configuration.processPool = self.processPool;
WKWebView* webView = [[WKWebView alloc] initWithFrame:self.bounds configuration:configuration];
- (WKProcessPool *)processPool {
if (!_processPool) {
static dispatch_once_t predicate;
dispatch_once(&predicate, ^{
_processPool = [[WKProcessPool alloc] init];
});
}
return _processPool;
}

Is there any problem that we use processpool as a singleton object ?

what may case js resource requests are always pending ?


Please file a bug report (Feedback Assistant issue) with a sysdiagnose (after the issue occurred), the date and time that the issue occurred, and (if possible) the URL that was being loaded when the hang occurred. If you can create a (reduced) test case that demonstrates the issue, and steps to reproduce, that would be fantastic to attach to the bug report.

Please post the Feedback Assistant ID here, and post about the issue on Twitter and tag the @webkit account.

JS resource load problem in Webkit
 
 
Q