Calls decisionsHandler asynchronously
This change is a precursor to a more extensive change where ExternalAppLauncher API is changed to be asynchronous. This simpler change is to call the decision handler in the implemention of WKNavigateDelegate method webView:decidePolicyForNavigationResponse:decisionHandler: asynchronously on iOS 11 and up. iOS 10 (and possible below) has a bug where JavaScript on the page would not execute if the decision handler is called asynchronously. This change is to make sure that there are no other unforeseen issues with calling decision handler asynchronously on iOS 11. Bug: 774736 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: I7a6dfe637cb6be4ce5c7efe5824728b8f06b902a Reviewed-on: https://chromium-review.googlesource.com/773570 Commit-Queue: Peter Lee <pkl@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#517129}
Showing
Please register or sign in to comment