DescriptionImprove 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.
Committed: https://crrev.com/b86705bd3233afdc06ed9079b6f434e7f8180376
Cr-Commit-Position: refs/heads/master@{#357157}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add setDocumentURL: #Patch Set 3 : Rebase #Messages
Total messages: 15 (6 generated)
|