Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 2248013003: PlzNavigate: Fix crash when loading unreachable URL. (Closed)

Created:
4 years, 4 months ago by arthursonzogni
Modified:
4 years, 4 months ago
Reviewers:
clamy
CC:
chromium-reviews, nasko+codewatch_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: 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). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
arthursonzogni
clamy@ PTAL. Thanks.
4 years, 4 months ago (2016-08-16 15:08:25 UTC) #1
clamy
Thanks! https://codereview.chromium.org/2248013003/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2248013003/diff/1/content/renderer/render_frame_impl.cc#newcode4882 content/renderer/render_frame_impl.cc:4882: didStopLoading(); We should send the IPC directly, as ...
4 years, 4 months ago (2016-08-17 13:17:07 UTC) #2
arthursonzogni
https://codereview.chromium.org/2248013003/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2248013003/diff/1/content/renderer/render_frame_impl.cc#newcode4882 content/renderer/render_frame_impl.cc:4882: didStopLoading(); On 2016/08/17 13:17:06, clamy wrote: > We should ...
4 years, 4 months ago (2016-08-17 13:45:09 UTC) #3
clamy
https://codereview.chromium.org/2248013003/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2248013003/diff/20001/content/renderer/render_frame_impl.cc#newcode4884 content/renderer/render_frame_impl.cc:4884: Send(new FrameHostMsg_DidStopLoading(routing_id_)); We should only send the IPC if ...
4 years, 4 months ago (2016-08-17 14:27:13 UTC) #4
arthursonzogni
I think it is okay now. https://codereview.chromium.org/2248013003/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2248013003/diff/20001/content/renderer/render_frame_impl.cc#newcode4884 content/renderer/render_frame_impl.cc:4884: Send(new FrameHostMsg_DidStopLoading(routing_id_)); On ...
4 years, 4 months ago (2016-08-17 15:57:01 UTC) #5
clamy
Thanks! Lgtm.
4 years, 4 months ago (2016-08-18 12:15:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2248013003/40001
4 years, 4 months ago (2016-08-18 12:22:02 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-18 13:16:48 UTC) #9
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 13:18:21 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3c2d8ddde185e0290387df2e7abeb1175370dd29
Cr-Commit-Position: refs/heads/master@{#412807}

Powered by Google App Engine
This is Rietveld 408576698