Title: [276461] trunk/Source/WebKit
Revision
276461
Author
[email protected]
Date
2021-04-22 14:19:38 -0700 (Thu, 22 Apr 2021)

Log Message

NowPlayingInfoForGPUManager::clearNowPlayingInfoPrivate() sometimes launches the GPUProcess on page close
https://bugs.webkit.org/show_bug.cgi?id=224939

Reviewed by Simon Fraser.

Make sure NowPlayingInfoForGPUManager::clearNowPlayingInfoPrivate() never launches the GPUProcess. The GPU
process already takes care of clearing now playing info on exit.

* WebProcess/GPU/media/WebMediaStrategy.cpp:
(WebKit::WebMediaStrategy::createNowPlayingManager const):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (276460 => 276461)


--- trunk/Source/WebKit/ChangeLog	2021-04-22 20:52:52 UTC (rev 276460)
+++ trunk/Source/WebKit/ChangeLog	2021-04-22 21:19:38 UTC (rev 276461)
@@ -1,5 +1,18 @@
 2021-04-22  Chris Dumez  <[email protected]>
 
+        NowPlayingInfoForGPUManager::clearNowPlayingInfoPrivate() sometimes launches the GPUProcess on page close
+        https://bugs.webkit.org/show_bug.cgi?id=224939
+
+        Reviewed by Simon Fraser.
+
+        Make sure NowPlayingInfoForGPUManager::clearNowPlayingInfoPrivate() never launches the GPUProcess. The GPU
+        process already takes care of clearing now playing info on exit.
+
+        * WebProcess/GPU/media/WebMediaStrategy.cpp:
+        (WebKit::WebMediaStrategy::createNowPlayingManager const):
+
+2021-04-22  Chris Dumez  <[email protected]>
+
         Call RemoteMediaEngineConfigurationFactory::registerFactory() in WebProcess::setUseGPUProcessForMedia()
         https://bugs.webkit.org/show_bug.cgi?id=224937
 

Modified: trunk/Source/WebKit/WebProcess/GPU/media/WebMediaStrategy.cpp (276460 => 276461)


--- trunk/Source/WebKit/WebProcess/GPU/media/WebMediaStrategy.cpp	2021-04-22 20:52:52 UTC (rev 276460)
+++ trunk/Source/WebKit/WebProcess/GPU/media/WebMediaStrategy.cpp	2021-04-22 21:19:38 UTC (rev 276461)
@@ -63,8 +63,8 @@
         class NowPlayingInfoForGPUManager : public WebCore::NowPlayingManager {
             void clearNowPlayingInfoPrivate() final
             {
-                auto& connection = WebProcess::singleton().ensureGPUProcessConnection().connection();
-                connection.send(Messages::GPUConnectionToWebProcess::ClearNowPlayingInfo { }, 0);
+                if (auto* connection = WebProcess::singleton().existingGPUProcessConnection())
+                    connection->connection().send(Messages::GPUConnectionToWebProcess::ClearNowPlayingInfo { }, 0);
             }
 
             void setNowPlayingInfoPrivate(const NowPlayingInfo& nowPlayingInfo) final
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to