<?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>259364</bug_id>
          
          <creation_ts>2023-07-20 13:46:28 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 17 Beta): The camera preview is with a wrong resolution for a short time when the iOS User enables/disables the camera</short_desc>
          <delta_ts>2026-03-12 00:04:36 -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 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=260195</see_also>
          <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="Madara Freimane">madara.freimane</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>chris.pettet</cc>
    
    <cc>ddp.bkdn</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>fategemini1</cc>
    
    <cc>jer.noble</cc>
    
    <cc>ketija.keisa</cc>
    
    <cc>olena.bezkrovna</cc>
    
    <cc>rychouwei</cc>
    
    <cc>seemann</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
    
    <cc>zach</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1967487</commentid>
    <comment_count>0</comment_count>
    <who name="Madara Freimane">madara.freimane</who>
    <bug_when>2023-07-20 13:46:28 -0700</bug_when>
    <thetext>Summary:
The camera preview is with a wrong resolution for a short time when the iOS User enables/disables the camera OR joins a WebRTC call with video ON

Tested devices:
The bug is reproducible on:
- iPhone 12 Pro (iOS 17.0 Public Beta) with Safari (V17.0)
- iPhone 11 Pro Max (iOS 17 Public Beta, build: 21A5277j) and Safari
- iPhone 11 Pro Max (iOS 17 Public Beta, build: 21A5277j) and Google Chrome (V115.0.5790.130)

The bug is not reproducible on:
- iPhone 13 (iOS 16.5.1) and Safari
- iPhone 14 (iOS 16.5.1) and Safari
- iPhone XS (iOS 16.4.1) and Safari

Scenario:
Precondition:
Safari or Google Chrome browser opened on iOS 17 device

Steps:
Use case1:
1. iOS User joins WEbRTC call with video ON
2. iOS User observes local video preview while being in connecting state

Use case2:
1. iOS User disables and enables camera back 
2. iOS User observes the camera preview while changing the status of the camera

Actual result:
The camera preview is with a wrong resolution for a short time when the iOS User enables/disables the camera OR joins a call with video ON

Expected result:
The camera preview appears immediately with the correct resolution when the iOS User enables/disables the camera in a WebRTC call

Reproducibility:
90%


Additional information:
-Sysdiagnostics file added:
https://drive.google.com/file/d/1Z3IxXUjNdt4zWOubg4H52WrDGBXH3CGZ/view?usp=sharing
(bug reproduced at 23:25, EET, 20.07.2023.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967501</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-07-20 14:45:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/112621697&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1971777</commentid>
    <comment_count>2</comment_count>
    <who name="Madara Freimane">madara.freimane</who>
    <bug_when>2023-08-17 02:30:47 -0700</bug_when>
    <thetext>Bug is still reproducible. 
3rd use case:
iOS User rotates device screen, and observes the camera preview

Tested devices and browsers:
- iPhone 11 Pro (iOS 17 Developer Beta 6, build: 21A5312c) and Safari
- iPhone 14 Pro (iOS 17 Public Beta 4, build: 21A5312c) and Safari
- iPhone 13 (iOS 17 Public Beta 4, build: 21A5312c) and Safari

Added a new sysdiagnostics file (bug reproduced at 12:13, EET, 17.08.2023.):
https://drive.google.com/file/d/1_I6m42MmuqeB6iwS4Mglf8XpIvm5fbPz/view?usp=sharing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975981</commentid>
    <comment_count>3</comment_count>
    <who name="">chris.pettet</who>
    <bug_when>2023-09-06 16:44:08 -0700</bug_when>
    <thetext>Still seeing this on iOS 17.0 (21A5326a), Safari. The getUserMedia sample linked below is an easy way to reproduce the bug.

getUserMedia sample: https://webrtc.github.io/samples/src/content/getusermedia/gum/

getUserMedia source: https://github.com/webrtc/samples/tree/gh-pages/src/content/getusermedia/gum</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979298</commentid>
    <comment_count>4</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-09-22 01:21:05 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/18069</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984582</commentid>
    <comment_count>5</comment_count>
    <who name="">rychouwei</who>
    <bug_when>2023-10-12 06:10:55 -0700</bug_when>
    <thetext>Hi, I have same issue here, I would like to know is this issue being fixed? And which iOS version will launch this fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984590</commentid>
    <comment_count>6</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-10-12 07:35:23 -0700</bug_when>
    <thetext>This is being investigated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984804</commentid>
    <comment_count>7</comment_count>
    <who name="">rychouwei</who>
    <bug_when>2023-10-12 20:10:36 -0700</bug_when>
    <thetext>Thank you for your response, is there any workaround here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984864</commentid>
    <comment_count>8</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-10-13 05:52:55 -0700</bug_when>
    <thetext>*** Bug 261330 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991484</commentid>
    <comment_count>9</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-11-10 02:50:41 -0800</bug_when>
    <thetext>*** Bug 262618 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991620</commentid>
    <comment_count>10</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-10 10:29:55 -0800</bug_when>
    <thetext>Committed 270548@main (57afaa96431b): &lt;https://commits.webkit.org/270548@main&gt;

Reviewed commits have been landed. Closing PR #18069 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001142</commentid>
    <comment_count>11</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-12-20 12:26:57 -0800</bug_when>
    <thetext>*** Bug 266686 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2055792</commentid>
    <comment_count>12</comment_count>
    <who name="PhungDuong">ddp.bkdn</who>
    <bug_when>2024-08-27 18:11:27 -0700</bug_when>
    <thetext>Dear @youenn fablet

This issue still persists in iOS 17.6.1
Please reopen this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072036</commentid>
    <comment_count>13</comment_count>
    <who name="PhungDuong">ddp.bkdn</who>
    <bug_when>2024-10-31 20:17:04 -0700</bug_when>
    <thetext>Bug is still reproducible on iOS/iPad 18.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2076927</commentid>
    <comment_count>14</comment_count>
    <who name="PhungDuong">ddp.bkdn</who>
    <bug_when>2024-11-21 22:44:51 -0800</bug_when>
    <thetext>Bug is still reproducible on iOS/iPad 18.1.1
But only for camera of yourself, other camera is not. And the frequency is about 50%.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2172119</commentid>
    <comment_count>15</comment_count>
    <who name="Ketija">ketija.keisa</who>
    <bug_when>2026-01-15 01:13:26 -0800</bug_when>
    <thetext>Hi!

Is there progress on the issue?

Bug is still reproducible:

Tested devices and browsers:
- iPhone 11 ( iOS 26.2) and Safari
- iPhone XR ( iOS 18.7.3) and Safari</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2189431</commentid>
    <comment_count>16</comment_count>
    <who name="Ketija">ketija.keisa</who>
    <bug_when>2026-03-12 00:04:36 -0700</bug_when>
    <thetext>Hi!

Is there progress on the issue ? 

Bug is still reproducible:

Tested devices and browsers:
- iPhone 11 (iOS 26.3) and Safari
- iPhone XR (iOS 18.7.3) and Safari</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>