Commit 5df59811 authored by Eugene But's avatar Eugene But Committed by Commit Bot

Set SameDocument flag for navigation context inside URLDidChangeWithoutDocumentChange.

This is needed for browser-initiated same-document back-forward
navigations. When the context is created it is unknown that navigation
will be a same document navigation, so the flag should be updated
later.

Bug: 853063
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I93b4a7e2cfb9de56bd211d11298073fed28953ab
Reviewed-on: https://chromium-review.googlesource.com/1102116Reviewed-by: default avatarDanyao Wang <danyao@chromium.org>
Commit-Queue: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568082}
parent f4345313
...@@ -5367,7 +5367,7 @@ registerLoadRequestForURL:(const GURL&)requestURL ...@@ -5367,7 +5367,7 @@ registerLoadRequestForURL:(const GURL&)requestURL
navigationContext = navigationContext =
[self contextForPendingMainFrameNavigationWithURL:newURL]; [self contextForPendingMainFrameNavigationWithURL:newURL];
} }
DCHECK(navigationContext->IsSameDocument()); navigationContext->SetIsSameDocument(true);
_webStateImpl->OnNavigationStarted(navigationContext); _webStateImpl->OnNavigationStarted(navigationContext);
[self didStartLoading]; [self didStartLoading];
self.navigationManagerImpl->CommitPendingItem(); self.navigationManagerImpl->CommitPendingItem();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment