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

Issue 2139543002: [DevTools] Report console API calls through Runtime. (Closed)

Created:
4 years, 5 months ago by dgozman
Modified:
4 years, 5 months ago
Reviewers:
kozy, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, sergeyv+blink_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Report console API calls through Runtime. Follow the scheme of Runtime.exceptionThrown, but also send a copy of the message (with a string representation of the first argument) via Console.messageAdded. This makes the change backwards-compatible. BUG=613882 Committed: https://crrev.com/fb90bf24d217da0937226ac058bae3f2a0d8e799 Cr-Commit-Position: refs/heads/master@{#405679}

Patch Set 1 #

Patch Set 2 : tests pass #

Total comments: 6

Patch Set 3 : rebased #

Total comments: 8

Patch Set 4 : fixed all comments #

Patch Set 5 : fixed one more test #

Patch Set 6 : send a copy of console api messages to Console domain #

Patch Set 7 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -363 lines) Patch
M content/renderer/render_view_browsertest.cc View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/console/console-deprecated-methods.html View 1 chunk +0 lines, -36 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/console/console-deprecated-methods-expected.txt View 1 chunk +0 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column.html View 1 chunk +0 lines, -41 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -43 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/console/console-timestamp.html View 1 chunk +0 lines, -36 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/console/console-timestamp-expected.txt View 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/debugger/step-over-caught-exception.html View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-api-repeated-in-console.html View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-api-repeated-in-console-expected.txt View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-deprecated-methods.html View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
A + third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-deprecated-methods-expected.txt View 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-line-and-column.html View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
A + third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-line-and-column-expected.txt View 1 2 3 4 5 3 chunks +2 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-log-doesnt-run-microtasks.html View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A + third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-timestamp.html View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-timestamp-expected.txt View 3 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/worker/worker-console.html View 1 2 3 4 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/worker/worker-console-expected.txt View 1 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-trace-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-trace-in-eval-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-in-console-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/MainThreadDebugger.h View 1 3 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp View 1 3 chunks +17 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ThreadDebugger.h View 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp View 1 2 3 3 chunks +17 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp View 1 3 chunks +12 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js View 2 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp View 1 2 3 4 5 6 5 chunks +54 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8ConsoleAgentImpl.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8ConsoleMessage.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8ConsoleMessage.cpp View 1 2 3 4 5 6 8 chunks +57 lines, -47 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/js_protocol.json View 1 2 3 4 5 6 2 chunks +14 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8Debugger.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8Inspector.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (19 generated)
dgozman
Take a look please.
4 years, 5 months ago (2016-07-13 00:37:26 UTC) #2
pfeldman
https://codereview.chromium.org/2139543002/diff/20001/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json File third_party/WebKit/Source/platform/v8_inspector/js_protocol.json (right): https://codereview.chromium.org/2139543002/diff/20001/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json#newcode334 third_party/WebKit/Source/platform/v8_inspector/js_protocol.json:334: "name": "consoleAPICall", consoleAPICalled
4 years, 5 months ago (2016-07-13 00:43:51 UTC) #3
pfeldman
https://codereview.chromium.org/2139543002/diff/20001/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp File third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp (left): https://codereview.chromium.org/2139543002/diff/20001/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp#oldcode1042 third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp:1042: const String16 defaultMessage = "Uncaught (in promise)"; Why do ...
4 years, 5 months ago (2016-07-13 00:48:43 UTC) #4
kozy
lgtm % nits https://codereview.chromium.org/2139543002/diff/40001/third_party/WebKit/LayoutTests/inspector-protocol/worker/worker-console.html File third_party/WebKit/LayoutTests/inspector-protocol/worker/worker-console.html (right): https://codereview.chromium.org/2139543002/diff/40001/third_party/WebKit/LayoutTests/inspector-protocol/worker/worker-console.html#newcode110 third_party/WebKit/LayoutTests/inspector-protocol/worker/worker-console.html:110: var message = payload.params.callArguments[0].value; Please rename ...
4 years, 5 months ago (2016-07-13 18:26:39 UTC) #5
kozy
https://codereview.chromium.org/2139543002/diff/40001/third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h File third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h (right): https://codereview.chromium.org/2139543002/diff/40001/third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h#newcode42 third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h:42: virtual void consoleAPIMessage(int contextGroupId, MessageLevel, const String16& message, const ...
4 years, 5 months ago (2016-07-13 18:48:49 UTC) #6
dgozman
PTAL https://codereview.chromium.org/2139543002/diff/20001/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp File third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp (left): https://codereview.chromium.org/2139543002/diff/20001/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp#oldcode1042 third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp:1042: const String16 defaultMessage = "Uncaught (in promise)"; On ...
4 years, 5 months ago (2016-07-13 21:08:08 UTC) #7
pfeldman
lgtm
4 years, 5 months ago (2016-07-13 21:19:46 UTC) #8
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/2139543002/60001
4 years, 5 months ago (2016-07-13 21:23:47 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/201092)
4 years, 5 months ago (2016-07-13 21:44:30 UTC) #13
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/2139543002/80001
4 years, 5 months ago (2016-07-13 21:51:41 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/262429)
4 years, 5 months ago (2016-07-13 23:20:31 UTC) #18
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/2139543002/100001
4 years, 5 months ago (2016-07-15 00:08:31 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/104432) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-15 00:13:09 UTC) #27
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/2139543002/120001
4 years, 5 months ago (2016-07-15 00:52:00 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-15 02:23:57 UTC) #33
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 02:24:04 UTC) #34
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 02:25:37 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/fb90bf24d217da0937226ac058bae3f2a0d8e799
Cr-Commit-Position: refs/heads/master@{#405679}

Powered by Google App Engine
This is Rietveld 408576698