PPT: Closing tab that is hung or chewing 100% CPU leaves abandoned WebProcess.
[WebKit-https.git] / Source / WebKit2 / ChangeLog
index 66ab0ca..c7cf3ad 100644 (file)
@@ -1,3 +1,22 @@
+2013-05-20  Andreas Kling  <akling@apple.com>
+
+        PPT: Closing tab that is hung or chewing 100% CPU leaves abandoned WebProcess.
+        <http://webkit.org/b/116464>
+        <rdar://problem/10103795>
+
+        Reviewed by Anders Carlsson.
+
+        Give the web process a 10 second chance to exit nicely after closing the last tab belonging to it.
+        This code only runs if there was something on the page (e.g an unload/beforeunload event handler)
+        preventing the UI process from killing it right away.
+
+        * UIProcess/WebProcessProxy.cpp:
+        (WebKit::WebProcessProxy::WebProcessProxy):
+        (WebKit::WebProcessProxy::removeWebPage):
+        (WebKit::WebProcessProxy::forcefulTerminationTimerFired):
+        * UIProcess/WebProcessProxy.h:
+        (WebProcessProxy):
+
 2013-05-20  Anders Carlsson  <andersca@apple.com>
 
         Add helper function for converting a KeyedCodingValue to a CFTypeRef