Random crashes on the Web Thread due to Timers firing on the wrong thread in the...
[WebKit-https.git] / Source / WebKit2 / ChangeLog
index 2cb4dafc753b53d16b2cfc93b34ba8cf2570ada2..e41168e8acb1aae2101c33b0368093bb6d44e4fe 100644 (file)
@@ -1,3 +1,25 @@
+2014-07-21  Timothy Horton  <timothy_horton@apple.com>
+
+        Random crashes on the Web Thread due to Timers firing on the wrong thread in the UI process
+        https://bugs.webkit.org/show_bug.cgi?id=135132
+        <rdar://problem/17719832>
+
+        Reviewed by Simon Fraser.
+
+        * UIProcess/ProcessThrottler.cpp:
+        (WebKit::ProcessThrottler::ProcessThrottler):
+        (WebKit::ProcessThrottler::suspendTimerFired):
+        * UIProcess/ProcessThrottler.h:
+        * UIProcess/ios/ViewGestureControllerIOS.mm:
+        (WebKit::ViewGestureController::ViewGestureController):
+        (WebKit::ViewGestureController::swipeSnapshotWatchdogTimerFired):
+        * UIProcess/mac/ViewGestureController.h:
+        * UIProcess/mac/ViewGestureControllerMac.mm:
+        (WebKit::ViewGestureController::ViewGestureController):
+        (WebKit::ViewGestureController::swipeSnapshotWatchdogTimerFired):
+        We can't use WebCore timers in the UI process because of coexistence concerns
+        (they fire on the Web Thread if there is one!), so use RunLoop::Timer instead.
+
 2014-07-21  Andy Estes  <aestes@apple.com>
 
         [iOS] Handle QuickLook ResourceLoaders in the web process
 2014-07-21  Andy Estes  <aestes@apple.com>
 
         [iOS] Handle QuickLook ResourceLoaders in the web process