<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - captions tracks showing by default"
   href="https://bugs.webkit.org/show_bug.cgi?id=147951">147951</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>captions tracks showing by default
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Media Elements
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>webkit&#64;gkatsev.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Steps to reproduce the problem:
1. create a page with a video element
2. include a subtitle or caption track
3. make sure that the track from above is not marked as `default`

What is the expected behavior?
the subtitles or captions should show up only if they are marked as default, or if the user selects them.

What is the actual behavior?
If the user has not previously selected any captions, the first caption in the caption list shows up, regardless or whether that track is in the user locale's or whether the default audio is in the user's locale or not.

The spec (<a href="https://html.spec.whatwg.org/multipage/embedded-content.html#attr-track-default">https://html.spec.whatwg.org/multipage/embedded-content.html#attr-track-default</a>) for the `default` attribute on track elements implies that tracks should only be enabled if a user preference overrides the attribute or if the attribute is present.

I have a sample test page available here <a href="https://output.jsbin.com/kumefu/4">https://output.jsbin.com/kumefu/4</a>.

Also, this was brought up as an issue against Chrome and was recently fixed. Relevant chromium bug: <a href="https://code.google.com/p/chromium/issues/detail?can=2&amp;start=0&amp;num=100&amp;q=captions%20showing&amp;colspec=ID%20Pri%20M%20Week%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified&amp;groupby=&amp;sort=&amp;id=388588">https://code.google.com/p/chromium/issues/detail?can=2&amp;start=0&amp;num=100&amp;q=captions%20showing&amp;colspec=ID%20Pri%20M%20Week%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified&amp;groupby=&amp;sort=&amp;id=388588</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>