Closed Bug 608630 Opened 14 years ago Closed 14 years ago

Media element's simple events shouldn't bubble

Categories

(Core :: Audio/Video, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: cpearce, Assigned: cpearce)

Details

Attachments

(1 file)

Our media element events are bubbling. They shouldn't be. 

Whenever the WHATWG spec talks about "firing a simple event named 'e'", it links to http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#fire-a-simple-event, which says: 

"Firing a simple event named e means that an event with the name e, which does not bubble (except where otherwise stated) and is not cancelable (except where otherwise stated), and which uses the Event interface, must be dispatched at the given target."

So we should not bubble when firing simple events on the media element. I note that Chrome and Opera aren't bubbling.
Assignee: nobody → chris
blocking2.0: --- → ?
Status: NEW → ASSIGNED
Don't bubble media events. "error" listener in video controls must capture, so it can receive "error" events dispatched to source children.
Attachment #487287 - Flags: review?(roc)
http://hg.mozilla.org/mozilla-central/rev/4504ef280663
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: