<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>232445</bug_id>
          
          <creation_ts>2021-10-28 11:44:18 -0700</creation_ts>
          <short_desc>safari crashes when VideoTrack is disabled while in webrtc call</short_desc>
          <delta_ts>2021-10-29 05:40:39 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>Safari 15</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>231505</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>makarand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>daginge</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1809765</commentid>
    <comment_count>0</comment_count>
    <who name="">makarand</who>
    <bug_when>2021-10-28 11:44:18 -0700</bug_when>
    <thetext>On Safari 15.1 running on MacOS Monterey

1) Navigate to https://webrtc.github.io/samples/src/content/peerconnection/change-codecs/
2) Click Start (this acquire user media)
3) Click Call (this establishes webrtc call)
4) Using developer console disable Local Video track using:

localStream.getVideoTracks()[0].enabled = false

5) Notice that Safari crashes and reloads the page.



Note: this happens only when using default (H264 codec) if codec preferences was changed to VP8, crash does not happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1810037</commentid>
    <comment_count>1</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2021-10-29 05:28:31 -0700</bug_when>
    <thetext>Duplicate of https://bugs.webkit.org/show_bug.cgi?id=232006. Fix is on the way, but didn&apos;t make it to 15.1 in time. Expected fix is 15.2, but it&apos;s anyone&apos;s guess. 

https://twitter.com/othermaciej/status/1452726880637906945?s=20</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1810039</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-10-29 05:40:39 -0700</bug_when>
    <thetext>I would indeed look at upcoming iOS 15.2 betas.

*** This bug has been marked as a duplicate of bug 231505 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>