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

Issue 23866011: Fix a bug where killing pages doesn't yield a sad-tab (Closed)

Created:
7 years, 3 months ago by ccameron
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, erikwright+watch_chromium.org, native-client-reviews_googlegroups.com, darin-cc_chromium.org
Visibility:
Public.

Description

Fix a bug where killing pages doesn't yield a sad-tab The determination of whether or not to put up a sad tab page is made based on the termination status of the renderer process. The termination status of the renderer process is checked when the channel between the browser and the renderer stops working. There is a race here because there is no reason to believe that the renderer process has finished terminating at the time that the browser detects that its channel to the renderer is dead. If renderer process is believed to be still running at the moment when the decision to put up the sad tab page is taken, then no sad tab will be put up, the view of the renderer will be removed (eventually), and a transparent window will result. This bug was previously fixed on Linux with with https://chromiumcodereview.appspot.com/11316261 this patch expands that fix to Mac. In particular, if the renderer process is known to be dead, wait for the process to terminate before taking its termination status. To be sure that the browser does not wait forever on a renderer that is not exiting, send a kill signal to the renderer before doing the wait. BUG=167538 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223526

Patch Set 1 #

Patch Set 2 : Clean up whitespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -28 lines) Patch
M base/process/kill.h View 1 1 chunk +17 lines, -6 lines 0 comments Download
M base/process/kill_posix.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/nacl/nacl_helper_linux.cc View 1 1 chunk +3 lines, -10 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/zygote/zygote_linux.cc View 1 chunk +1 line, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ccameron
This is an expansion of https://chromiumcodereview.appspot.com/11316261 Adding thakis@ for base/ and chrome/ OWNER and Mac-ish-ness ...
7 years, 3 months ago (2013-09-16 22:36:57 UTC) #1
piman
lgtm
7 years, 3 months ago (2013-09-16 22:44:43 UTC) #2
agl
lgtm. I seems that this has the same race condition as the Linux change did: ...
7 years, 3 months ago (2013-09-16 23:10:10 UTC) #3
Nico
lgtm
7 years, 3 months ago (2013-09-16 23:26:55 UTC) #4
ccameron
Thanks!!
7 years, 3 months ago (2013-09-16 23:29:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/23866011/4001
7 years, 3 months ago (2013-09-16 23:30:45 UTC) #6
commit-bot: I haz the power
Change committed as 223526
7 years, 3 months ago (2013-09-17 03:50:24 UTC) #7
Avi (use Gerrit)
7 years, 3 months ago (2013-09-17 03:55:18 UTC) #8
Message was sent while issue was closed.
On 2013/09/17 03:50:24, I haz the power (commit-bot) wrote:
> Change committed as 223526

This has been freakin' driving me crazy; thanks!

Powered by Google App Engine
This is Rietveld 408576698