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

Issue 20191003: Route JS Error Info From Blink to Chrome (Closed)

Created:
7 years, 5 months ago by Devlin
Modified:
7 years, 3 months ago
CC:
blink-reviews, jamesr, caseq+blink_chromium.org, Nate Chapin, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, abarth-chromium, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, do-not-use, Yoyo Zhou
Base URL:
https://chromium.googlesource.com/chromium/blink@gclient
Visibility:
Public.

Description

This extends the amount of information passed from Blink to Chrome in the case of a runtime JS error. The extra information is attached to the existing message, and is in the form of a JSON-stringified representation of a ConsoleMessage object, as specified in Source/devtools/protocol.json. Design Doc: https://docs.google.com/a/chromium.org/document/d/1moGXfxo6BbulkoCWISlKq2aQR_buVYGeGhDj6_bqMXk/edit#heading=h.rh6wl5ot0k8n

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Adam's requests #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -55 lines) Patch
M Source/core/inspector/ConsoleMessage.h View 3 chunks +7 lines, -3 lines 0 comments Download
M Source/core/inspector/ConsoleMessage.cpp View 1 10 chunks +29 lines, -11 lines 0 comments Download
M Source/core/inspector/InspectorAgent.h View 1 1 chunk +5 lines, -0 lines 1 comment Download
M Source/core/inspector/InspectorConsoleAgent.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorConsoleAgent.cpp View 1 3 chunks +11 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.cpp View 1 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 1 chunk +5 lines, -8 lines 0 comments Download
M Source/core/loader/EmptyClients.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/page/ChromeClient.h View 1 chunk +3 lines, -6 lines 1 comment Download
M Source/core/page/Console.cpp View 1 3 chunks +12 lines, -5 lines 0 comments Download
M Source/core/page/PageConsole.cpp View 1 3 chunks +21 lines, -7 lines 0 comments Download
M Source/devtools/protocol.json View 1 chunk +1 line, -0 lines 1 comment Download
M Source/web/ChromeClientImpl.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 chunk +13 lines, -6 lines 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M public/testing/WebTestProxy.h View 1 chunk +2 lines, -2 lines 0 comments Download
M public/web/WebViewClient.h View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Devlin
Adam, could you take a look at this? I think this addresses the concerns you ...
7 years, 5 months ago (2013-07-24 23:48:22 UTC) #1
abarth-chromium
This looks to be on a much better track. Thank you for reconsidering the design. ...
7 years, 5 months ago (2013-07-24 23:59:09 UTC) #2
Devlin
https://codereview.chromium.org/20191003/diff/2001/Source/core/inspector/ConsoleMessage.cpp File Source/core/inspector/ConsoleMessage.cpp (right): https://codereview.chromium.org/20191003/diff/2001/Source/core/inspector/ConsoleMessage.cpp#newcode54 Source/core/inspector/ConsoleMessage.cpp:54: , m_executionContextURL() On 2013/07/24 23:59:09, abarth wrote: > There's ...
7 years, 5 months ago (2013-07-25 00:10:45 UTC) #3
Devlin
https://codereview.chromium.org/20191003/diff/2001/Source/core/inspector/InspectorConsoleAgent.h File Source/core/inspector/InspectorConsoleAgent.h (right): https://codereview.chromium.org/20191003/diff/2001/Source/core/inspector/InspectorConsoleAgent.h#newcode78 Source/core/inspector/InspectorConsoleAgent.h:78: void addMessageToConsole(PassOwnPtr<ConsoleMessage>, bool checkFrontend = false); On 2013/07/24 23:59:09, ...
7 years, 5 months ago (2013-07-25 01:46:00 UTC) #4
yurys
https://codereview.chromium.org/20191003/diff/10001/Source/core/inspector/InspectorAgent.h File Source/core/inspector/InspectorAgent.h (right): https://codereview.chromium.org/20191003/diff/10001/Source/core/inspector/InspectorAgent.h#newcode64 Source/core/inspector/InspectorAgent.h:64: enum CheckFrontendBehavior { InspectorBaseAgent.h would be a better place ...
7 years, 5 months ago (2013-07-26 09:17:21 UTC) #5
pfeldman
not lgtm while we clearing the product side of things in a bug. What are ...
7 years, 5 months ago (2013-07-26 11:46:26 UTC) #6
Devlin
On 2013/07/26 11:46:26, pfeldman wrote: > What are you doing with that information? Our goal ...
7 years, 5 months ago (2013-07-26 18:32:24 UTC) #7
Matt Perry
On 2013/07/26 18:32:24, D Cronin wrote: > On 2013/07/26 11:46:26, pfeldman wrote: > > What ...
7 years, 5 months ago (2013-07-26 18:42:33 UTC) #8
pfeldman
Looking and commenting on the docs, thanks. > I don't expect a huge amount of ...
7 years, 4 months ago (2013-07-29 15:24:35 UTC) #9
Devlin
On 2013/07/29 15:24:35, pfeldman wrote: > Looking and commenting on the docs, thanks. Replied in-doc ...
7 years, 4 months ago (2013-07-29 18:08:55 UTC) #10
Devlin
On 2013/07/29 18:08:55, D Cronin wrote: > On 2013/07/29 15:24:35, pfeldman wrote: > > Looking ...
7 years, 4 months ago (2013-08-01 17:00:20 UTC) #11
Devlin
7 years, 4 months ago (2013-08-06 23:01:25 UTC) #12
On 2013/07/29 15:24:35, pfeldman wrote:
> Looking and commenting on the docs, thanks.
> 
> > I don't expect a huge amount of errors from extension pages. Content scripts
> > might be a different story, in which case we can certainly limit the number
of
> > those we keep. But the main goal of this is to do passive collection - so a
> > developer doesn't have to enable the inspector first in order to see past
> > errors.
> 
> You don't need to enable the inspector first to see past errors. You don't get
> their stack traces though. That's what we do for regular pages. It is just
that
> I don't think that we need to provide more information on the extensions than
we
> do on regular pages in this area.

Ping?  Still need some input on this (and/or the design doc).

Powered by Google App Engine
This is Rietveld 408576698