commit | a5a8c6ecf4f93a9b0ba4975416e431af2a4b8827 | [log] [tgz] |
---|---|---|
author | Danyao Wang <danyao@chromium.org> | Mon Nov 27 23:51:34 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Nov 27 23:51:34 2017 |
tree | ddc7e8d4378406f2b38ea33caa5513a60fb74773 | |
parent | 2c6527c9da6a46ac90290c8d3e0b97465bf5d0ec [diff] |
[Nav Experiment] Restore session history after reenable web usage. The last use case of SetWebUsageEnabled(false) is to clear visited site data. It does so by removing the WKWebView due to a bug in WebKit (see crbug.com/557963). This breaks in WKBasedNavigationManager because it relies on WKWebView as the source of truth for session history. This CL fixes the issue by temporarily caching the session history in WebState and restoring it into the navigation manager when web usage is re-enabled. This fixes the LoadIfNecessaryTest.DisableAndReenableWebUsage test. Bug: 781916 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: I6f7db84504603e624f5befa66ccb41c10433dd69 Reviewed-on: https://chromium-review.googlesource.com/789791 Commit-Queue: Danyao Wang <danyao@chromium.org> Reviewed-by: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#519458}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .