A 'play' event listener is not triggered when an audio element with "new Audio()" and play() is called immediately: audio = new Audio(); audio.addEventListener('play', function() {alert('play');}, false); audio.src = 'audio.mp3'; audio.play();
rdar://7172437
Created attachment 38651 [details] proposed patch
Comment on attachment 38651 [details] proposed patch > Index: WebCore/ChangeLog > =================================================================== > + Reviewed by NOBODY (OOPS!). > + > + HTMLMediaElement sometimes loses events > + https://bugs.webkit.org/show_bug.cgi?id=28762 > + <rdar://problem/7172437> > + You should say what you changed and why (give the gist of the fix here). r=me
http://trac.webkit.org/changeset/47801