Bug 28762

Summary: HTMLMediaElement sometimes loses events
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: WebCore Misc.Assignee: Eric Carlson <eric.carlson>
Status: RESOLVED FIXED    
Severity: Normal CC: simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
proposed patch simon.fraser: review+

Description Eric Carlson 2009-08-26 17:18:38 PDT
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();
Comment 1 Eric Carlson 2009-08-26 17:19:58 PDT
rdar://7172437
Comment 2 Eric Carlson 2009-08-26 17:27:38 PDT
Created attachment 38651 [details]
proposed patch
Comment 3 Simon Fraser (smfr) 2009-08-26 17:34:33 PDT
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
Comment 4 Eric Carlson 2009-08-26 17:49:21 PDT
http://trac.webkit.org/changeset/47801