Title: [173934] trunk/Source/WebKit2
Revision
173934
Author
[email protected]
Date
2014-09-24 15:02:01 -0700 (Wed, 24 Sep 2014)

Log Message

Remove incorrect use of the BKSProcessAssertionAllowSuspendOnSleep flag for process suspension in iOS WebKit2
<rdar://problem/18400566>
https://bugs.webkit.org/show_bug.cgi?id=137077

Reviewed by Anders Carlsson.

* UIProcess/ios/ProcessAssertionIOS.mm:
Remove use of the BKSProcessAssertionAllowSuspendOnSleep which does not do what we expect, and instead
causes processes to be suspended "forever" after sleep.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (173933 => 173934)


--- trunk/Source/WebKit2/ChangeLog	2014-09-24 21:41:06 UTC (rev 173933)
+++ trunk/Source/WebKit2/ChangeLog	2014-09-24 22:02:01 UTC (rev 173934)
@@ -1,3 +1,15 @@
+2014-09-24  Sam Weinig  <[email protected]>
+
+        Remove incorrect use of the BKSProcessAssertionAllowSuspendOnSleep flag for process suspension in iOS WebKit2
+        <rdar://problem/18400566>
+        https://bugs.webkit.org/show_bug.cgi?id=137077
+
+        Reviewed by Anders Carlsson.
+
+        * UIProcess/ios/ProcessAssertionIOS.mm:
+        Remove use of the BKSProcessAssertionAllowSuspendOnSleep which does not do what we expect, and instead
+        causes processes to be suspended "forever" after sleep.
+
 2014-09-24  Christophe Dumez  <[email protected]>
 
         Use is<HTML*Element>() instead of isHTML*Element() - Part 1

Modified: trunk/Source/WebKit2/UIProcess/ios/ProcessAssertionIOS.mm (173933 => 173934)


--- trunk/Source/WebKit2/UIProcess/ios/ProcessAssertionIOS.mm	2014-09-24 21:41:06 UTC (rev 173933)
+++ trunk/Source/WebKit2/UIProcess/ios/ProcessAssertionIOS.mm	2014-09-24 22:02:01 UTC (rev 173934)
@@ -130,9 +130,9 @@
 namespace WebKit {
 
 const BKSProcessAssertionFlags suspendedTabFlags = (BKSProcessAssertionAllowIdleSleep);
-const BKSProcessAssertionFlags backgroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend | BKSProcessAssertionAllowSuspendOnSleep);
-const BKSProcessAssertionFlags foregroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend | BKSProcessAssertionAllowSuspendOnSleep | BKSProcessAssertionWantsForegroundResourcePriority | BKSProcessAssertionPreventTaskThrottleDown);
-    
+const BKSProcessAssertionFlags backgroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend);
+const BKSProcessAssertionFlags foregroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend | BKSProcessAssertionWantsForegroundResourcePriority | BKSProcessAssertionPreventTaskThrottleDown);
+
 static BKSProcessAssertionFlags flagsForState(AssertionState assertionState)
 {
     switch (assertionState) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to