Calling removeTrack on different RTCPeerConnection should throw InvalidAccessError
[WebKit-https.git] / Source / WebCore / ChangeLog
index d11f4bc..0cbb16c 100644 (file)
@@ -1,3 +1,19 @@
+2018-11-14  Youenn Fablet  <youenn@apple.com>
+
+        Calling removeTrack on different RTCPeerConnection should throw InvalidAccessError
+        https://bugs.webkit.org/show_bug.cgi?id=191603
+
+        Reviewed by Chris Dumez.
+
+        Make sure to check that the sender peer connection backend is matching.
+        Covered by rebased WPT test.
+
+        * Modules/mediastream/RTCPeerConnection.cpp:
+        (WebCore::RTCPeerConnection::removeTrack):
+        * Modules/mediastream/RTCRtpSender.cpp:
+        (WebCore::RTCRtpSender::isCreatedBy const):
+        * Modules/mediastream/RTCRtpSender.h:
+
 2018-11-14  Fujii Hironori  <Hironori.Fujii@sony.com>
 
         [curl] Unify CookieJarCurlDatabase and the abstract class CookieJarCurl