Title: [87793] trunk/Source/WebCore
Revision
87793
Author
[email protected]
Date
2011-06-01 04:17:59 -0700 (Wed, 01 Jun 2011)

Log Message

2011-06-01  Joseph Pecoraro  <[email protected]>

        Reviewed by Pavel Feldman.

        Web Inspector: [JSC] JSLock ASSERTs Seen Under eventListenerHandlerBody
        https://bugs.webkit.org/show_bug.cgi?id=61835

        Add a JSLock call before possible allocations in jsFunction and toString.

        * bindings/js/ScriptEventListener.cpp:
        (WebCore::eventListenerHandlerBody):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (87792 => 87793)


--- trunk/Source/WebCore/ChangeLog	2011-06-01 11:03:05 UTC (rev 87792)
+++ trunk/Source/WebCore/ChangeLog	2011-06-01 11:17:59 UTC (rev 87793)
@@ -1,3 +1,15 @@
+2011-06-01  Joseph Pecoraro  <[email protected]>
+
+        Reviewed by Pavel Feldman.
+
+        Web Inspector: [JSC] JSLock ASSERTs Seen Under eventListenerHandlerBody
+        https://bugs.webkit.org/show_bug.cgi?id=61835
+
+        Add a JSLock call before possible allocations in jsFunction and toString.
+
+        * bindings/js/ScriptEventListener.cpp:
+        (WebCore::eventListenerHandlerBody):
+
 2011-06-01  Jay Civelli  <[email protected]>
 
         Reviewed by Adam Barth.

Modified: trunk/Source/WebCore/bindings/js/ScriptEventListener.cpp (87792 => 87793)


--- trunk/Source/WebCore/bindings/js/ScriptEventListener.cpp	2011-06-01 11:03:05 UTC (rev 87792)
+++ trunk/Source/WebCore/bindings/js/ScriptEventListener.cpp	2011-06-01 11:17:59 UTC (rev 87793)
@@ -99,6 +99,7 @@
     const JSEventListener* jsListener = JSEventListener::cast(eventListener);
     if (!jsListener)
         return "";
+    JSLock lock(SilenceAssertionsOnly);
     JSC::JSObject* jsFunction = jsListener->jsFunction(document);
     if (!jsFunction)
         return "";
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to