<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>145453</bug_id>
          
          <creation_ts>2015-05-28 20:54:15 -0700</creation_ts>
          <short_desc>Only show volume controls when audio tracks are found.</short_desc>
          <delta_ts>2015-05-28 21:49:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roger Fong">roger_fong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>roger_fong</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1098057</commentid>
    <comment_count>0</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2015-05-28 20:54:15 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098058</commentid>
    <comment_count>1</comment_count>
      <attachid>253891</attachid>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2015-05-28 20:57:14 -0700</bug_when>
    <thetext>Created attachment 253891
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098068</commentid>
    <comment_count>2</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2015-05-28 21:49:38 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; rdar://problem/21153927
&gt; 
&gt; Some of the layout tests test that a video with no audio track should have
&gt; no volume control.
&gt; Right now our volume control starts off visible. 
&gt; It should only become visible was audio tracks have been found.
&gt; 
&gt; This must have regressed at some point seeing as we have a test for it.
&gt; Maybe a line of code that was accidentally removed.

Correction: we do do this above correctly, it&apos;s actually that if the video has an error and doesn&apos;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&apos;m not actually sure this fix matters at all...</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>253891</attachid>
            <date>2015-05-28 20:57:14 -0700</date>
            <delta_ts>2015-05-28 21:49:59 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.patch</filename>
            <type>text/plain</type>
            <size>1626</size>
            <attacher name="Roger Fong">roger_fong</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE4NDk3NCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBACisyMDE1LTA1LTI4ICBSb2dlciBG
b25nICA8cm9nZXJfZm9uZ0BhcHBsZS5jb20+CisKKyAgICAgICAgT25seSBzaG93IHZvbHVtZSBj
b250cm9scyB3aGVuIGF1ZGlvIHRyYWNrcyBhcmUgZm91bmQuCisgICAgICAgIGh0dHBzOi8vYnVn
cy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNDU0NTMuCisgICAgICAgIDxyZGFyOi8vcHJv
YmxlbS8yMTE1MzkyNz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKwor
ICAgICAgICAqIE1vZHVsZXMvbWVkaWFjb250cm9scy9tZWRpYUNvbnRyb2xzQXBwbGUuanM6Cisg
ICAgICAgIChDb250cm9sbGVyLnByb3RvdHlwZS5jb25maWd1cmVJbmxpbmVDb250cm9scyk6CisK
IDIwMTUtMDUtMjggIFphbGFuIEJ1anRhcyAgPHphbGFuQGFwcGxlLmNvbT4KIAogICAgICAgICBT
dWJwaXhlbCByZW5kZXJpbmc6IFBpeGVsIGNyYWNrIGluIHRleHQgc2VsZWN0aW9uIG9mIHNpbXBs
ZSB0ZXh0IGluIDx0ZXh0YXJlYT4uCkluZGV4OiBTb3VyY2UvV2ViQ29yZS9Nb2R1bGVzL21lZGlh
Y29udHJvbHMvbWVkaWFDb250cm9sc0FwcGxlLmpzCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJD
b3JlL01vZHVsZXMvbWVkaWFjb250cm9scy9tZWRpYUNvbnRyb2xzQXBwbGUuanMJKHJldmlzaW9u
IDE4NDkyNikKKysrIFNvdXJjZS9XZWJDb3JlL01vZHVsZXMvbWVkaWFjb250cm9scy9tZWRpYUNv
bnRyb2xzQXBwbGUuanMJKHdvcmtpbmcgY29weSkKQEAgLTU2MSw2ICs1NjEsOCBAQCBDb250cm9s
bGVyLnByb3RvdHlwZSA9IHsKICAgICAgICAgdGhpcy5jb250cm9scy52b2x1bWVCb3guYXBwZW5k
Q2hpbGQodGhpcy5jb250cm9scy52b2x1bWVCb3hUaW50KTsKICAgICAgICAgdGhpcy5jb250cm9s
cy52b2x1bWVCb3guYXBwZW5kQ2hpbGQodGhpcy5jb250cm9scy52b2x1bWUpOwogICAgICAgICB0
aGlzLmNvbnRyb2xzLm11dGVCb3guYXBwZW5kQ2hpbGQodGhpcy5jb250cm9scy5tdXRlQnV0dG9u
KTsKKyAgICAgICAgLy8gVm9sdW1lIGNvbnRyb2xzIHNob3VsZCBzdGFydCBoaWRkZW4gYW5kIGJl
IHJldmVhbGVkIHdoZW4gYW4gYXVkaW8gdHJhY2sgaGFzIGJlZW4gZm91bmQuIFNlZSB1cGRhdGVI
YXNBdWRpby4KKyAgICAgICAgdGhpcy5jb250cm9scy5tdXRlQm94LmNsYXNzTGlzdC5hZGQodGhp
cy5DbGFzc05hbWVzLmhpZGRlbik7CiAgICAgICAgIHRoaXMuY29udHJvbHMucGFuZWwuYXBwZW5k
Q2hpbGQodGhpcy5jb250cm9scy53aXJlbGVzc1RhcmdldFBpY2tlcik7CiAgICAgICAgIHRoaXMu
Y29udHJvbHMucGFuZWwuYXBwZW5kQ2hpbGQodGhpcy5jb250cm9scy5jYXB0aW9uQnV0dG9uKTsK
ICAgICAgICAgaWYgKCF0aGlzLmlzQXVkaW8oKSkK
</data>

          </attachment>
      

    </bug>

</bugzilla>