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

Issue 848073002: Fix MojoApplicationHost assertion when navigating from RenderProcessGone. (Closed)

Created:
5 years, 11 months ago by Marshall
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, 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

Fix MojoApplicationHost assertion when navigating from RenderProcessGone. Termination of a renderer process results in a call to WebContentsObserver::RenderProcessGone. Navigating from RenderProcessGone using NavigationControllerImpl::Reload or LoadURL results in an assertion due to MojoApplicationHost::Init() being called again on an already initialized host. Reset |mojo_application_host_| in RenderProcessHostImpl::ProcessDied before calling ViewHostMsg_RenderProcessGone message handlers to avoid this problem. BUG=448435 Committed: https://crrev.com/101f015eb605098054517fdc98de1665a9bb1431 Cr-Commit-Position: refs/heads/master@{#314435}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 chunks +4 lines, -2 lines 2 comments Download

Messages

Total messages: 15 (4 generated)
Marshall
avi: Please review (or suggest a different reviewer if someone else would be better)
5 years, 11 months ago (2015-01-13 19:03:28 UTC) #2
Avi (use Gerrit)
If you're enough of a mojo type to know this is the right thing to ...
5 years, 11 months ago (2015-01-13 19:20:33 UTC) #3
Marshall
ben: Please review for the correctness of Mojo-related changes (or suggest an appropriate reviewer). Thanks! ...
5 years, 11 months ago (2015-01-13 19:36:42 UTC) #5
Ken Rockot(use gerrit already)
as a mojo-type, this lgtm
5 years, 10 months ago (2015-02-03 02:25:35 UTC) #6
Sam McNally
https://codereview.chromium.org/848073002/diff/20001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/848073002/diff/20001/content/browser/renderer_host/render_process_host_impl.cc#newcode2042 content/browser/renderer_host/render_process_host_impl.cc:2042: RenderProcessExited(this, status, exit_code)); Could RenderProcessExited or NOTIFICATION_RENDERER_PROCESS_CLOSED observers do ...
5 years, 10 months ago (2015-02-03 04:28:59 UTC) #8
Marshall
Thanks for the reviews! https://codereview.chromium.org/848073002/diff/20001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/848073002/diff/20001/content/browser/renderer_host/render_process_host_impl.cc#newcode2042 content/browser/renderer_host/render_process_host_impl.cc:2042: RenderProcessExited(this, status, exit_code)); On 2015/02/03 ...
5 years, 10 months ago (2015-02-03 19:48:25 UTC) #9
Sam McNally
lgtm
5 years, 10 months ago (2015-02-03 22:34:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848073002/20001
5 years, 10 months ago (2015-02-03 22:37:23 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-03 23:38:43 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/101f015eb605098054517fdc98de1665a9bb1431 Cr-Commit-Position: refs/heads/master@{#314435}
5 years, 10 months ago (2015-02-03 23:40:05 UTC) #14
Ken Rockot(use gerrit already)
5 years, 10 months ago (2015-02-06 20:41:37 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/866593004/ by rockot@chromium.org.

The reason for reverting is: Causing http://crbug.com/456224.

While 448435 is valid, it was not causing crashes like this. I am actively
investigating why this change is causing crashes, but we should revert in the
meantime.
.

Powered by Google App Engine
This is Rietveld 408576698