Bug 231156 - Audio live stream keeps document.readyState in interactive state and window load event not fired
Summary: Audio live stream keeps document.readyState in interactive state and window l...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 17
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-04 01:10 PDT by Roland Soos
Modified: 2024-07-07 06:25 PDT (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.