Improve page transition type heuristic in WebController
When guessing the tranistion type for a URL change: - When possible, use specific information from the last main frame load request. - Fall back to guessing based on whether there has been a touch since the last URL change, rather than the last document change. This prevents changes that happen after, e.g., a replaceState from being assumed to be user-initiated. BUG=548636 TEST=On an iPhone with WKWebView enabled, follow a link on yahoo.com, then go back via the browser back button. It should return to the main page. Review URL: https://codereview.chromium.org/1409033004 Cr-Commit-Position: refs/heads/master@{#357157}
Showing
Please register or sign in to comment