Title: [98052] trunk/Source/WebCore
Revision
98052
Author
aba...@webkit.org
Date
2011-10-20 17:49:58 -0700 (Thu, 20 Oct 2011)

Log Message

Attempt to fix crash for infinite recursion.

* bindings/v8/custom/V8EventCustom.cpp:
(WebCore::toV8):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (98051 => 98052)


--- trunk/Source/WebCore/ChangeLog	2011-10-21 00:36:39 UTC (rev 98051)
+++ trunk/Source/WebCore/ChangeLog	2011-10-21 00:49:58 UTC (rev 98052)
@@ -1,3 +1,10 @@
+2011-10-20  Adam Barth  <aba...@webkit.org>
+
+        Attempt to fix crash for infinite recursion.
+
+        * bindings/v8/custom/V8EventCustom.cpp:
+        (WebCore::toV8):
+
 2011-10-20  Dirk Pranke  <dpra...@chromium.org>
 
         Still lots of crashes in the chromium debug bots.

Modified: trunk/Source/WebCore/bindings/v8/custom/V8EventCustom.cpp (98051 => 98052)


--- trunk/Source/WebCore/bindings/v8/custom/V8EventCustom.cpp	2011-10-21 00:36:39 UTC (rev 98051)
+++ trunk/Source/WebCore/bindings/v8/custom/V8EventCustom.cpp	2011-10-21 00:49:58 UTC (rev 98052)
@@ -85,6 +85,9 @@
     if (!event)
         return v8::Null();
 
+    if (event->interfaceName() == eventNames().interfaceForEvent)
+        return V8Event::wrap(event);
+
     typedef v8::Handle<v8::Value> (*ToV8Function)(Event*);
     typedef HashMap<WTF::AtomicStringImpl*, ToV8Function> FunctionMap;
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to