WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
233174
Safari 15.1 regression: RTCRtpSender.replaceTrack with a disabled track crashes safari
https://bugs.webkit.org/show_bug.cgi?id=233174
Summary
Safari 15.1 regression: RTCRtpSender.replaceTrack with a disabled track crash...
Arjun Vade
Reported
2021-11-15 22:57:36 PST
Steps to reproduce: 1.Visit
https://webrtc.github.io/samples/src/content/peerconnection/pc1/
2. Click on Start and Call buttons. Note that this app/demo exposes `pc1` on console which is a RTCPeerConnection object 3. Invoke the following code from the dev tools console: black = ({ width = 640, height = 480 } = {}) => { const canvas = Object.assign(document.createElement('canvas'), { width, height }); canvas.getContext('2d').fillRect(0, 0, width, height); const stream = canvas.captureStream(); return Object.assign(stream.getVideoTracks()[0], { enabled: false }); // Note: changing enabled to true doesn't crash safari }; dummyTrack = black(); pc1.getSenders()[0].replaceTrack(dummyTrack) 4. Notice that safari crashes. Happens only on Safari 15.1, earlier versions were fine, so this is a regression. Happens both on BigSur and Monterey
Attachments
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2021-11-16 07:02:54 PST
Thanks for the report Arjun. This should be fixed in latest iOS 15.2 beta.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug