[Webkit-unassigned] [Bug 24478] New: Add a new API to interrupt running javascript code from C++ side.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 9 20:05:12 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=24478
Summary: Add a new API to interrupt running javascript code from
C++ side.
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Enhancement
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: james.su at gmail.com
When running a piece of javascript code by using JSEvaluateScript() or
JSObjectCallAsFunction(), the native code might be blocked because of dead loop
or some other abnormal things in javascript code. In this case, a mechanism to
let native code be able to interrupt the javascript code by throwing a
javascript exception would be very useful.
A simple solution would be: Provides an API to let C++ code register a callback
to JavaScriptCore, then this callback will be called after certain number of
javascript instructions have been executed.
SpiderMonkey has similar feature, see:
https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_SetOperationCallback
https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_SetBranchCallback
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list