Title: [246211] trunk/Source/WebCore
Revision
246211
Author
you...@apple.com
Date
2019-06-07 13:07:55 -0700 (Fri, 07 Jun 2019)

Log Message

Add a RELEASE_ASSERT that removeAudioProducer should always be done in the main thread
https://bugs.webkit.org/show_bug.cgi?id=198668

Reviewed by Eric Carlson.

See rdar://problem/49444622 for background information.
No change of behavior.

* dom/Document.cpp:
(WebCore::Document::removeAudioProducer):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (246210 => 246211)


--- trunk/Source/WebCore/ChangeLog	2019-06-07 18:54:31 UTC (rev 246210)
+++ trunk/Source/WebCore/ChangeLog	2019-06-07 20:07:55 UTC (rev 246211)
@@ -1,3 +1,16 @@
+2019-06-07  Youenn Fablet  <you...@apple.com>
+
+        Add a RELEASE_ASSERT that removeAudioProducer should always be done in the main thread
+        https://bugs.webkit.org/show_bug.cgi?id=198668
+
+        Reviewed by Eric Carlson.
+
+        See rdar://problem/49444622 for background information.
+        No change of behavior.
+
+        * dom/Document.cpp:
+        (WebCore::Document::removeAudioProducer):
+
 2019-06-07  Zalan Bujtas  <za...@apple.com>
 
         Images are not resizing correctly when dragged to a message in 1/3 view

Modified: trunk/Source/WebCore/dom/Document.cpp (246210 => 246211)


--- trunk/Source/WebCore/dom/Document.cpp	2019-06-07 18:54:31 UTC (rev 246210)
+++ trunk/Source/WebCore/dom/Document.cpp	2019-06-07 20:07:55 UTC (rev 246211)
@@ -3933,6 +3933,7 @@
 
 void Document::removeAudioProducer(MediaProducer& audioProducer)
 {
+    RELEASE_ASSERT(isMainThread());
     m_audioProducers.remove(audioProducer);
     updateIsPlayingMedia();
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to