Closed Bug 527822 Opened 15 years ago Closed 14 years ago

Throbber shown for media elements without any sources to load.

Categories

(Toolkit :: Video/Audio Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Dolske, Assigned: Dolske)

References

Details

Attachments

(1 file)

Attached patch Patch v.1 (WIP)Splinter Review
Ehsan noticed that "<video controls></video>" results in a throbber being displayed.

This doesn't seem good to me, the throbber is implying something is going on, when there's really no activity. I think we should just show the error icon for this condition. [If pages want to have empty media elements that have sources loaded by external triggers, they should disable the default controls when there's nothing available.]

The patch here does that. The error icon will come up after a short delay, so that if there's script on the page that immediately triggers the load algorithm, we'll switch back to the throbber when loadstart fires (which should basically happen right away).
Comment on attachment 411566 [details] [diff] [review]
Patch v.1 (WIP)

>diff --git a/toolkit/content/widgets/videocontrols.xml b/toolkit/content/widgets/videocontrols.xml
>-                debug : false,
>+                debug : true,

Is this change intentional?

Also, have you tried this patch with the audio/video control tests?  I'm asking because those tests might be sensitive to this change...

Oh, and I guess we can get some automated (ref)tests here as well just to make sure that this doesn't regress in the future.
Component: Video/Audio → Video/Audio Controls
Product: Core → Toolkit
QA Contact: video.audio → video.audio
Target Milestone: --- → mozilla1.9.2a1
Version: Trunk → unspecified
Target Milestone: mozilla1.9.2a1 → ---
This has been fixed by bug 505158.
Status: NEW → RESOLVED
Closed: 14 years ago
Depends on: 505158
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: