[ios/web] Work around WKWebView WKBackForwardList mismatch with webView URL.
When quickly navigating back or forward, it's possible to trigger the following WebKit error: "[ProcessSwapping] WebPageProxy::suspendCurrentPageIfPossible: Not suspending current page for process pid XXXX because fromItem's URL does not match the page URL." When this happens, the WKBackForwardList gets out of sync with the webView, and currentItem.URL does not match webView.URL. This workaround takes the naive approach and looks to see if the next or previous WKBackForwardList item has the correct URL. Bug: 960326 Change-Id: I2b9d9355949fcc3978aef4f37584bb4aeade75a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1627703 Commit-Queue: Justin Cohen <justincohen@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Reviewed-by:
Ali Juma <ajuma@chromium.org> Reviewed-by:
Danyao Wang <danyao@chromium.org> Cr-Commit-Position: refs/heads/master@{#664071}
Showing
Please register or sign in to comment