[webkit-reviews] review requested: [Bug 90694] Add an API to explicitly call a JavaScript function with args. : [Attachment 151098] patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 6 10:10:49 PDT 2012


Benjamin Meyer <ben at meyerhome.net> has asked  for review:
Bug 90694: Add an API to explicitly call a JavaScript function with args.
https://bugs.webkit.org/show_bug.cgi?id=90694

Attachment 151098: patch
https://bugs.webkit.org/attachment.cgi?id=151098&action=review

------- Additional Comments from Benjamin Meyer <ben at meyerhome.net>
Add an API to explicitly call a JavaScript function with args.
    
Currently the Blackberry port doesn't expose the JavaScript
engine to 3rd parties so they rely upon executeJavaScript
which can be slower than necessary and unsafe as eval is used.
This new API provides a way to explicitly call a specific
JavaScript function with a list of args preventing the case
where an argument comes from a untrusted source and tries to
escape the arg list to take control of the JavaScript engine.
    
In the future if the Blackberry port introduces a formal
way to interact with the JavaScript engine this function should
be removed.


More information about the webkit-reviews mailing list