Title: [259028] trunk/Source/WebKit
Revision
259028
Author
rn...@webkit.org
Date
2020-03-25 19:10:38 -0700 (Wed, 25 Mar 2020)

Log Message

Mini browser immediately hit an assertion in debug build
https://bugs.webkit.org/show_bug.cgi?id=209575

Reviewed by Simon Fraser.

Use 1 instead of 0 as the desination ID to avoid hitting assertions.

* WebProcess/GPU/media/RemoteAudioSession.cpp:
(WebKit::RemoteAudioSession::RemoteAudioSession):
(WebKit::RemoteAudioSession::~RemoteAudioSession):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (259027 => 259028)


--- trunk/Source/WebKit/ChangeLog	2020-03-26 01:51:14 UTC (rev 259027)
+++ trunk/Source/WebKit/ChangeLog	2020-03-26 02:10:38 UTC (rev 259028)
@@ -1,3 +1,16 @@
+2020-03-25  Ryosuke Niwa  <rn...@webkit.org>
+
+        Mini browser immediately hit an assertion in debug build
+        https://bugs.webkit.org/show_bug.cgi?id=209575
+
+        Reviewed by Simon Fraser.
+
+        Use 1 instead of 0 as the desination ID to avoid hitting assertions.
+
+        * WebProcess/GPU/media/RemoteAudioSession.cpp:
+        (WebKit::RemoteAudioSession::RemoteAudioSession):
+        (WebKit::RemoteAudioSession::~RemoteAudioSession):
+
 2020-03-25  Tim Horton  <timothy_hor...@apple.com>
 
         Unable to build WebKit with iOS 13.4 SDK

Modified: trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioSession.cpp (259027 => 259028)


--- trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioSession.cpp	2020-03-26 01:51:14 UTC (rev 259027)
+++ trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioSession.cpp	2020-03-26 02:10:38 UTC (rev 259028)
@@ -49,13 +49,13 @@
     : m_process(process)
     , m_configuration(WTFMove(configuration))
 {
-    m_process.ensureGPUProcessConnection().messageReceiverMap().addMessageReceiver(Messages::RemoteAudioSession::messageReceiverName(), 0, *this);
+    m_process.ensureGPUProcessConnection().messageReceiverMap().addMessageReceiver(Messages::RemoteAudioSession::messageReceiverName(), 1, *this);
 }
 
 RemoteAudioSession::~RemoteAudioSession()
 {
     if (auto* connection = m_process.existingGPUProcessConnection())
-        connection->messageReceiverMap().removeMessageReceiver(Messages::RemoteAudioSession::messageReceiverName(), 0);
+        connection->messageReceiverMap().removeMessageReceiver(Messages::RemoteAudioSession::messageReceiverName(), 1);
 }
 
 IPC::Connection& RemoteAudioSession::connection()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to