Title: [245187] trunk/Source/WebKit
Revision
245187
Author
[email protected]
Date
2019-05-10 12:41:36 -0700 (Fri, 10 May 2019)

Log Message

The active tab sometimes app naps even though it should not
https://bugs.webkit.org/show_bug.cgi?id=197791
<rdar://problem/48460054>

Reviewed by Geoffrey Garen.

The WebPage constructor was initializing m_activityState but not calling updateThrottleState().
As a result, we would not take a UserActivity even when warranted by the initial activity state.

* WebProcess/WebPage/WebPage.cpp:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (245186 => 245187)


--- trunk/Source/WebKit/ChangeLog	2019-05-10 19:01:54 UTC (rev 245186)
+++ trunk/Source/WebKit/ChangeLog	2019-05-10 19:41:36 UTC (rev 245187)
@@ -1,3 +1,16 @@
+2019-05-10  Chris Dumez  <[email protected]>
+
+        The active tab sometimes app naps even though it should not
+        https://bugs.webkit.org/show_bug.cgi?id=197791
+        <rdar://problem/48460054>
+
+        Reviewed by Geoffrey Garen.
+
+        The WebPage constructor was initializing m_activityState but not calling updateThrottleState().
+        As a result, we would not take a UserActivity even when warranted by the initial activity state.
+
+        * WebProcess/WebPage/WebPage.cpp:
+
 2019-05-10  Fujii Hironori  <[email protected]>
 
         [WinCairo] storage/indexeddb tests are timing out

Modified: trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp (245186 => 245187)


--- trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp	2019-05-10 19:01:54 UTC (rev 245186)
+++ trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp	2019-05-10 19:41:36 UTC (rev 245187)
@@ -677,6 +677,8 @@
 #if USE(AUDIO_SESSION)
     PlatformMediaSessionManager::setShouldDeactivateAudioSession(true);
 #endif
+
+    updateThrottleState();
 }
 
 #if ENABLE(WEB_RTC)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to