Bug 28762 - HTMLMediaElement sometimes loses events
Summary: HTMLMediaElement sometimes loses events
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-08-26 17:18 PDT by Eric Carlson
Modified: 2009-08-26 17:49 PDT (History)
1 user (show)

See Also:


Attachments
proposed patch (9.15 KB, patch)
2009-08-26 17:27 PDT, Eric Carlson
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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