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

Issue 1917733002: [DevTools] Move part of CommandLineAPI to native (Closed)

Created:
4 years, 8 months ago by kozy
Modified:
4 years, 8 months ago
Reviewers:
dgozman, 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, kinuko+watch, 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] Move part of CommandLineAPI to native - ScopeExtension is stored by v8::Private instead v8::Symbol; - part of CommandLineAPI methods are moved to native; The benefits are: - scopeExtension object can not be received in JS and stored somewhere; - console related methods (dir, dirxml, ...) can't be overridden; - removed InspectorConsoleAgent::clearAllMessages method; - removed one more InjectedScriptSource.js part; BUG=606055, 595206 R=dgozman@chromium.org Committed: https://crrev.com/2cab1fca0201ab6d6b059bb0057e63973ebbb3c4 Cr-Commit-Position: refs/heads/master@{#389628}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 14

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -379 lines) Patch
M third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api-expected.txt View 1 2 3 4 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-command-clear-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/PageConsoleAgent.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/PageConsoleAgent.cpp View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp View 1 2 3 4 5 chunks +29 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScriptHost.h View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScriptHost.cpp View 1 2 3 chunks +0 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js View 1 2 3 4 5 chunks +38 lines, -138 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8Console.h View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp View 1 2 3 4 chunks +183 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.h View 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp View 5 chunks +2 lines, -106 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.h View 2 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/injected_script_externs.js View 2 chunks +0 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8Debugger.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8RuntimeAgent.h View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (14 generated)
kozy
Dmitry, please take a look.
4 years, 8 months ago (2016-04-25 15:36:05 UTC) #5
dgozman
Looking good. https://codereview.chromium.org/1917733002/diff/40001/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp File third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp (right): https://codereview.chromium.org/1917733002/diff/40001/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp#newcode414 third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp:414: function.appendArgument(V8Console::createCommandLineAPI(m_context, m_injectedScript->context())); InspectedContext is enough to pass. ...
4 years, 8 months ago (2016-04-25 18:09:50 UTC) #6
kozy
All done. Please take a look. https://codereview.chromium.org/1917733002/diff/40001/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp File third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp (right): https://codereview.chromium.org/1917733002/diff/40001/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp#newcode414 third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp:414: function.appendArgument(V8Console::createCommandLineAPI(m_context, m_injectedScript->context())); On ...
4 years, 8 months ago (2016-04-25 19:31:07 UTC) #10
dgozman
https://codereview.chromium.org/1917733002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api-expected.txt File third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api-expected.txt (right): https://codereview.chromium.org/1917733002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api-expected.txt#newcode12 third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api-expected.txt:12: function profile(value) { [Command Line API] } [title] was ...
4 years, 8 months ago (2016-04-25 20:55:08 UTC) #11
kozy
Please take a look. All done. https://codereview.chromium.org/1917733002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api-expected.txt File third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api-expected.txt (right): https://codereview.chromium.org/1917733002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api-expected.txt#newcode12 third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api-expected.txt:12: function profile(value) { ...
4 years, 8 months ago (2016-04-25 21:33:59 UTC) #13
dgozman
lgtm
4 years, 8 months ago (2016-04-25 21:52:12 UTC) #14
kozy
Pavel, ptal, I need owner lgtm for third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
4 years, 8 months ago (2016-04-25 23:05:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917733002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917733002/130001
4 years, 8 months ago (2016-04-25 23:05:55 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/172929)
4 years, 8 months ago (2016-04-25 23:15:08 UTC) #20
pfeldman
lgtm
4 years, 8 months ago (2016-04-25 23:31:37 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917733002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917733002/130001
4 years, 8 months ago (2016-04-25 23:34:02 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:130001)
4 years, 8 months ago (2016-04-26 00:12:40 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 00:14:56 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2cab1fca0201ab6d6b059bb0057e63973ebbb3c4
Cr-Commit-Position: refs/heads/master@{#389628}

Powered by Google App Engine
This is Rietveld 408576698