<?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>260388</bug_id>
          
          <creation_ts>2023-08-18 08:59:22 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 17 Beta): The browser page is refreshed or iOS User is disconnected from the call if iOS User receives a PSTN/FaceTime call and waits at least 1 min in the middle of WebRTC call</short_desc>
          <delta_ts>2023-10-24 01:55:57 -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>CONFIGURATION CHANGED</resolution>
          
          
          <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="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1972061</commentid>
    <comment_count>0</comment_count>
    <who name="Madara Freimane">madara.freimane</who>
    <bug_when>2023-08-18 08:59:22 -0700</bug_when>
    <thetext>Summary:
The browser page is refreshed or iOS User is disconnected from the call if iOS User receives a PSTN/FaceTime call and waits at least 1 min in the middle of WebRTC call

Tested devices:
The bug is reproducible on:
- iPhone 11 Pro Max (iOS 17 Public Beta 4, build: 21A5312c) and Safari
- iPhone 13 (iOS 17 Public Beta 4, build: 21A5312c) and Safari

The bug is not reproducible on:
- iPhone 13 (iOS 16.6) and Safari

Scenario:
Preconditions:
Browser opened on iOS 17 device
The User is in an active WebRTC call with audio/video ON

Steps:
1. iOS 17 User receives PSTN/FaceTime call in the middle of the WebRTC call
2. iOS 17 User spends at least 1min in a PSTN/FaceTime call
3. iOS 17 User or another User ends the PSTN/FaceTime call
4. iOS 17 User sees that browser page refreshes OR iOS User is disconnected from the call

Actual result:
The browser page is refreshed if iOS User receives a PSTN/FaceTime call and waits at least 1 min in the middle of WebRTC call OR iOS User is disconnected from the call

Expected result:
The browser page is not refreshed and iOS User can continue to use WebRTC call if iOS User receives a PSTN/FaceTime call and waits at least 1 min in the middle of WebRTC call

Reproducibility:
100%

Additional information:
Observed that higher reproducibility (100%) is when User has only audio call and video is disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972384</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-21 08:41:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/114196339&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974156</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-08-29 00:31:53 -0700</bug_when>
    <thetext>I am not able to reproduce by doing the following:
- Load in Safari https://webrtc.github.io/samples/src/content/peerconnection/audio/
- Receive a FT call, wait 1 minute
- Go back to Safari and check the stats.

I see the page is not refreshed and packets are still being sent.
It might be that the process is killed (memory maybe) or suspended for long enough that the connection gets disconnected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987093</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-10-24 01:55:57 -0700</bug_when>
    <thetext>We would probably need a sysdiagnose since I cannot reproduce.
It is not unexpected that a page got disconnected since the process might be suspended if the user is in a phone call.

Please reopen if you can still reproduce and can provide a sysdiagnose.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>