<?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>232006</bug_id>
          
          <creation_ts>2021-10-20 01:00:04 -0700</creation_ts>
          <short_desc>REGRESSION(Safari 15 - iOS 15.1): Muting camera while on a call with H264 crashes tab</short_desc>
          <delta_ts>2024-03-20 10:50:20 -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>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dag-Inge Aas">daginge</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>anonymousert+1</cc>
    
    <cc>anonymousert2120+5</cc>
    
    <cc>ap</cc>
    
    <cc>avasilko</cc>
    
    <cc>bejeyag374</cc>
    
    <cc>foreverneilyoung</cc>
    
    <cc>lwarlow</cc>
    
    <cc>mjs</cc>
    
    <cc>reducecode</cc>
    
    <cc>rychouwei</cc>
    
    <cc>szymon.witamborski</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1806531</commentid>
    <comment_count>0</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2021-10-20 01:00:04 -0700</bug_when>
    <thetext>When in a call using H264 on the latest 15.1 beta (which I believe is release candidate), if you try to mute the video track (enabled = false), the tab will crash. The most common case in p2p calls is iOS &lt;-&gt; iOS calls.

Reproduced on: 
- iPad Pro 10.5 MQDW2KN/A using iOS 15.1 (19B74)
- iPad Air (4th generation) MYFQ2NF/A using iOS 15.1 (19B74)

Repro steps:
1. Go to https://codepen.io/daginge/pen/porbmVK
2. Request permissions, then start the call. Verify you see two versions of yourself.
3. Click &quot;Mute camera&quot;. The tab will crash

Impact:
All WebRTC calls where the outbound video track uses H264.

Workaround:
Disabling H264 seems to do the trick. I cannot reproduce when VP8 is used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806537</commentid>
    <comment_count>1</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2021-10-20 01:10:09 -0700</bug_when>
    <thetext>Seems this is reproducible on an iPhone XR with a previous iOS 15.1 beta as well.

MRY42QN/A using 19B5060d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806554</commentid>
    <comment_count>2</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2021-10-20 02:51:38 -0700</bug_when>
    <thetext>Seems this is reproducible on Safari 15.1 on macOS too.

Tested using Beta 3 (16612.2.9.1.8) on macOS 11.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806555</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-20 03:03:37 -0700</bug_when>
    <thetext>&lt;rdar://problem/84454693&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806561</commentid>
    <comment_count>4</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-10-20 03:51:58 -0700</bug_when>
    <thetext>https://bugs.webkit.org/show_bug.cgi?id=231505 should fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806980</commentid>
    <comment_count>5</comment_count>
    <who name="Szymon Witamborski">szymon.witamborski</who>
    <bug_when>2021-10-20 18:58:09 -0700</bug_when>
    <thetext>Thank you Youenn for a quick reaction!

Could you confirm whether final iOS 15.1 and Safari 15.1 for macOS will ship with or without the fix?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1807756</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-10-22 10:42:08 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 231505 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808536</commentid>
    <comment_count>7</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2021-10-25 12:46:23 -0700</bug_when>
    <thetext>This bug was not resolved in 15.1 stable. Now all h264 usage will crash the tab. Could we get any indication for when this fix will be released?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808633</commentid>
    <comment_count>8</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-10-25 15:35:51 -0700</bug_when>
    <thetext>(In reply to daginge from comment #7)
&gt; This bug was not resolved in 15.1 stable. Now all h264 usage will crash the
&gt; tab. Could we get any indication for when this fix will be released?

Apple does not comment on future releases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1810041</commentid>
    <comment_count>9</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-10-29 05:41:00 -0700</bug_when>
    <thetext>(In reply to daginge from comment #7)
&gt; This bug was not resolved in 15.1 stable. Now all h264 usage will crash the
&gt; tab. Could we get any indication for when this fix will be released?

I would recommend checking upcoming iOS betas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1810055</commentid>
    <comment_count>10</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2021-10-29 06:50:49 -0700</bug_when>
    <thetext>(In reply to youenn fablet from comment #9)
&gt; (In reply to daginge from comment #7)
&gt; &gt; This bug was not resolved in 15.1 stable. Now all h264 usage will crash the
&gt; &gt; tab. Could we get any indication for when this fix will be released?
&gt; 
&gt; I would recommend checking upcoming iOS betas.

Say no more, say no more. *touches nose profusely* ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1812524</commentid>
    <comment_count>11</comment_count>
    <who name="">rychouwei</who>
    <bug_when>2021-11-07 18:58:10 -0800</bug_when>
    <thetext>two workaround:

1. Add this description to offer&amp;answer sdp: &quot;urn:3gpp:video-orientation&quot;, it will not cause page crash.
2. Use canvas.captureStream to capture a new video track from getUserMedia. Then, publish canvas track will not cause page crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814814</commentid>
    <comment_count>12</comment_count>
    <who name="Neil Young">foreverneilyoung</who>
    <bug_when>2021-11-13 16:18:23 -0800</bug_when>
    <thetext>Maybe this observation points into the same direction. I agree, the problem with H.264 is not solved in 15.1

https://feedbackassistant.apple.com/feedback/9757570</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814816</commentid>
    <comment_count>13</comment_count>
    <who name="Neil Young">foreverneilyoung</who>
    <bug_when>2021-11-13 16:19:57 -0800</bug_when>
    <thetext>BTW: The crash does not happen if Safari acts as subscriber, even though the same H.264 SDP Offer comes in from the outside. But here Safari just decodes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824961</commentid>
    <comment_count>14</comment_count>
    <who name="Szymon Witamborski">szymon.witamborski</who>
    <bug_when>2021-12-16 19:50:59 -0800</bug_when>
    <thetext>It appears that this patch landed in iOS and Safari 15.2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>