[webkit-dev] Custom V8 bindings for WebWorkers

2012-11-26 Thread Marshall Greenblatt
Hi All,

Applications embedding WebKit and Chromium can use existing C++ APIs
to dynamically add custom V8 JavaScript bindings. These bindings allow
closer integration between the script execution environment and the
host application and are currently supported for page contexts via the
FrameLoaderClient::didCreateScriptContext callback. However, custom V8
bindings are not currently supported for WebWorkers. Combining the
multi-threaded capabilities of WebWorkers with the flexibility offered
by custom V8 bindings would be an extremely useful feature for some
applications.

How would people feel about exposing a V8 binding capability for
WebWorkers? Would adding new callbacks similar to
Platform::didStartWorkerRunLoop and Platform::didStopWorkerRunLoop be
a reasonable implementation approach?

Thanks,
Marshall
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Custom V8 bindings for WebWorkers

2012-11-26 Thread Adam Barth
Sounds like a reasonable idea.  Would you be willing to file a bug and
write a patch?

Adam


On Mon, Nov 26, 2012 at 3:18 PM, Marshall Greenblatt
magreenbl...@gmail.com wrote:
 Hi All,

 Applications embedding WebKit and Chromium can use existing C++ APIs
 to dynamically add custom V8 JavaScript bindings. These bindings allow
 closer integration between the script execution environment and the
 host application and are currently supported for page contexts via the
 FrameLoaderClient::didCreateScriptContext callback. However, custom V8
 bindings are not currently supported for WebWorkers. Combining the
 multi-threaded capabilities of WebWorkers with the flexibility offered
 by custom V8 bindings would be an extremely useful feature for some
 applications.

 How would people feel about exposing a V8 binding capability for
 WebWorkers? Would adding new callbacks similar to
 Platform::didStartWorkerRunLoop and Platform::didStopWorkerRunLoop be
 a reasonable implementation approach?

 Thanks,
 Marshall
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Custom V8 bindings for WebWorkers

2012-11-26 Thread Marshall Greenblatt
On Mon, Nov 26, 2012 at 6:21 PM, Adam Barth aba...@webkit.org wrote:
 Sounds like a reasonable idea.  Would you be willing to file a bug and
 write a patch?

Thanks for the fast response Adam. Filed as:
https://bugs.webkit.org/show_bug.cgi?id=103306

I'll submit a patch in the near future.


 Adam


 On Mon, Nov 26, 2012 at 3:18 PM, Marshall Greenblatt
 magreenbl...@gmail.com wrote:
 Hi All,

 Applications embedding WebKit and Chromium can use existing C++ APIs
 to dynamically add custom V8 JavaScript bindings. These bindings allow
 closer integration between the script execution environment and the
 host application and are currently supported for page contexts via the
 FrameLoaderClient::didCreateScriptContext callback. However, custom V8
 bindings are not currently supported for WebWorkers. Combining the
 multi-threaded capabilities of WebWorkers with the flexibility offered
 by custom V8 bindings would be an extremely useful feature for some
 applications.

 How would people feel about exposing a V8 binding capability for
 WebWorkers? Would adding new callbacks similar to
 Platform::didStartWorkerRunLoop and Platform::didStopWorkerRunLoop be
 a reasonable implementation approach?

 Thanks,
 Marshall
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev