WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
329277
[GStreamer] Use Content-Range to get the resource size when Content-Length is missing
https://bugs.webkit.org/show_bug.cgi?id=329277
Summary
[GStreamer] Use Content-Range to get the resource size when Content-Length is...
Enrique Ocaña
Reported
2026-10-28 10:42:39 PDT
A server can answer a progressive media request with 206 Partial Content and a Content-Range header but without Content-Length, for example when the body is sent with chunked transfer encoding. The total size is then only available as the instance length in Content-Range, for example "bytes 0-25059330/25059331". WebKitWebSource took the size only from Content-Length, so such a resource was reported as having no size and not being seekable. MediaPlayerPrivateGStreamer found no Content-Length in the response headers either and set m_isLiveStream. maxTimeSeekable() then returned zero, seekable() was empty and HTMLMediaElement ignored every seek. When Content-Length is missing, take the total size from a valid Content-Range in both places. This fixes the HbbTV test org.hbbtv_HTML52090, where a seek to an unbuffered position in a progressive MP4 must issue a Range request. See:
https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1737
Attachments
Add attachment
proposed patch, testcase, etc.
Enrique Ocaña
Comment 1
2026-10-28 10:43:37 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/78668
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