<?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>127133</bug_id>
          
          <creation_ts>2014-01-16 12:34:02 -0800</creation_ts>
          <short_desc>In-band text track cue duplicate detection shouldn&apos;t consider manually added cues</short_desc>
          <delta_ts>2014-01-16 13:02:29 -0800</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="Brendan Long">b.long</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>acolwell</cc>
    
    <cc>eric.carlson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>968861</commentid>
    <comment_count>0</comment_count>
    <who name="Brendan Long">b.long</who>
    <bug_when>2014-01-16 12:34:02 -0800</bug_when>
    <thetext>Based on this email to the HTML mailing list, after describing how we check for duplicates when adding cues from in-band text tracks:

&gt; Does this behavior take into account cues added by the application itself.
&gt; For example if the application uses addCue()
&gt; with data that is identical to something in the in-band track, will 2 cues
&gt; get displayed or only the one? It sounds like it would only be 1 which also
&gt; might be surprising to the developer.

http://lists.w3.org/Archives/Public/public-html/2014Jan/0087.html

Looking at our code, we don&apos;t check for duplicates in TextTrack::addCue(), so that&apos;s fine, but we do consider those cues when looking for duplicates for in-band cues. We should probably fix this so only in-band cues are considered when looking for duplicates.

For a concrete example, consider these two cases:

1. A video is loaded with an in-band text track, but no cues.
2. The user adds a cue with addCue().
3. The exact same cue (start time, end time, text content) shows up in the video.

In this case, the TextTrackList will contain one cue.

1. A video is loaded with an in-band text track, but no cues.
2. A cue shows up in the video.
3. The user adds the exact same cue with addCue().

In this case, the TextTrackList will contain two identical cues.

I&apos;m proposing changing this so we have two identical cues in both cases.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>