Adopt new assertion SPI for process suppression on Mac
[WebKit-https.git] / Source / WebKit2 / ChangeLog
index 80553c5..11b0420 100644 (file)
@@ -1,3 +1,24 @@
+2012-12-19  Kiran Muppala  <cmuppala@apple.com>
+
+        Adopt new assertion SPI for process suppression on Mac
+        https://bugs.webkit.org/show_bug.cgi?id=105378
+
+        Reviewed by Mark Rowe.
+
+        Process suppression for WebKit2 child processes is currently enabled or disabled using AutomaticTermination.
+        This should be replaced with a new assertion SPI specific to process suppression.
+
+        * Shared/ChildProcess.cpp:
+        (WebKit::ChildProcess::ChildProcess): Remove unused member variable m_applicationIsOccluded.
+        * Shared/ChildProcess.h:
+        (WebKit::ChildProcess::applicationIsOccluded): Infer occlusion state from m_processVisibleAssertion.
+        * Shared/mac/ChildProcessMac.mm:
+        (WebKit::ChildProcess::setApplicationIsOccluded): Use applicationIsOccluded() accessor to check if the
+        occlusion state has changed and take or release a process visible assertion accordingly.
+        (WebKit::ChildProcess::platformInitialize): Remove call to initializeTimerCoalescingPolicy(), since taking
+        a process visible assertion also sets the timer coalescing policy appropriately.  Set the occlusion
+        state to false on initialization.
+
 2012-12-19  Alexey Proskuryakov  <ap@apple.com>
 
         <rdar://problem/12890242> [WK2 NetworkProcess] Client doesn't receive SSL certificates