Attribute 'activeSourceCount' is insignificant especially after including 'onended' events in source nodes. It has been removed from latest WebAudio spec https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioContext-section.
Created attachment 203581 [details] Patch
Comment on attachment 203581 [details] Patch LGTM.
Comment on attachment 203581 [details] Patch Thanks Praveen, we might as well also remove the .playbackState attribute, then we can remove the layout test completely. We should write a more detailed test to replace it, using onended events
Created attachment 203683 [details] Patch Thanks Chris for the update. I have updated the code as per the comments. State machine in AudioScheduledSourceNode are not exposed to JS but retained for internal operations.
Created attachment 214443 [details] Updated patch Code updated.
Comment on attachment 203581 [details] Patch Cleared Chris Rogers's review+ from obsolete attachment 203581 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Comment on attachment 214443 [details] Updated patch Assuming that patches for review since 2013 are stale, r-