Setting onended on a MediaStream (either remote or created) works just fine. LocalMediaStream inherits from MediaStream, but only MediaStream have the EventTarget idl attribute. Adding the attribute to LocalMediaStream as well fixes the issue.
Created attachment 141907 [details] Patch
Comment on attachment 141907 [details] Patch Yeah, it's lame that we don't inherit these sorts of attributes.
Comment on attachment 141907 [details] Patch Clearing flags on attachment: 141907 Committed r117102: <http://trac.webkit.org/changeset/117102>
All reviewed patches have been landed. Closing bug.