DescriptionPlzNavigate: Fix crash when loading unreachable URL.
In RenderFrameImpl::OnFailedNavigation, when loading an unreachable
URL, the condition : ShouldDisplayErrorPageForFailedLoad(..) return true the
first time. But the auto_reload feature ask for navigating again some time
later multiple times. These times, ShouldDisplayErrorPageForFailedLoad(..)
returns false because auto_reload_in_flight_ is true and we don't want to
display the error page again.
Thus, putting here the Macro NOTREACHED() causes crashs for every
failed navigation.
I restored the behavior found in RenderFrameImpl::DidFailProvisionalLoad, which
is the non-PlzNavigate counterpart of this function and stop the navigation.
TEST=Try to navigate to an unexisting url (unreachableurl.com for instance)
and see if it crashs. Use --enable-browser-side-navigation.
R=clamy@chromium.org
BUG=
Committed: https://crrev.com/3c2d8ddde185e0290387df2e7abeb1175370dd29
Cr-Commit-Position: refs/heads/master@{#412807}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Addressed comments. #
Total comments: 2
Patch Set 3 : Addressed comments (2). #Messages
Total messages: 11 (2 generated)
|