[iOS] Check the last committed URL for showing the NTP

This CL checks the URL of the navigation context and the URL of the last
committed URL of the WebState to decide if the NTP should be shown or
not.
It allows us to fix an issue where the navigation was ended while having
a pending item. The URL of the navigation context is then set to the URL
of the pending it, preventing the NTP from being shown.

Bug: 917358
Change-Id: Ie01c5dea2003e0912dd9036db35d72d63aab19ad
Reviewed-on: https://chromium-review.googlesource.com/c/1396036
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#620361}
2 files changed