[Webkit-unassigned] [Bug 96790] Prevent workers from calling back into other worlds

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 14 13:09:20 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=96790


Adam Barth <abarth at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #164161|review?                     |review+
               Flag|                            |




--- Comment #3 from Adam Barth <abarth at webkit.org>  2012-09-14 13:09:48 PST ---
(From update of attachment 164161)
View in context: https://bugs.webkit.org/attachment.cgi?id=164161&action=review

> Source/WebCore/bindings/v8/WorldContextHandle.cpp:51
> +    if (v8::Context::InContext()) {
> +        v8::Handle<v8::Context> context = v8::Context::GetCurrent();
> +        if (!context.IsEmpty()) {

This is somewhat redundant.  You can skip the v8::Context::InContext() call and just test whether v8::Context::GetCurrent() returns an empty handle.

-- 
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