WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
223242
Set media elements' networkState to NETWORK_IDLE if the connection is interrupted
https://bugs.webkit.org/show_bug.cgi?id=223242
Summary
Set media elements' networkState to NETWORK_IDLE if the connection is interru...
Souju TANAKA
Reported
2021-03-16 00:46:10 PDT
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
Attachments
Patch
(2.36 KB, patch)
2021-03-16 02:08 PDT
,
Souju TANAKA
no flags
Details
Formatted Diff
Diff
Patch
(2.74 KB, patch)
2021-03-16 20:43 PDT
,
Souju TANAKA
no flags
Details
Formatted Diff
Diff
Patch
(2.74 KB, patch)
2021-03-16 22:05 PDT
,
Souju TANAKA
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Souju TANAKA
Comment 1
2021-03-16 02:08:09 PDT
Created
attachment 423309
[details]
Patch
Eric Carlson
Comment 2
2021-03-16 08:53:21 PDT
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.
Souju TANAKA
Comment 3
2021-03-16 20:43:23 PDT
Created
attachment 423428
[details]
Patch
Souju TANAKA
Comment 4
2021-03-16 22:05:03 PDT
Created
attachment 423434
[details]
Patch
EWS
Comment 5
2021-03-17 08:20:59 PDT
Committed
r274559
: <
https://commits.webkit.org/r274559
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 423434
[details]
.
Radar WebKit Bug Importer
Comment 6
2021-03-17 08:22:14 PDT
<
rdar://problem/75527057
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug