| Index: content/browser/frame_host/navigator_impl.cc
|
| diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
|
| index 6afb53557d27cc587d113398d3a48b0f2072e129..dadc2200b9570b55982921eddc380f2a8a612566 100644
|
| --- a/content/browser/frame_host/navigator_impl.cc
|
| +++ b/content/browser/frame_host/navigator_impl.cc
|
| @@ -227,7 +227,12 @@ void NavigatorImpl::DidFailProvisionalLoadWithError(
|
| // TODO(creis): Find a way to cancel any pending RFH here.
|
| }
|
|
|
| - DiscardPendingEntryOnFailureIfNeeded(render_frame_host->navigation_handle());
|
| + // Discard the pending navigation entry if needed.
|
| + // PlzNavigate: the entry has already been discarded in FailedNavigation.
|
| + if (!IsBrowserSideNavigationEnabled()) {
|
| + DiscardPendingEntryOnFailureIfNeeded(
|
| + render_frame_host->navigation_handle());
|
| + }
|
|
|
| if (delegate_)
|
| delegate_->DidFailProvisionalLoadWithError(render_frame_host, params);
|
|
|