Back up partial change in r48072 in order to fix chromium reliability build break.
authorjianli@chromium.org <jianli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Sep 2009 17:42:51 +0000 (17:42 +0000)
committerjianli@chromium.org <jianli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Sep 2009 17:42:51 +0000 (17:42 +0000)
Reviewed by NOBODY (Chromium reliability build break).

* bindings/v8/V8AbstractEventListener.cpp:
(WebCore::V8AbstractEventListener::invokeEventHandler):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48096 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/bindings/v8/V8AbstractEventListener.cpp

index 7b04f69..b779557 100644 (file)
@@ -1,3 +1,12 @@
+2009-09-05  Jian Li  <jianli@chromium.org>
+
+        Reviewed by NOBODY (Chromium reliability build break).
+
+        Back up partial change in r48072 in order to fix chromium reliability build break.
+
+        * bindings/v8/V8AbstractEventListener.cpp:
+        (WebCore::V8AbstractEventListener::invokeEventHandler):
+
 2009-09-05  Nicolas Weber  <thakis@chromium.org>
 
         Reviewed by Darin Fisher.
index f65f999..72a7d26 100644 (file)
@@ -82,17 +82,10 @@ void V8AbstractEventListener::invokeEventHandler(v8::Handle<v8::Context> v8Conte
         tryCatch.Reset();
 
         // Call the event handler.
-        tryCatch.SetVerbose(false);   // We do not want to report the exception to the inspector console.
         returnValue = callListenerFunction(jsEvent, event, isWindowEvent);
-
-        // If an error occurs while handling the event, it should be reported.
-        if (tryCatch.HasCaught()) {
-            reportException(0, tryCatch);
-            tryCatch.Reset();
-        }
+        tryCatch.Reset();
 
         // Restore the old event. This must be done for all exit paths through this method.
-        tryCatch.SetVerbose(true);
         if (savedEvent.IsEmpty())
             v8Context->Global()->SetHiddenValue(eventSymbol, v8::Undefined());
         else