[Webkit-unassigned] [Bug 88759] Remove the function ScriptDebugServer::supportsNativeBreakpoints()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 14 02:11:10 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=88759
--- Comment #3 from Peter Wang <peter.wang at torchmobile.com.cn> 2012-06-14 02:11:05 PST ---
(In reply to comment #2)
> (From update of attachment 147481 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=147481&action=review
>
> > Source/WebCore/inspector/Inspector-1.0.json:-2026
> > - "name": "supportsNativeBreakpoints",
>
> Please don't change this, shipped versions are retained as is. You are removing the hidden method from the protocol, so versioning check will pass.
I see, ok.
> > Source/WebCore/inspector/front-end/NetworkPanel.js:-141
> > - if (Capabilities.nativeInstrumentationEnabled)
>
> Oh, I missed this one. It sounds like we imply both:
>
> 1) ability to stop from within native code and
> 2) ability to collect stack traces from native code
>
> by native instrumentation. I don't think (2) has been addressed for JSC. So there will be no stack traces for initiator below.
>
>
> Before stacks are there, I'd suggest to introduce a preference Preferences.displayInitiator = false in JSC and override it to true in the WebKit/chromium/src/js/DevTools.js. It will be used in this file.
I did some investigation of it. Seems JSC already has the code for stack traces (JSC::createScriptCallStack), but works incorrectly now. Now the "Initiator" items on my Inspector just show a default value: "Other".
So could I just remove the "nativeInstrumentationEnabled" here, and then try to make JSC work correctly? Maybe that way seems more clear. And also, if I introduce a preference item, maybe, I'll face challenges from another people.
> > Source/WebKit/blackberry/WebCoreSupport/inspectorBB.js:-26
> > - Preferences.nativeInstrumentationEnabled = true;
>
> Nit: I don't think you should override preferences for your port at all. We do it in chromium for browser-specific features (see the list in the DevTools.js). Most of the items in your list are already capabilities, so these values are already not taken into account.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list