Consider merging https://chromium.googlesource.com/chromium/blink/+/10de838ebd0e65fd91b3bb98136941733a038bb8 The spec is a bit unclear ecactly what should happen with newly created MediaStreams that doesn't have any tracks. The current implementation is too strict and the spec is being worked upon to be clearer. In the meantime this patch doesn't set eneded to true in the constructor.
Created attachment 210767 [details] Proposed patch
Comment on attachment 210767 [details] Proposed patch Net negative LOC, including tests! Impressive! r=me.
Comment on attachment 210767 [details] Proposed patch Clearing flags on attachment: 210767 Committed r155199: <http://trac.webkit.org/changeset/155199>
All reviewed patches have been landed. Closing bug.