Title: [244707] trunk/Source/WebKit
Revision
244707
Author
[email protected]
Date
2019-04-26 15:05:01 -0700 (Fri, 26 Apr 2019)

Log Message

[iOS] Our process assertion should not allow idle sleep
https://bugs.webkit.org/show_bug.cgi?id=197317
<rdar://problem/50137740>

Reviewed by Geoffrey Garen.

Our process assertion should not allow idle sleep. This is bad for power because the device
may switch between sleep and awake state frequently, as it get woken up by network packages.

* UIProcess/ios/ProcessAssertionIOS.mm:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (244706 => 244707)


--- trunk/Source/WebKit/ChangeLog	2019-04-26 21:14:24 UTC (rev 244706)
+++ trunk/Source/WebKit/ChangeLog	2019-04-26 22:05:01 UTC (rev 244707)
@@ -1,3 +1,16 @@
+2019-04-26  Chris Dumez  <[email protected]>
+
+        [iOS] Our process assertion should not allow idle sleep
+        https://bugs.webkit.org/show_bug.cgi?id=197317
+        <rdar://problem/50137740>
+
+        Reviewed by Geoffrey Garen.
+
+        Our process assertion should not allow idle sleep. This is bad for power because the device
+        may switch between sleep and awake state frequently, as it get woken up by network packages.
+
+        * UIProcess/ios/ProcessAssertionIOS.mm:
+
 2019-04-26  Eric Carlson  <[email protected]>
 
         Create AVFoundationSoftLink.{h,mm} to reduce duplicate code

Modified: trunk/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm (244706 => 244707)


--- trunk/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm	2019-04-26 21:14:24 UTC (rev 244706)
+++ trunk/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm	2019-04-26 22:05:01 UTC (rev 244707)
@@ -130,8 +130,8 @@
 namespace WebKit {
 
 const BKSProcessAssertionFlags suspendedTabFlags = (BKSProcessAssertionAllowIdleSleep);
-const BKSProcessAssertionFlags backgroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend);
-const BKSProcessAssertionFlags foregroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend | BKSProcessAssertionWantsForegroundResourcePriority | BKSProcessAssertionPreventTaskThrottleDown);
+const BKSProcessAssertionFlags backgroundTabFlags = (BKSProcessAssertionPreventTaskSuspend);
+const BKSProcessAssertionFlags foregroundTabFlags = (BKSProcessAssertionPreventTaskSuspend | BKSProcessAssertionWantsForegroundResourcePriority | BKSProcessAssertionPreventTaskThrottleDown);
 
 static BKSProcessAssertionFlags flagsForState(AssertionState assertionState)
 {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to