[Nav Experiment] Fix forward navigation after restore.
Navigation entries restored from a previously saved session are inserted as restore_session.html?targetUrl=<target> URLs. The onload handler redirects the page to the target URL when loaded. It turns out that WKWebView does not fire onload handler in back/forward navigation from an about:blank URL redirected from restore_session.html to another restore_session.html. Most likely it's because WkWebView consiters this a same-page navigation. This causes forward navigationt from a restored app-specific URL to not load the web content. This CL fixes it by forcing a reload in the WKWebView in this case. Bug: 814790 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: Ie6e7ada39388cedd7357a582308f0edc1397ef63 Reviewed-on: https://chromium-review.googlesource.com/974365Reviewed-by:Eugene But <eugenebut@chromium.org> Commit-Queue: Danyao Wang <danyao@chromium.org> Cr-Commit-Position: refs/heads/master@{#545166}
Showing
Please register or sign in to comment