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

Issue 2509813006: HeadlessWebContents:Observer to observe render process exit status (Closed)

Created:
4 years, 1 month ago by alex clarke (OOO till 29th)
Modified:
4 years, 1 month ago
Reviewers:
Eric Seckler, altimin, Sami
CC:
chromium-reviews, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

HeadlessWebContents:Observer to observe render process exit status This means it's now possible to detect if the renderer crashes for some reason. BUG=546953 Committed: https://crrev.com/5777c83ead271a3866bd4aea8a9d8cae51aef2b0 Cr-Commit-Position: refs/heads/master@{#433231}

Patch Set 1 #

Patch Set 2 : Added a comment #

Total comments: 2

Patch Set 3 : Make it safe to call Shutdown() #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -6 lines) Patch
M headless/app/headless_shell.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M headless/lib/browser/headless_devtools_client_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_devtools_client_impl.cc View 1 2 4 chunks +12 lines, -1 line 2 comments Download
M headless/lib/browser/headless_web_contents_impl.h View 4 chunks +10 lines, -1 line 0 comments Download
M headless/lib/browser/headless_web_contents_impl.cc View 3 chunks +23 lines, -1 line 0 comments Download
M headless/lib/headless_devtools_client_browsertest.cc View 2 chunks +18 lines, -0 lines 0 comments Download
M headless/public/headless_web_contents.h View 2 chunks +11 lines, -0 lines 0 comments Download
M headless/test/headless_browser_test.h View 2 chunks +3 lines, -0 lines 0 comments Download
M headless/test/headless_browser_test.cc View 4 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
alex clarke (OOO till 29th)
4 years, 1 month ago (2016-11-18 14:24:13 UTC) #2
altimin
https://codereview.chromium.org/2509813006/diff/20001/headless/app/headless_shell.cc File headless/app/headless_shell.cc (right): https://codereview.chromium.org/2509813006/diff/20001/headless/app/headless_shell.cc#newcode168 headless/app/headless_shell.cc:168: web_contents_->RemoveObserver(this); Looks like we do not detail devtools observers ...
4 years, 1 month ago (2016-11-18 14:36:45 UTC) #3
alex clarke (OOO till 29th)
https://codereview.chromium.org/2509813006/diff/20001/headless/app/headless_shell.cc File headless/app/headless_shell.cc (right): https://codereview.chromium.org/2509813006/diff/20001/headless/app/headless_shell.cc#newcode168 headless/app/headless_shell.cc:168: web_contents_->RemoveObserver(this); On 2016/11/18 14:36:45, altimin wrote: > Looks like ...
4 years, 1 month ago (2016-11-18 14:59:38 UTC) #4
altimin
lgtm
4 years, 1 month ago (2016-11-18 16:58:53 UTC) #9
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/2509813006/40001
4 years, 1 month ago (2016-11-18 17:00:04 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-18 17:42:47 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/5777c83ead271a3866bd4aea8a9d8cae51aef2b0 Cr-Commit-Position: refs/heads/master@{#433231}
4 years, 1 month ago (2016-11-18 17:45:32 UTC) #14
Sami
https://codereview.chromium.org/2509813006/diff/40001/headless/lib/browser/headless_devtools_client_impl.cc File headless/lib/browser/headless_devtools_client_impl.cc (right): https://codereview.chromium.org/2509813006/diff/40001/headless/lib/browser/headless_devtools_client_impl.cc#newcode140 headless/lib/browser/headless_devtools_client_impl.cc:140: if (method == "Inspector.targetCrashed") { Shouldn't we still emit ...
4 years, 1 month ago (2016-11-18 18:37:22 UTC) #16
alex clarke (OOO till 29th)
4 years, 1 month ago (2016-11-21 10:44:01 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/2509813006/diff/40001/headless/lib/browser/he...
File headless/lib/browser/headless_devtools_client_impl.cc (right):

https://codereview.chromium.org/2509813006/diff/40001/headless/lib/browser/he...
headless/lib/browser/headless_devtools_client_impl.cc:140: if (method ==
"Inspector.targetCrashed") {
On 2016/11/18 18:37:22, Sami (slow -- traveling) wrote:
> Shouldn't we still emit this event in Headless Shell / chrome --headless?
> 
> Does the C++ notification give us something this event doesn't? I'm wondering
> whether we should instead extend this event to do what we need?

Hmm so we do actually have an inspector domain - I hadn't appreciated that. 
Suggests that this bit of code is a mistake.

The C++ API does give us the base::TerminationStatus and platform specific exit
code.  Those might be useful still.

Powered by Google App Engine
This is Rietveld 408576698