Description[ios] Correctly determine last seen WKNavigation object.
When double tapping on Forward navigation button the following happens:
- loadRequest: is called for the first Forward Tap (WKNavigation #1)
- loadRequest: is called for the second Forward Tap (WKNavigation #2)
- didStartProvisionalNavigation: is called for WKNavigation #1
- didFailProvisionalNavigation: is called for WKNavigation #1
CRWWebController used to record WKNavigation #1 as latest navigation
in didStartProvisionalNavigation: overriding WKNavigation #2.
Later inside didFailProvisionalNavigation: CRWWebController cancelled
the load because WKNavigation #1 was determined as latest.
This CL replaces _latestWKNavigation object with CRWWKNavigationStates
object which allows better tracking of latest WKNavigation object.
BUG=677327
Committed: https://crrev.com/5f16753d7bb612d6afb2e290df9299a34a01a696
Cr-Commit-Position: refs/heads/master@{#441287}
Patch Set 1 #Patch Set 2 : Added missing files #Patch Set 3 : Self review #
Total comments: 1
Patch Set 4 : Fixed compilation #Patch Set 5 : Do not DCHECK on multiple redirects #
Total comments: 6
Patch Set 6 : Addressed review comments. #
Total comments: 4
Patch Set 7 : Addressed more comments #
Messages
Total messages: 29 (21 generated)
|