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

Issue 2112593003: [DevTools] Remove [V8] from InspectorInstrumentation. (Closed)

Created:
4 years, 5 months ago by dgozman
Modified:
4 years, 5 months ago
Reviewers:
kozy, haraken
CC:
chromium-reviews, caseq+blink_chromium.org, kinuko+watch, tyoshino+watch_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, sergeyv+blink_chromium.org, Nate Chapin, loading-reviews_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 [V8] from InspectorInstrumentation. We issue a fine-grained runtimeEnabled/runtimeDiabled notification. Introduced a new setting forceMainWorldInitialization, which inspector uses to force contexts in all frames to be able to evaluate there. Moved scriptBlockedByCSP pause reason to DOMDebugger agent, similar to scriptFirstStatement. BUG=580337 Committed: https://crrev.com/c1e6c531c70657b519121ab6b626471a75448a9e Cr-Commit-Position: refs/heads/master@{#404588}

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : cleanup, moving csp event to dom debugger #

Total comments: 4

Patch Set 4 : proper domdebugger event #

Patch Set 5 : rebased, invalidating in SettinsDelegate #

Patch Set 6 : reverted default setting #

Patch Set 7 : migrated to inspector-protocol test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -238 lines) Patch
A third_party/WebKit/LayoutTests/inspector-protocol/debugger/domdebugger-script-blocked-by-csp.html View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/debugger/domdebugger-script-blocked-by-csp-expected.txt View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/debugger/resources/script-blocked-by-csp.js View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-on-blocked-event-handler.html View 1 2 3 4 5 6 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-on-blocked-event-handler-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-on-blocked-script-injection.html View 1 2 3 4 5 6 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-on-blocked-script-injection-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-on-blocked-script-url.html View 1 2 3 4 5 6 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-on-blocked-script-url-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/pause-on-blocked-by-csp.js View 1 2 3 4 5 6 1 chunk +0 lines, -19 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/pause-on-blocked-event-handler.js View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/pause-on-blocked-script-injection.js View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/pause-on-blocked-script-url.js View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/SettingsDelegate.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl View 1 2 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorSession.h View 1 3 chunks +2 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorSession.cpp View 1 2 3 4 4 chunks +9 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/Page.cpp View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/NullExecutionContext.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkletGlobalScope.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkletGlobalScope.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.h View 1 2 3 3 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp View 1 2 3 3 chunks +0 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp View 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/js_protocol.json View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8InspectorSession.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8InspectorSessionClient.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 3 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2112593003/1
4 years, 5 months ago (2016-06-30 01:28:48 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/184257) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years, 5 months ago (2016-06-30 01:32:03 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2112593003/20001
4 years, 5 months ago (2016-06-30 17:57:58 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/253347)
4 years, 5 months ago (2016-06-30 19:31:05 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2112593003/40001
4 years, 5 months ago (2016-06-30 21:04:03 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 22:26:43 UTC) #12
dgozman
Could you please take a look? haraken - at bindings, core. kozyatinskiy - at devtools, ...
4 years, 5 months ago (2016-07-01 00:24:06 UTC) #14
haraken
https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp#newcode287 third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp:287: if (!forceMainWorldInitialization && !m_windowProxyManager->mainWorldProxy()->isGlobalInitialized()) Hmm, it looks a bit ...
4 years, 5 months ago (2016-07-01 02:28:04 UTC) #15
dgozman
https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp#newcode287 third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp:287: if (!forceMainWorldInitialization && !m_windowProxyManager->mainWorldProxy()->isGlobalInitialized()) On 2016/07/01 02:28:03, haraken wrote: ...
4 years, 5 months ago (2016-07-06 17:02:20 UTC) #16
kozy
https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp (right): https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp#newcode641 third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp:641: m_v8Session->breakProgramOnException(protocol::Debugger::Paused::ReasonEnum::CSPViolation, std::move(directive)); Let's move it to "DOMDebugger way" instead ...
4 years, 5 months ago (2016-07-06 19:38:22 UTC) #17
dgozman
Please take another look. https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp (right): https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp#newcode641 third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp:641: m_v8Session->breakProgramOnException(protocol::Debugger::Paused::ReasonEnum::CSPViolation, std::move(directive)); On 2016/07/06 19:38:22, ...
4 years, 5 months ago (2016-07-06 22:52:33 UTC) #18
haraken
On 2016/07/06 17:02:20, dgozman wrote: > https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp > File third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp (right): > > https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp#newcode287 > ...
4 years, 5 months ago (2016-07-07 00:43:32 UTC) #20
dgozman
On 2016/07/07 00:43:32, haraken wrote: > On 2016/07/06 17:02:20, dgozman wrote: > > > https://codereview.chromium.org/2112593003/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp ...
4 years, 5 months ago (2016-07-07 00:47:23 UTC) #21
kozy
thanks, lgtm
4 years, 5 months ago (2016-07-07 00:48:06 UTC) #22
haraken
On 2016/07/07 00:47:23, dgozman wrote: > On 2016/07/07 00:43:32, haraken wrote: > > On 2016/07/06 ...
4 years, 5 months ago (2016-07-07 00:51:43 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2112593003/80001
4 years, 5 months ago (2016-07-08 00:41:39 UTC) #25
dgozman
@haraken: please take another look.
4 years, 5 months ago (2016-07-08 00:45:26 UTC) #26
haraken
Thanks, LGTM
4 years, 5 months ago (2016-07-08 00:47:44 UTC) #27
commit-bot: I haz the power
Dry run: 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/258969)
4 years, 5 months ago (2016-07-08 02:12:51 UTC) #29
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/2112593003/100001
4 years, 5 months ago (2016-07-09 00:22:27 UTC) #32
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/2112593003/120001
4 years, 5 months ago (2016-07-10 05:09:21 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-11 01:16:52 UTC) #38
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 01:16:56 UTC) #39
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 01:19:31 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c1e6c531c70657b519121ab6b626471a75448a9e
Cr-Commit-Position: refs/heads/master@{#404588}

Powered by Google App Engine
This is Rietveld 408576698