Bug 20759 - append with zero length data changes readyState but does not fire events
append with zero length data changes readyState but does not fire events
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions
All All
: P2 normal
: ---
Assigned To: Aaron Colwell (c)
HTML WG Bugzilla archive list
Depends on:
  Show dependency treegraph
Reported: 2013-01-24 16:23 UTC by Adrian Bateman [MSFT]
Modified: 2013-01-30 21:17 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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