Bug 94065
| Summary: | Simple events should not be cancellable | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matthew Gregan [:kinetik] <kinetik> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | UNCONFIRMED | ||
| Severity: | Normal | CC: | ap, eric.carlson, jeremy |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Matthew Gregan [:kinetik]
Most of the media events are specified as simple events, which are not bubbling and or cancellable. The current implementation creates media events that are cancellable.
I suspect this arose because the spec used to define simple events as cancellable but not bubbling, and was changed in April 2009 (see http://html5.org/tools/web-apps-tracker?from=2991&to=2992). A quick scan through svn blame reveals the events in HTMLMediaElement.cpp have been created as non-bubbling and cancellable since late 2007.
Gecko has the same bug, I'm fixing it in https://bugzilla.mozilla.org/show_bug.cgi?id=770945.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Any behavior that has been consistently working in both WebKit and Firefox since 2007 would have outgrown the "bug" status.
Is there any downside in the existing behavior? Perhaps the spec should be changed back instead?
Eric Carlson
(In reply to comment #1)
> Any behavior that has been consistently working in both WebKit and Firefox since 2007 would have outgrown the "bug" status.
>
> Is there any downside in the existing behavior? Perhaps the spec should be changed back instead?
As noted in the Mozilla bug (https://bugzilla.mozilla.org/show_bug.cgi?id=770945#c8), media events aren't cancellable and don't bubble in IE9&10.
The spec doesn't define what to do when a media event is "cancelled", and indeed WebKit doesn't do anything, so I agree that we should change our implementation to match the spec.