Bug 231156

Summary: Audio live stream keeps document.readyState in interactive state and window load event not fired
Product: WebKit Reporter: Roland Soos <roland>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: achristensen, ahmad.saleem792, beidson, cdumez, eric.carlson, jer.noble, karlcow, kevin_neal, koivisto, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 17   

Description Roland Soos 2021-10-04 01:10:40 PDT
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
Comment 1 Roland Soos 2021-10-04 03:33:35 PDT
Also it looks like document.fonts.ready is not resolved in this situation.

https://smartslider3.com/bugs/webkit/stream/test2.html
Comment 2 Kevin Neal 2021-10-05 10:09:12 PDT
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.
Comment 3 Radar WebKit Bug Importer 2021-10-05 10:09:30 PDT
<rdar://problem/83891866>
Comment 4 Ahmad Saleem 2023-11-03 03:38:27 PDT
It is reproducible on macOS Sonoma Safari 17 as well.
Comment 5 Ahmad Saleem 2024-07-06 18:46:24 PDT
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
Comment 6 Eric Carlson 2024-07-07 06:25:26 PDT
I believe `document.readyState: interactive` is fine as long as it is only logged *before* the `loaded` event is fired.