[Webkit-unassigned] [Bug 272502] REGRESSION (iOS 17.4): Irregular HTMLMediaElement events for src URLs without file extensions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 15 04:32:25 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=272502

--- Comment #7 from Jean-Yves Avenard [:jya] <jean-yves.avenard at apple.com> ---
I should add.

Relying on the `suspend` event to be fired in a given order according to the events related to the `readyState` attribute will likely result to an incorrect implementation (that is not per HTML5 spec)

the `suspend` event is dependent on the `networkState` all `loadedmetadata` `loadeddata` `canplay` `canplaythrough` are related to `readyState` they aren't related to one another.

By relying on the suspend event to be fired at a particular time, you are making your code fragile and implementation and/or network dependent. 

suspend just indicates that the video element has stopped fetching content (which could be momentary).

On Chrome, `suspend` is typically fired right after `loadstart`, but can be after loadedmetadata
In Firefox, suspend is fired in a similar fashion

That Safari fires it more consistently after `loadedmetadata` is purely coincidental.

I mention this according to the bug description.

Per the screen capture attached, it seems that the bug was about `loadeddata` not being fired.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240415/4aad1d3a/attachment-0001.htm>


More information about the webkit-unassigned mailing list