Media elements' networkState should be NETWORK_IDLE if the connection is interrupted after some media data has been received, according to spec: https://html.spec.whatwg.org/#loading-the-media-resource The actual state is NETWORK_EMPTY. I confirmed it on GTK MiniBrowser by opening a test page and disable network interface after the media element starts loading. https://codepen.io/souju/pen/oNgmGRq I guess the code was based on W3C editor's draft and has been left unchanged. https://dev.w3.org/html5/pf-summary/video.html
Created attachment 423309 [details] Patch
Comment on attachment 423309 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423309&action=review > Source/WebCore/html/HTMLMediaElement.cpp:2108 > + // 3 - Set the element's networkState attribute to the NETWORK_IDLE value. Please include a link to the spec section these comments are taken from (https://html.spec.whatwg.org/#loading-the-media-resource:dom-media-have_nothing-2) to make it easier to see when something changes in the future.
Created attachment 423428 [details] Patch
Created attachment 423434 [details] Patch
Committed r274559: <https://commits.webkit.org/r274559> All reviewed patches have been landed. Closing bug and clearing flags on attachment 423434 [details].
<rdar://problem/75527057>