[Webkit-unassigned] [Bug 225630] [MSE] QuotaExceededError Exception not thrown even if the sum of totalTrackBufferSize and appendBuffer size exceeds maximumBufferSize.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 6 17:57:08 PDT 2021


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

--- Comment #8 from Jean-Yves Avenard [:jya] <jya at apple.com> ---
(In reply to Toshio Ogasawara from comment #0)
> When appendBuffer is executed, the exception of QuotaExceededError is not
> thrown even if the sum of totalTrackBufferSize and appendBuffer size exceeds
> maximumBufferSize.
> It is also possible to send large size data exceeding the maximumBufferSize
> to the platform layer.
> When appendBuffer is called, if it exceeds maximumBufferSize, it is better
> to throw QuotaExceededError exception.

On further thought, this assessment was incorrect.

If the size of the source buffer + pending data capacity + new size is greater than the maximum buffer size; then SourceBufferPrivate::bufferFull() would return true and the QuotaExceededError would have been thrown.

It sounds like in your case, you have a SourceBufferPrivate::evictCodedFrames that doesn't properly update the value returned by SourceBufferPrivate::bufferFull. This is where the fix is needed if any.

-- 
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/20210607/f192ec93/attachment-0001.htm>


More information about the webkit-unassigned mailing list