<?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>231156</bug_id>
          
          <creation_ts>2021-10-04 01:10:40 -0700</creation_ts>
          <short_desc>Audio live stream keeps document.readyState in interactive state and window load event not fired</short_desc>
          <delta_ts>2024-07-07 06:25:26 -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 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Roland Soos">roland</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>karlcow</cc>
    
    <cc>kevin_neal</cc>
    
    <cc>koivisto</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1799988</commentid>
    <comment_count>0</comment_count>
    <who name="Roland Soos">roland</who>
    <bug_when>2021-10-04 01:10:40 -0700</bug_when>
    <thetext>Steps to reproduce:
1. Open https://smartslider3.com/bugs/webkit/stream/test.html

Expected result:
window loaded
document.readyState: complete
window loaded


Safari result:
document.readyState: interactive
document.readyState: interactive
document.readyState: interactive
document.readyState: interactive
document.readyState: interactive
document.readyState: interactive
....

Able to reproduce: IOS 15.0.0, MacOS Big Sur</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1800012</commentid>
    <comment_count>1</comment_count>
    <who name="Roland Soos">roland</who>
    <bug_when>2021-10-04 03:33:35 -0700</bug_when>
    <thetext>Also it looks like document.fonts.ready is not resolved in this situation.

https://smartslider3.com/bugs/webkit/stream/test2.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1800617</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin Neal">kevin_neal</who>
    <bug_when>2021-10-05 10:09:12 -0700</bug_when>
    <thetext>Thank you for filing. I was able to reproduce bug on latest iOS 15 beta, but not macOS Big Sur. The appropriate engineers have been notified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1800618</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-05 10:09:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/83891866&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989647</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-03 03:38:27 -0700</bug_when>
    <thetext>It is reproducible on macOS Sonoma Safari 17 as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044963</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-07-06 18:46:24 -0700</bug_when>
    <thetext>iOS 17.6 Public Beta throw following:

document.readyState: interactive
window loaded
document.readyState: complete
window loaded

___

On desktop Safari 17.5.1:

window loaded
document.readyState: complete
window loaded

_____

On Chrome Canary 128:

window loaded
document.readyState: complete
window loaded

____

On Firefox Nightly 129:

window loaded
document.readyState: complete
window loaded

___

On Chrome 126 Android:

window loaded
document.readyState: complete
window loaded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044978</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2024-07-07 06:25:26 -0700</bug_when>
    <thetext>I believe `document.readyState: interactive` is fine as long as it is only logged *before* the `loaded` event is fired.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>