[iOS] Fix document URL for multiple navigations
This CL fixes which URL is used to set the document URL. The previous implementation was using the WebView URL. Some times this is not the same as the URL of the navigation. For example on the following workflow: 1. Start a navigation to about://newtab 2. Once the navigation1 reach DidStartNavigation, start a navigation to another page (e.g. http://example.com). 3. The URL of WebView is updated to http://example.com 4. The provisional navigation to http://example is starting 5. The navigaation1 (to about://newtab) is committed. At step 5, the documentURL should be the URL of the committed navigation (i.e. about://newtab), but the URL of the WebView is http://example.com. Fixed: 1127025 Change-Id: Icc271b87c1877bf005ee4454c863126aacb81127 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2418856 Commit-Queue: Gauthier Ambard <gambard@chromium.org> Reviewed-by:Justin Cohen <justincohen@chromium.org> Reviewed-by:
Eugene But <eugenebut@chromium.org> Reviewed-by:
Ali Juma <ajuma@chromium.org> Cr-Commit-Position: refs/heads/master@{#814124}
Showing
Please register or sign in to comment