<?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>272704</bug_id>
          
          <creation_ts>2024-04-15 14:59:44 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 17.4.1): Video track is muted on pushState()</short_desc>
          <delta_ts>2024-04-19 02:58:59 -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>Media</component>
          <version>Safari 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>269846</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="JH">jhenderson2177</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>hi</cc>
    
    <cc>jer.noble</cc>
    
    <cc>john.graumann</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2028615</commentid>
    <comment_count>0</comment_count>
      <attachid>470929</attachid>
    <who name="JH">jhenderson2177</who>
    <bug_when>2024-04-15 14:59:44 -0700</bug_when>
    <thetext>Created attachment 470929
html/js to reproduce the issue

In iOS v17.4.1, executing `history.pushState()` unexpectedly mutes the video track obtained via `getUserMedia()`. The video remains muted and can only be unmuted by either switching browser tabs or by re-invoking `getUserMedia()`.

Steps to Reproduce:
  1. Open attached web page in iOS v17.4.1
  2. Click the &apos;getUserMedia()&apos; button
  3. Wait for video to be displayed below
  4. Click the &apos;pushState()&apos; button</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028695</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-04-15 20:39:15 -0700</bug_when>
    <thetext>Thank you for the report! Could you please confirm if this worked before 17.4.1? What was the latest version you know worked?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028830</commentid>
    <comment_count>2</comment_count>
    <who name="JH">jhenderson2177</who>
    <bug_when>2024-04-16 08:26:22 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #1)
&gt; Thank you for the report! Could you please confirm if this worked before
&gt; 17.4.1? What was the latest version you know worked?

It functioned correctly prior to iOS 17.4.1. I can confirm that it works on iOS 17.3 and all earlier versions</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029136</commentid>
    <comment_count>3</comment_count>
    <who name="">john.graumann</who>
    <bug_when>2024-04-17 08:39:03 -0700</bug_when>
    <thetext>Hi, I think we are seeing the same issue. We have a single page application, and as soon as the path/route changes, the video element goes black. I can&apos;t be sure in which version of iOS this broke, but it seems to have started happening recently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029348</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Hefner">hi</who>
    <bug_when>2024-04-17 19:16:06 -0700</bug_when>
    <thetext>I can confirm this was working in 17.4.0 and broke with 17.4.1.  Here’s a quick demo that I made that displays the issue: https://casters-demo-git-feat-lan-94f6f6-ryan-hefners-projects-39d86e79.vercel.app/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029682</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-04-18 19:33:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/126727012&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029765</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-04-19 02:58:59 -0700</bug_when>
    <thetext>Already fixed - 275244@main

*** This bug has been marked as a duplicate of bug 269846 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>470929</attachid>
            <date>2024-04-15 14:59:44 -0700</date>
            <delta_ts>2024-04-15 14:59:44 -0700</delta_ts>
            <desc>html/js to reproduce the issue</desc>
            <filename>iostest.html</filename>
            <type>text/html</type>
            <size>1645</size>
            <attacher name="JH">jhenderson2177</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjwhLS0gc2F2ZWQgZnJvbSB1cmw9KDAwNjcpaHR0cHM6Ly9kZXYtbWZj
NS5teWZyZWVjYW1zLmNvbS9odG1sL2lvc3Rlc3QuaHRtbD8wLjQ2NjA4OTExMTMzMjE3NSAtLT4K
PGh0bWw+PGhlYWQ+PG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0
L2h0bWw7IGNoYXJzZXQ9VVRGLTgiPgogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3
aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MSI+CiAgPHRpdGxlPmlPUyAxNy40LjEg
VGVzdDwvdGl0bGU+CiAgPHN0eWxlPgogICAgaHRtbCwKICAgIGJvZHkgewogICAgICBiYWNrZ3Jv
dW5kLWNvbG9yOiAjMTQyOTM3OwogICAgICBjb2xvcjogI2RiZGJkYjsKICAgICAgbWFyZ2luOiAx
MHB4OwogICAgICBmb250LXNpemU6IDIwcHg7CiAgICB9CgogICAgKiB7CiAgICAgIG1hcmdpbjog
MTBweDsKICAgIH0KCiAgICBidXR0b24gewogICAgICBmb250LXNpemU6IDIwcHg7CiAgICB9Cgog
ICAgdmlkZW8gewogICAgICBkaXNwbGF5OiBibG9jaz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