[Wi-Fi Assertions] Resume assertions when NetworkProcess::cancelPrepareToSuspend...
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2018 04:02:20 +0000 (04:02 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2018 04:02:20 +0000 (04:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=186247

Reviewed by Tim Horton.

Since we suspended assertions in prepareToSuspend, we need to resume them if
cancelPrepareToSuspend is called.

* NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::cancelPrepareToSuspend):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232460 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/NetworkProcess/NetworkProcess.cpp

index 1edaa62..b0c7839 100644 (file)
@@ -1,5 +1,18 @@
 2018-06-03  Andy Estes  <aestes@apple.com>
 
+        [Wi-Fi Assertions] Resume assertions when NetworkProcess::cancelPrepareToSuspend is called
+        https://bugs.webkit.org/show_bug.cgi?id=186247
+
+        Reviewed by Tim Horton.
+
+        Since we suspended assertions in prepareToSuspend, we need to resume them if
+        cancelPrepareToSuspend is called.
+
+        * NetworkProcess/NetworkProcess.cpp:
+        (WebKit::NetworkProcess::cancelPrepareToSuspend):
+
+2018-06-03  Andy Estes  <aestes@apple.com>
+
         [iOS] Add a needed networking process entitlement
         https://bugs.webkit.org/show_bug.cgi?id=186246
         <rdar://problem/39578861>
index db13dbc..91d30b6 100644 (file)
@@ -832,6 +832,7 @@ void NetworkProcess::cancelPrepareToSuspend()
     // message. And NetworkProcessProxy expects to receive either a NetworkProcessProxy::ProcessReadyToSuspend-
     // or NetworkProcessProxy::DidCancelProcessSuspension- message, but not both.
     RELEASE_LOG(ProcessSuspension, "%p - NetworkProcess::cancelPrepareToSuspend()", this);
+    platformProcessDidResume();
     for (auto& connection : m_webProcessConnections)
         connection->endSuspension();
 }