Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIWebView call loadRequest multiple times lead to deadlock in iOS12 #447

Closed
crmo opened this issue Nov 1, 2018 · 0 comments
Closed

UIWebView call loadRequest multiple times lead to deadlock in iOS12 #447

crmo opened this issue Nov 1, 2018 · 0 comments

Comments

@crmo
Copy link
Contributor

crmo commented Nov 1, 2018

In iOS 12,if you call loadRequest twice in succession,like this:

[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://github.com"]]];
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://google.com"]]];

webViewDidStartLoad: will callback twice times,but webViewDidFinishLoad: just callbcak once time.like this:

1. didStartLoading
2. didStartLoading
3. didFinishLoad

Everything is correct in iOS 11.Callback sequence:

1. didStartLoading
2. didFinishLoad
3. didStartLoading
4. didFinishLoad

This problem will lead to [CDVUserAgentUtil acquireLock:] block don`t excute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants