Bug 37755

Summary: [v8] Web Inspector: implement JavaScriptCallFrame for v8
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, bweinstein, eric, joepeck, keishi, pfeldman, pmuellr, rik, timothy, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 37663    
Attachments:
Description Flags
patch
pfeldman: review+
patch pfeldman: review+

Yury Semikhatsky
Reported 2010-04-17 12:51:02 PDT
Provide JavaScriptCallFrame implementation that works for v8.
Attachments
patch (21.43 KB, patch)
2010-04-17 13:03 PDT, Yury Semikhatsky
pfeldman: review+
patch (30.50 KB, patch)
2010-04-19 00:36 PDT, Yury Semikhatsky
pfeldman: review+
Yury Semikhatsky
Comment 1 2010-04-17 13:03:21 PDT
Eric Seidel (no email)
Comment 2 2010-04-17 13:08:36 PDT
Adam Barth
Comment 3 2010-04-17 13:09:59 PDT
Comment on attachment 53608 [details] patch + v8::Persistent<v8::Context> m_debuggerContext Please use OwnHandle to avoid manual new/delete. + v8::Handle<v8::Value> callerFrame = m_callFrame->Get(v8String("caller")); Is this value writeable from JavaScript? Might we get confused about who the caller is?
Yury Semikhatsky
Comment 4 2010-04-19 00:36:41 PDT
Yury Semikhatsky
Comment 5 2010-04-19 00:43:46 PDT
(In reply to comment #3) > (From update of attachment 53608 [details]) > + v8::Persistent<v8::Context> m_debuggerContext > > Please use OwnHandle to avoid manual new/delete. > Done. Thanks for pointing that, I didn't know. > + v8::Handle<v8::Value> callerFrame = m_callFrame->Get(v8String("caller")); > > Is this value writeable from JavaScript? Might we get confused about who the > caller is? This field is set in the debugger context from DebuggerScript.js when the call stack is traversed and only accessed from JavaScriptCallFrame.cpp
Yury Semikhatsky
Comment 6 2010-04-19 10:03:45 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/WebCore.gyp/WebCore.gyp M WebCore/WebCore.gypi M WebCore/bindings/js/JSJavaScriptCallFrameCustom.cpp A WebCore/bindings/v8/JavaScriptCallFrame.cpp A WebCore/bindings/v8/JavaScriptCallFrame.h M WebCore/bindings/v8/ScriptDebugServer.cpp M WebCore/bindings/v8/ScriptDebugServer.h M WebCore/bindings/v8/custom/V8InjectedScriptHostCustom.cpp A WebCore/bindings/v8/custom/V8JavaScriptCallFrameCustom.cpp M WebCore/inspector/JavaScriptCallFrame.idl M WebCore/inspector/front-end/InjectedScript.js M WebKit/chromium/src/js/DebuggerScript.js Committed r57812
WebKit Review Bot
Comment 7 2010-04-19 10:11:19 PDT
http://trac.webkit.org/changeset/57812 might have broken Chromium Linux Release
Note You need to log in before you can comment on or make changes to this bug.