Closed
Bug 464371
Opened 16 years ago
Closed 16 years ago
<video> fires multiple load events, controls should be <button>s
Categories
(Toolkit :: Video/Audio Controls, defect)
Toolkit
Video/Audio Controls
Tracking
()
VERIFIED
FIXED
mozilla1.9.2a1
People
(Reporter: Dolske, Assigned: Dolske)
References
Details
(Keywords: verified1.9.1)
Attachments
(1 file)
15.28 KB,
patch
|
enndeakin
:
review+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
<video src="foo.ogg" onload="alert(event.originalTarget.localName)"></video>
This gives 3 alerts (video, image, image)... One for each of the two images in the binding, and one for the video itself. This problematic, because content certainly isn't going to be expecting the load events from the control images.
Ideally XBL would suppress these events automagically, but if markup/code in the binding could suppress them that would be an ok workaround for me.
Comment 1•16 years ago
|
||
Would it be possible to use CSS background images in the binding?
Any code in XBL can't suppress capture phase of the events.
And because load events are special, they don't propagate to chrome,
so chrome can't suppress them either.
Comment 2•16 years ago
|
||
Or if really needed we could add some attribute to XBL <content> which tells
the event names which should not propagate out of the anonymous content.
(Probably a bit tricky to implement, but doable.)
So I think if CSS background images just are possible here, using them
would be good enough work-around.
Assignee | ||
Comment 3•16 years ago
|
||
Hmm, yeah, I'll give background images a shot.
Comment 4•16 years ago
|
||
Yeah, XBL by default can't suppress the events, but we could add something like comment 2 suggests. It might not be that tricky if we handle it at the event retargeting step.
Assignee | ||
Comment 5•16 years ago
|
||
Enn says these controls should be <button>s anyway, so I'll look at fixing both at the same time.
Assignee | ||
Updated•16 years ago
|
Component: XBL → Video/Audio
QA Contact: xbl → video.audio
Summary: <video> fires multiple load events due to images in XBL controls. → <video> fires multiple load events, controls should be <button>s
Target Milestone: --- → mozilla1.9.2a1
Assignee | ||
Comment 6•16 years ago
|
||
Tried modifying test_videocontrols.html to test this, by changing test 1 to be invoked by a |load| event from the video element. Unfortunately bug 464377 is still causing the video itself to fire multiple load events, which causes the modified test to fail.
But I did confirm that event.originalTarget.localName was "VIDEO" on those extra events, so the button images should be ok.
Assignee: nobody → dolske
Attachment #354018 -
Flags: review?(enndeakin)
Assignee | ||
Comment 7•16 years ago
|
||
(Also, note that Bugzilla's diff viewer is broken, and doesn't show the 4 .png images added to pinstripe's jar.mn. They're in the raw patch.)
Updated•16 years ago
|
Attachment #354018 -
Flags: review?(enndeakin) → review+
Assignee | ||
Comment 8•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•16 years ago
|
Attachment #354018 -
Flags: approval1.9.1?
Flags: blocking1.9.1+
Comment 9•16 years ago
|
||
Comment on attachment 354018 [details] [diff] [review]
Patch v.1
a191=beltzner
Attachment #354018 -
Flags: approval1.9.1? → approval1.9.1+
Assignee | ||
Comment 10•16 years ago
|
||
Keywords: fixed1.9.1
Comment 11•16 years ago
|
||
Verified fix on Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;
rv:1.9.2a1pre) Gecko/20090413 Minefield/3.6a1pre
and Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b4pre)
Gecko/20090413 Shiretoko/3.5b4pre
Status: RESOLVED → VERIFIED
Keywords: fixed1.9.1 → verified1.9.1
Assignee | ||
Updated•15 years ago
|
Component: Video/Audio → Video/Audio Controls
Product: Core → Toolkit
QA Contact: video.audio → video.audio
Version: Trunk → unspecified
You need to log in
before you can comment on or make changes to this bug.
Description
•