| 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 546b119998156517090926bdd6a008662d2bfe13..009e0135243ed374c3a305ac46e12974b993e5bc 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);
|
|
|