Bug 145453 - Only show volume controls when audio tracks are found.
Summary: Only show volume controls when audio tracks are found.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-28 20:54 PDT by Roger Fong
Modified: 2015-05-28 21:49 PDT (History)
2 users (show)

See Also:


Attachments
patch (1.59 KB, patch)
2015-05-28 20:57 PDT, Roger Fong
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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...