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

Issue 1650283002: DevTools: remove DOM and Bindings dependencies from inspector/v8. (Closed)

Created:
4 years, 10 months ago by pfeldman
Modified:
4 years, 10 months ago
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, sergeyv+blink_chromium.org, 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: remove DOM and Bindings dependencies from inspector/v8. BUG=580337 Committed: https://crrev.com/c538f43951cc347d629abd5f17291cec9d6bbcf8 Cr-Commit-Position: refs/heads/master@{#372578}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : for landing #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -535 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 5 chunks +6 lines, -4 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/AsyncCallChain.h View 1 1 chunk +0 lines, -47 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/AsyncCallChain.cpp View 1 1 chunk +0 lines, -42 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/PromiseTracker.h View 1 2 1 chunk +0 lines, -84 lines 0 comments Download
D third_party/WebKit/Source/core/inspector/PromiseTracker.cpp View 1 2 1 chunk +0 lines, -190 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ThreadDebugger.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp View 1 2 2 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/injected_script_externs.js View 1 2 1 chunk +1 line, -7 lines 0 comments Download
A + third_party/WebKit/Source/core/inspector/v8/AsyncCallChain.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/core/inspector/v8/AsyncCallChain.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/DEPS View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/InjectedScript.cpp View 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/InjectedScriptHost.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/InjectedScriptHost.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/InjectedScriptManager.cpp View 1 2 4 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/JavaScriptCallFrame.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/JavaScriptCallFrame.cpp View 11 chunks +15 lines, -14 lines 0 comments Download
A + third_party/WebKit/Source/core/inspector/v8/PromiseTracker.h View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/core/inspector/v8/PromiseTracker.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8AsyncCallTracker.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8DebuggerAgentImpl.cpp View 1 2 5 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8DebuggerClient.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8DebuggerImpl.cpp View 1 2 20 chunks +34 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8FunctionCall.cpp View 2 chunks +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8InjectedScriptHost.h View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8InjectedScriptHost.cpp View 1 2 18 chunks +68 lines, -67 lines 1 comment Download
M third_party/WebKit/Source/core/inspector/v8/V8JavaScriptCallFrame.cpp View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8ProfilerAgentImpl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8ProfilerAgentImpl.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgent.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/inspector/v8/V8StringUtil.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/inspector/v8/V8StringUtil.cpp View 1 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
pfeldman
4 years, 10 months ago (2016-01-29 23:08:07 UTC) #2
dgozman
We'll have to do something with HTMLAllCollection and Node in InjectedScriptSource. V8StringUtils.{h,cpp} are missing. https://codereview.chromium.org/1650283002/diff/1/third_party/WebKit/Source/core/inspector/v8/V8DebuggerImpl.cpp ...
4 years, 10 months ago (2016-01-29 23:29:37 UTC) #3
pfeldman
PTAL https://codereview.chromium.org/1650283002/diff/1/third_party/WebKit/Source/core/inspector/v8/V8DebuggerImpl.cpp File third_party/WebKit/Source/core/inspector/v8/V8DebuggerImpl.cpp (left): https://codereview.chromium.org/1650283002/diff/1/third_party/WebKit/Source/core/inspector/v8/V8DebuggerImpl.cpp#oldcode768 third_party/WebKit/Source/core/inspector/v8/V8DebuggerImpl.cpp:768: return m_isolate->ThrowException(v8::String::NewFromUtf8(m_isolate, "Debugging is not enabled.", v8::NewStringType::kNormal).ToLocalChecked()); On ...
4 years, 10 months ago (2016-01-30 02:44:01 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1650283002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1650283002/40001
4 years, 10 months ago (2016-01-30 06:59:52 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-30 08:25:30 UTC) #8
pfeldman
4 years, 10 months ago (2016-01-30 15:28:20 UTC) #10
dgozman
lgtm https://codereview.chromium.org/1650283002/diff/40001/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js File third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js (right): https://codereview.chromium.org/1650283002/diff/40001/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js#newcode1697 third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js:1697: return !!node && InjectedScriptHost.subtype(node) === "node" && (node.nodeType ...
4 years, 10 months ago (2016-01-30 16:36:39 UTC) #13
pfeldman
https://codereview.chromium.org/1650283002/diff/40001/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js File third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js (right): https://codereview.chromium.org/1650283002/diff/40001/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js#newcode1697 third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js:1697: return !!node && InjectedScriptHost.subtype(node) === "node" && (node.nodeType === ...
4 years, 10 months ago (2016-01-31 16:04:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1650283002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1650283002/60001
4 years, 10 months ago (2016-01-31 16:10:39 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-01-31 17:20:51 UTC) #19
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/c538f43951cc347d629abd5f17291cec9d6bbcf8 Cr-Commit-Position: refs/heads/master@{#372578}
4 years, 10 months ago (2016-01-31 17:22:06 UTC) #21
dgozman
4 years, 10 months ago (2016-02-01 17:06:24 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/1650283002/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/inspector/v8/V8InjectedScriptHost.cpp
(right):

https://codereview.chromium.org/1650283002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/inspector/v8/V8InjectedScriptHost.cpp:59: if
(!info[0]->IsInt32() && !isolate->IsExecutionTerminating()) {
I still think that during execution termination As<v8::Int32> may return null
which will be dereferenced.

Powered by Google App Engine
This is Rietveld 408576698