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

Issue 18822004: Extension Error Piping - Blink: WebKit Side (Closed)

Created:
7 years, 5 months ago by Devlin
Modified:
7 years, 4 months ago
CC:
blink-reviews, jamesr, eae+blinkwatch, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

Pipe detailed information (including stack trace) about runtime JS errors caused by extensions from the WebKit side over to the Chrome side. Goes with: https://codereview.chromium.org/18799006/ See Also: https://docs.google.com/a/google.com/document/d/1moGXfxo6BbulkoCWISlKq2aQR_buVYGeGhDj6_bqMXk/edit BUG=21734 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156645

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Consolidate [did]AddMessageToConsole() and reportDetailedMessage() #

Total comments: 5

Patch Set 3 : Use v8 Contexts #

Total comments: 1

Patch Set 4 : #

Total comments: 3

Patch Set 5 : Pass in plain text, per Pavel's suggestion #

Total comments: 5

Patch Set 6 : Extracted Formatting #

Total comments: 9

Patch Set 7 : Pavel's comments addressed #

Patch Set 8 : #

Total comments: 5

Patch Set 9 : #

Total comments: 6

Patch Set 10 : Adams nits #

Patch Set 11 : Latest master for cq #

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -27 lines) Patch
M Source/core/loader/EmptyClients.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/page/ChromeClient.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -6 lines 0 comments Download
M Source/core/page/Console.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -6 lines 0 comments Download
M Source/core/page/PageConsole.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/PageConsole.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +24 lines, -3 lines 0 comments Download
M Source/web/ChromeClientImpl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -6 lines 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M public/testing/WebTestProxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M public/web/WebViewClient.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 40 (0 generated)
Devlin
Yoyo and Matt - Could you take a look at this, and let me know ...
7 years, 5 months ago (2013-07-10 22:24:21 UTC) #1
Matt Perry
This makes sense to me in general. I'm not a WebKit expert, so we'll have ...
7 years, 5 months ago (2013-07-10 23:32:06 UTC) #2
Devlin
I'm not quite sure what the differences between PageConsole and Console are. Best I can ...
7 years, 5 months ago (2013-07-11 01:15:44 UTC) #3
Matt Perry
https://codereview.chromium.org/18822004/diff/8001/Source/WebKit/chromium/src/ChromeClientImpl.h File Source/WebKit/chromium/src/ChromeClientImpl.h (right): https://codereview.chromium.org/18822004/diff/8001/Source/WebKit/chromium/src/ChromeClientImpl.h#newcode104 Source/WebKit/chromium/src/ChromeClientImpl.h:104: const WTF::String& jsonStackTrace); On 2013/07/11 01:15:44, D Cronin wrote: ...
7 years, 5 months ago (2013-07-11 02:40:46 UTC) #4
Devlin
On 2013/07/11 02:40:46, Matt Perry wrote: > https://codereview.chromium.org/18822004/diff/8001/Source/WebKit/chromium/src/ChromeClientImpl.h > File Source/WebKit/chromium/src/ChromeClientImpl.h (right): > > https://codereview.chromium.org/18822004/diff/8001/Source/WebKit/chromium/src/ChromeClientImpl.h#newcode104 ...
7 years, 5 months ago (2013-07-11 20:25:01 UTC) #5
Yoyo Zhou
+pfeldman for WebKit
7 years, 5 months ago (2013-07-12 18:44:37 UTC) #6
Matt Perry
lgtm
7 years, 5 months ago (2013-07-15 21:35:58 UTC) #7
pfeldman
https://codereview.chromium.org/18822004/diff/5733953138851840/Source/WebKit/chromium/src/ChromeClientImpl.cpp File Source/WebKit/chromium/src/ChromeClientImpl.cpp (right): https://codereview.chromium.org/18822004/diff/5733953138851840/Source/WebKit/chromium/src/ChromeClientImpl.cpp#newcode379 Source/WebKit/chromium/src/ChromeClientImpl.cpp:379: return m_webView->client() && m_webView->client()->shouldReportDetailedMessage(source); You should decide based on ...
7 years, 5 months ago (2013-07-17 09:09:37 UTC) #8
Devlin
Thanks for the review =) https://codereview.chromium.org/18822004/diff/5733953138851840/Source/WebKit/chromium/src/ChromeClientImpl.cpp File Source/WebKit/chromium/src/ChromeClientImpl.cpp (right): https://codereview.chromium.org/18822004/diff/5733953138851840/Source/WebKit/chromium/src/ChromeClientImpl.cpp#newcode379 Source/WebKit/chromium/src/ChromeClientImpl.cpp:379: return m_webView->client() && m_webView->client()->shouldReportDetailedMessage(source); ...
7 years, 5 months ago (2013-07-17 22:14:13 UTC) #9
Matt Perry
https://codereview.chromium.org/18822004/diff/5733953138851840/Source/core/page/PageConsole.cpp File Source/core/page/PageConsole.cpp (right): https://codereview.chromium.org/18822004/diff/5733953138851840/Source/core/page/PageConsole.cpp#newcode97 Source/core/page/PageConsole.cpp:97: stackTrace = callStack->buildInspectorArray()->toJSONString(); On 2013/07/17 09:09:38, pfeldman wrote: > ...
7 years, 5 months ago (2013-07-18 20:20:34 UTC) #10
abarth-chromium
https://codereview.chromium.org/18822004/diff/35001/Source/core/page/Chrome.cpp File Source/core/page/Chrome.cpp (right): https://codereview.chromium.org/18822004/diff/35001/Source/core/page/Chrome.cpp#newcode462 Source/core/page/Chrome.cpp:462: String Chrome::generateConsoleMessageDetails(size_t lineNumber, size_t columnNumber, const String& sourceURL, const ...
7 years, 5 months ago (2013-07-19 03:04:07 UTC) #11
abarth-chromium
I would like to understand better what you're trying to accomplish with this CL. I ...
7 years, 5 months ago (2013-07-19 03:12:17 UTC) #12
Devlin
On 2013/07/19 03:12:17, abarth wrote: > I would like to understand better what you're trying ...
7 years, 5 months ago (2013-07-19 16:27:55 UTC) #13
abarth-chromium
On 2013/07/19 16:27:55, D Cronin wrote: > If you have any other questions, feel free ...
7 years, 5 months ago (2013-07-19 18:29:20 UTC) #14
Devlin
On 2013/07/19 18:29:20, abarth wrote: > On 2013/07/19 16:27:55, D Cronin wrote: > > If ...
7 years, 5 months ago (2013-07-19 18:40:39 UTC) #15
pfeldman
You can attach to any page (that is not currently inspected) and query console state ...
7 years, 5 months ago (2013-07-19 18:45:40 UTC) #16
abarth-chromium
On 2013/07/19 18:40:39, D Cronin wrote: > Is this correct? That's possible, but maybe we ...
7 years, 5 months ago (2013-07-19 18:46:22 UTC) #17
Devlin
On 2013/07/19 18:46:22, abarth wrote: > I guess my point is that addressing your use ...
7 years, 5 months ago (2013-07-19 22:46:30 UTC) #18
abarth-chromium
It seems like we could reuse some of the inspector's mechanisms without booting up a ...
7 years, 5 months ago (2013-07-19 22:52:53 UTC) #19
pfeldman
https://chromiumcodereview.appspot.com/18822004/diff/35001/Source/core/page/Chrome.cpp File Source/core/page/Chrome.cpp (right): https://chromiumcodereview.appspot.com/18822004/diff/35001/Source/core/page/Chrome.cpp#newcode465 Source/core/page/Chrome.cpp:465: stackFrame->setNumber(kLineNumberKey, lineNumber); Why another format? You should either pass ...
7 years, 4 months ago (2013-08-07 13:30:21 UTC) #20
Devlin
On 2013/08/07 13:30:21, pfeldman wrote: > https://chromiumcodereview.appspot.com/18822004/diff/35001/Source/core/page/Chrome.cpp > File Source/core/page/Chrome.cpp (right): > > https://chromiumcodereview.appspot.com/18822004/diff/35001/Source/core/page/Chrome.cpp#newcode465 > ...
7 years, 4 months ago (2013-08-07 20:36:41 UTC) #21
pfeldman
> Just to confirm, by this you mean passing in a simple string which contains ...
7 years, 4 months ago (2013-08-07 21:12:35 UTC) #22
Devlin
On 2013/08/07 21:12:35, pfeldman wrote: > > Just to confirm, by this you mean passing ...
7 years, 4 months ago (2013-08-08 00:09:31 UTC) #23
pfeldman
https://codereview.chromium.org/18822004/diff/54001/Source/core/page/Console.cpp File Source/core/page/Console.cpp (right): https://codereview.chromium.org/18822004/diff/54001/Source/core/page/Console.cpp#newcode78 Source/core/page/Console.cpp:78: if (page->chrome().client()->shouldReportDetailedMessageForSource(callStack->at(0).sourceURL())) { Is it true that you are ...
7 years, 4 months ago (2013-08-08 17:13:51 UTC) #24
Devlin
https://codereview.chromium.org/18822004/diff/54001/Source/core/page/Console.cpp File Source/core/page/Console.cpp (right): https://codereview.chromium.org/18822004/diff/54001/Source/core/page/Console.cpp#newcode78 Source/core/page/Console.cpp:78: if (page->chrome().client()->shouldReportDetailedMessageForSource(callStack->at(0).sourceURL())) { On 2013/08/08 17:13:52, pfeldman wrote: > ...
7 years, 4 months ago (2013-08-12 16:09:40 UTC) #25
pfeldman
Please extract the formatter and it is good to go! https://codereview.chromium.org/18822004/diff/54001/Source/core/page/Console.cpp File Source/core/page/Console.cpp (right): https://codereview.chromium.org/18822004/diff/54001/Source/core/page/Console.cpp#newcode78 ...
7 years, 4 months ago (2013-08-12 16:15:34 UTC) #26
Devlin
https://codereview.chromium.org/18822004/diff/54001/Source/core/page/PageConsole.cpp File Source/core/page/PageConsole.cpp (right): https://codereview.chromium.org/18822004/diff/54001/Source/core/page/PageConsole.cpp#newcode97 Source/core/page/PageConsole.cpp:97: for (size_t i = 0; i < callStack->size(); ++i) ...
7 years, 4 months ago (2013-08-12 19:38:16 UTC) #27
pfeldman
https://codereview.chromium.org/18822004/diff/66001/Source/core/core.gypi File Source/core/core.gypi (right): https://codereview.chromium.org/18822004/diff/66001/Source/core/core.gypi#newcode1164 Source/core/core.gypi:1164: 'page/FormatConsolemessage.h', Broken letter case. https://codereview.chromium.org/18822004/diff/66001/Source/core/page/FormatConsoleMessage.cpp File Source/core/page/FormatConsoleMessage.cpp (right): https://codereview.chromium.org/18822004/diff/66001/Source/core/page/FormatConsoleMessage.cpp#newcode44 ...
7 years, 4 months ago (2013-08-14 09:53:00 UTC) #28
Devlin
https://codereview.chromium.org/18822004/diff/66001/Source/core/page/FormatConsoleMessage.cpp File Source/core/page/FormatConsoleMessage.cpp (right): https://codereview.chromium.org/18822004/diff/66001/Source/core/page/FormatConsoleMessage.cpp#newcode44 Source/core/page/FormatConsoleMessage.cpp:44: return message.find("\n at ") != WTF::notFound; On 2013/08/14 09:53:00, ...
7 years, 4 months ago (2013-08-14 17:00:39 UTC) #29
pfeldman
lgtm https://codereview.chromium.org/18822004/diff/79001/Source/core/page/ChromeClient.h File Source/core/page/ChromeClient.h (right): https://codereview.chromium.org/18822004/diff/79001/Source/core/page/ChromeClient.h#newcode128 Source/core/page/ChromeClient.h:128: virtual bool shouldReportDetailedMessageForSource(const String&) = 0; Parameter name ...
7 years, 4 months ago (2013-08-15 18:36:22 UTC) #30
Devlin
Adam, could you take another look, please? https://codereview.chromium.org/18822004/diff/79001/Source/core/page/ChromeClient.h File Source/core/page/ChromeClient.h (right): https://codereview.chromium.org/18822004/diff/79001/Source/core/page/ChromeClient.h#newcode128 Source/core/page/ChromeClient.h:128: virtual bool ...
7 years, 4 months ago (2013-08-15 18:44:05 UTC) #31
Devlin
abarth - friendly ping?
7 years, 4 months ago (2013-08-19 16:16:40 UTC) #32
abarth-chromium
LGTM modulo the nits below. Sorry for not seeing your earlier message. https://codereview.chromium.org/18822004/diff/85002/Source/core/page/PageConsole.cpp File Source/core/page/PageConsole.cpp ...
7 years, 4 months ago (2013-08-19 19:54:18 UTC) #33
Devlin
https://codereview.chromium.org/18822004/diff/85002/Source/core/page/PageConsole.cpp File Source/core/page/PageConsole.cpp (right): https://codereview.chromium.org/18822004/diff/85002/Source/core/page/PageConsole.cpp#newcode101 Source/core/page/PageConsole.cpp:101: // static On 2013/08/19 19:54:18, abarth wrote: > Please ...
7 years, 4 months ago (2013-08-19 20:24:57 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/18822004/101001
7 years, 4 months ago (2013-08-22 19:25:05 UTC) #35
commit-bot: I haz the power
Failed to apply patch for Source/core/page/PageConsole.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-22 19:25:18 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/18822004/73002
7 years, 4 months ago (2013-08-22 21:07:03 UTC) #37
commit-bot: I haz the power
Failed to apply patch for Source/core/page/PageConsole.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-22 21:07:14 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/18822004/118002
7 years, 4 months ago (2013-08-23 16:55:09 UTC) #39
commit-bot: I haz the power
7 years, 4 months ago (2013-08-23 18:04:42 UTC) #40
Message was sent while issue was closed.
Change committed as 156645

Powered by Google App Engine
This is Rietveld 408576698