Bug 145453

Summary: Only show volume controls when audio tracks are found.
Product: WebKit Reporter: Roger Fong <roger_fong>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, roger_fong
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch none

Description Roger Fong 2015-05-28 20:54:15 PDT
rdar://problem/21153927

Some of the layout tests test that a video with no audio track should have no volume control.
Right now our volume control starts off visible. 
It should only become visible was audio tracks have been found.

This must have regressed at some point seeing as we have a test for it. Maybe a line of code that was accidentally removed.
Comment 1 Roger Fong 2015-05-28 20:57:14 PDT
Created attachment 253891 [details]
patch
Comment 2 Roger Fong 2015-05-28 21:49:38 PDT
(In reply to comment #0)
> rdar://problem/21153927
> 
> Some of the layout tests test that a video with no audio track should have
> no volume control.
> Right now our volume control starts off visible. 
> It should only become visible was audio tracks have been found.
> 
> This must have regressed at some point seeing as we have a test for it.
> Maybe a line of code that was accidentally removed.

Correction: we do do this above correctly, it's actually that if the video has an error and doesn't load we used to only show the buttons to the left of the timeline (rewind and play). This decision seems arbitrary though so I'm not actually sure this fix matters at all...