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

Issue 2040053003: Use GetDebuggedContext instead of GetCallingContext in v8_inspector (Closed)

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

Description

Use GetDebuggedContext instead of GetCallingContext in v8_inspector R=haraken@chromium.org BUG=

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp View 1 chunk +2 lines, -2 lines 2 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp View 1 chunk +4 lines, -2 lines 5 comments Download

Messages

Total messages: 16 (3 generated)
jochen (gone - plz use gerrit)
4 years, 6 months ago (2016-06-07 14:01:11 UTC) #1
haraken
LGTM https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp File third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp (right): https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp#newcode276 third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp:276: v8::Local<v8::Context> callingContext; callingContext => debuggerContext ? https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp File ...
4 years, 6 months ago (2016-06-07 14:07:30 UTC) #2
pfeldman
not lgtm. v8_inspector needs to be v8 5.0 backwards compatible until either it gets merged ...
4 years, 6 months ago (2016-06-07 14:32:29 UTC) #4
pfeldman
https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp File third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp (right): https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp#newcode78 third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp:78: if (!v8::Debug::GetDebuggedContext(isolate()).ToLocal(&callingContext)) We should not need calling context here ...
4 years, 6 months ago (2016-06-07 14:39:29 UTC) #5
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp File third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp (right): https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp#newcode78 third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp:78: if (!v8::Debug::GetDebuggedContext(isolate()).ToLocal(&callingContext)) On 2016/06/07 at 14:39:29, pfeldman wrote: > ...
4 years, 6 months ago (2016-06-07 14:52:13 UTC) #6
pfeldman
> so just delete this check? +dgozman, kozyatinskiy We used to have explicit contract for ...
4 years, 6 months ago (2016-06-07 15:27:10 UTC) #9
jochen (gone - plz use gerrit)
what about I float my API addition to node, and then we just change the ...
4 years, 6 months ago (2016-06-08 13:55:07 UTC) #10
kozy
https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp File third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp (right): https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp#newcode78 third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp:78: if (!v8::Debug::GetDebuggedContext(isolate()).ToLocal(&callingContext)) On 2016/06/07 14:52:13, jochen wrote: > On ...
4 years, 6 months ago (2016-06-08 19:28:23 UTC) #11
dgozman
https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp File third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp (right): https://codereview.chromium.org/2040053003/diff/1/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp#newcode277 third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp:277: if (!v8::Debug::GetDebuggedContext(m_context->isolate()).ToLocal(&callingContext)) Note that GetDebuggedContext says "while in debug ...
4 years, 6 months ago (2016-06-09 08:53:45 UTC) #12
jochen (gone - plz use gerrit)
well, the problem is that "calling context" is not what you think it does, e.g., ...
4 years, 6 months ago (2016-06-09 09:05:19 UTC) #13
pfeldman
> I assumed that we're always in the debug context here, at least that's what ...
4 years, 6 months ago (2016-06-09 19:01:51 UTC) #14
jochen (gone - plz use gerrit)
On 2016/06/09 at 19:01:51, pfeldman wrote: > > I assumed that we're always in the ...
4 years, 6 months ago (2016-06-09 19:28:25 UTC) #15
haraken
4 years, 5 months ago (2016-06-29 00:49:11 UTC) #16
On 2016/06/09 19:28:25, jochen wrote:
> On 2016/06/09 at 19:01:51, pfeldman wrote:
> > > I assumed that we're always in the debug context here, at least that's
what
> > > happened in the layout tests.
> > 
> > I now need to go back in time and remember what calling context means and
how
> we rely on it :( Should we sync up on/after Blnkon?
> 
> sgtm

What's the status of this one?

Should we introduce an API that looks up the current context skipping the
debugger context?

Powered by Google App Engine
This is Rietveld 408576698