This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20759 - append with zero length data changes readyState but does not fire events
Summary: append with zero length data changes readyState but does not fire events
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Aaron Colwell (c)
QA Contact: HTML WG Bugzilla archive list
URL: https://dvcs.w3.org/hg/html-media/raw...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-24 16:23 UTC by Adrian Bateman [MSFT]
Modified: 2013-01-30 21:17 UTC (History)
3 users (show)

See Also:


Attachments

Description Adrian Bateman [MSFT] 2013-01-24 16:23:00 UTC
Problem Description: during append operations, when the data size is “0” (for whatever reason or by mistake), the operation aborts so the app does not get feedback on the append operation.  The algorithm is aborted but not the operation, which would cause an abort event. The append with zero length should either throw or work as any other including firing all events. Doing half of the append is going to be hard to debug because the append will appear to succeed but no end event will fire.

Proposed Change: delete step-6 in the appendStream and the appendArrayBuffer operations (in Section 4.2). This means the regular append events will fire even though no data is added.
Comment 1 Aaron Colwell (c) 2013-01-30 21:17:13 UTC
Changes committed
https://dvcs.w3.org/hg/html-media/rev/aae26333e7d1