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

Issue 2058133002: Fix DevTools support of worklets (Closed)

Created:
4 years, 6 months ago by Gleb Lanbin
Modified:
4 years, 5 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

The testing is done by verifying the inspector behavior in content_shell/Chrome. Dedicated worklet's inspector tests will be provided in another CL. BUG=567358 TEST=None Committed: https://crrev.com/4d2c605c2b105b2b52d6090d2f8610eaaf839746 Cr-Commit-Position: refs/heads/master@{#402873}

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix #

Total comments: 3

Patch Set 3 : worklet can access itself #

Patch Set 4 : get domWindow from worklet's scope #

Patch Set 5 : fallback to toDOMWindow(calling) if callingWorkletScope->frame() is null #

Total comments: 5

Patch Set 6 : move callingContextCanAccessContext to BindingSecurity #

Total comments: 2

Patch Set 7 : move frame extraction logic to BindingSecurity #

Total comments: 2

Patch Set 8 : moved MainThreadDebugger::callingContextCanAccessContext's logic to BindingSecurity #

Total comments: 6

Patch Set 9 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -16 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/BindingSecurity.cpp View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -10 lines 0 comments Download

Messages

Total messages: 43 (16 generated)
Gleb Lanbin
4 years, 6 months ago (2016-06-10 17:14:37 UTC) #4
dgozman
https://codereview.chromium.org/2058133002/diff/20001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/20001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode191 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:191: // Similar to WorkerThreadDebugger::callingContextCanAccessContext(http://crrev.com/1638563002). We can return |true| in ...
4 years, 6 months ago (2016-06-13 13:14:06 UTC) #5
dgozman
https://codereview.chromium.org/2058133002/diff/40001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/40001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode200 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:200: if (globalScope) { This code only runs if |target| ...
4 years, 6 months ago (2016-06-24 22:03:16 UTC) #6
Gleb Lanbin
https://codereview.chromium.org/2058133002/diff/40001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/40001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode200 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:200: if (globalScope) { On 2016/06/24 22:03:15, dgozman wrote: > ...
4 years, 6 months ago (2016-06-25 00:17:26 UTC) #7
Gleb Lanbin
4 years, 5 months ago (2016-06-27 19:36:27 UTC) #13
dgozman
https://codereview.chromium.org/2058133002/diff/40001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/40001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode200 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:200: if (globalScope) { On 2016/06/25 00:17:26, glebl wrote: > ...
4 years, 5 months ago (2016-06-27 21:16:41 UTC) #14
Gleb Lanbin
PTAL
4 years, 5 months ago (2016-06-27 22:27:57 UTC) #15
dgozman
@yukishiino: could you please take a look? Should we move this code to BindingSecurity? https://codereview.chromium.org/2058133002/diff/160001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp ...
4 years, 5 months ago (2016-06-27 23:12:33 UTC) #18
dgozman
https://codereview.chromium.org/2058133002/diff/160001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/160001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode199 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:199: if (callingExecutionContext->isMainThreadWorkletGlobalScope()) { This looks pretty good. However, adding ...
4 years, 5 months ago (2016-06-27 23:13:38 UTC) #19
Yuki
https://codereview.chromium.org/2058133002/diff/160001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/160001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode195 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:195: if (executionContext->isMainThreadWorkletGlobalScope()) { On 2016/06/27 23:12:33, dgozman wrote: > ...
4 years, 5 months ago (2016-06-28 04:38:53 UTC) #20
Gleb Lanbin
https://codereview.chromium.org/2058133002/diff/160001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/160001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode195 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:195: if (executionContext->isMainThreadWorkletGlobalScope()) { On 2016/06/28 04:38:53, Yuki wrote: > ...
4 years, 5 months ago (2016-06-28 17:58:33 UTC) #21
dgozman
https://codereview.chromium.org/2058133002/diff/180001/third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h File third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h (left): https://codereview.chromium.org/2058133002/diff/180001/third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h#oldcode28 third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h:28: virtual bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) = 0; Sorry, ...
4 years, 5 months ago (2016-06-28 18:31:14 UTC) #23
Gleb Lanbin
https://codereview.chromium.org/2058133002/diff/180001/third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h File third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h (left): https://codereview.chromium.org/2058133002/diff/180001/third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h#oldcode28 third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h:28: virtual bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) = 0; On ...
4 years, 5 months ago (2016-06-28 19:17:11 UTC) #24
dgozman
@yukishiino: could you please take a look? https://codereview.chromium.org/2058133002/diff/200001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/200001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode198 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:198: if (targetExecutionContext->isMainThreadWorkletGlobalScope()) ...
4 years, 5 months ago (2016-06-28 19:21:00 UTC) #25
Gleb Lanbin
https://codereview.chromium.org/2058133002/diff/200001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/200001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode198 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:198: if (targetExecutionContext->isMainThreadWorkletGlobalScope()) On 2016/06/28 19:21:00, dgozman wrote: > I'd ...
4 years, 5 months ago (2016-06-28 19:51:38 UTC) #26
haraken
https://codereview.chromium.org/2058133002/diff/220001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): https://codereview.chromium.org/2058133002/diff/220001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode190 third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp:190: bool MainThreadDebugger::callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) Not directly related to ...
4 years, 5 months ago (2016-06-29 00:23:36 UTC) #28
Yuki
LGTM on my side with nits. https://codereview.chromium.org/2058133002/diff/220001/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h File third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h (right): https://codereview.chromium.org/2058133002/diff/220001/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h#newcode35 third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h:35: #include "core/dom/ExecutionContext.h" Could ...
4 years, 5 months ago (2016-06-29 00:30:37 UTC) #29
haraken
This CL LGTM, though I want to address the calling context issue in a follow ...
4 years, 5 months ago (2016-06-29 00:34:05 UTC) #30
dgozman
On 2016/06/29 00:23:36, haraken wrote: > https://codereview.chromium.org/2058133002/diff/220001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp > File third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp (right): > > https://codereview.chromium.org/2058133002/diff/220001/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp#newcode190 > ...
4 years, 5 months ago (2016-06-29 00:45:30 UTC) #31
dgozman
inspector lgtm
4 years, 5 months ago (2016-06-29 00:47:57 UTC) #32
Gleb Lanbin
thanks for the review. https://codereview.chromium.org/2058133002/diff/220001/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h File third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h (right): https://codereview.chromium.org/2058133002/diff/220001/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h#newcode35 third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h:35: #include "core/dom/ExecutionContext.h" On 2016/06/29 00:30:37, ...
4 years, 5 months ago (2016-06-29 17:07:13 UTC) #33
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/2058133002/240001
4 years, 5 months ago (2016-06-29 17:08:16 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years, 5 months ago (2016-06-29 18:26:12 UTC) #38
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 18:26:21 UTC) #39
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/4d2c605c2b105b2b52d6090d2f8610eaaf839746 Cr-Commit-Position: refs/heads/master@{#402873}
4 years, 5 months ago (2016-06-29 18:27:33 UTC) #41
Primiano Tucci (use gerrit)
Friendly sheriff passing by this cl in the middle of a bisect: for next CLs ...
4 years, 5 months ago (2016-07-01 08:58:26 UTC) #42
Gleb Lanbin
4 years, 5 months ago (2016-07-01 14:15:55 UTC) #43
Message was sent while issue was closed.
On 2016/07/01 08:58:26, Primiano Tucci wrote:
> Friendly sheriff passing by this cl in the middle of a bisect:
> for next CLs please repeat the CL title ("Fix DevTools support of worklets" in
> this case) as the first line of the commit message.
> This CL shows in git log as:
> "The testing is done by verifying the inspector behavior ...", which doesn't
> help too much :)
> 
> See
>
https://www.chromium.org/developers/contributing-code#TOC-Writing-change-list...
> for more details

ack. Unfortunately a bit more detailed CL description was lost somewhere in
between multiple revisions of this CL. Also I was under impression that subject
would be included in git log message.
Thanks for the link.

Powered by Google App Engine
This is Rietveld 408576698