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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14105</bug_id>
          
          <creation_ts>2011-09-11 15:30:43 +0000</creation_ts>
          <short_desc>&lt;track&gt; Drop MutableTextTrack and make TextTrack always mutable</short_desc>
          <delta_ts>2011-10-20 06:20:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#text-track-api</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annacc</cc>
    
    <cc>annevk</cc>
    
    <cc>eoconnor</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>giles</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>silviapfeiffer1</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56637</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-09-11 15:30:43 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#text-track-api
Complete: http://www.whatwg.org/c#text-track-api

Comment:
Drop MutableTextTrack and make TextTrack always mutable

Posted from: 24.103.99.21
User agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.9.168 Version/11.51</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56638</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-09-11 15:37:57 +0000</bug_when>
    <thetext>Comments from the Open Video Conference, with implementors of Opera, Firefox, Chrome and Safari discussing WebVTT.

There does not appear to be any good reason why MutableTextTrack exists, AFAWCT it would be simpler and more powerful to let TextTrack be mutable and have the new TrackTrack constructor create a new track. Move addCue and removeCue to TextTrack.

Allowing authors to tweak the cues using scripts without copying them into a new MutableTextTrack would be more natural.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56798</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-14 22:43:16 +0000</bug_when>
    <thetext>The initial idea was to not require that WebVTT parsers create data structures that are mutable, but if nobody is interested in taking that benefit into account I don&apos;t mind making all TextTracks mutable.

Should I make Cues more mutable also?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56807</commentid>
    <comment_count>3</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2011-09-15 05:13:37 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; The initial idea was to not require that WebVTT parsers create data structures
&gt; that are mutable, but if nobody is interested in taking that benefit into
&gt; account I don&apos;t mind making all TextTracks mutable.
&gt; 
&gt; Should I make Cues more mutable also?

As a Web dev, I&apos;d say &quot;yes&quot;. But I also know that caption providers will not like it when their copyrighted content is easily change-able. OTOH, copying it to a MutableTextTrack and then making changes is not difficult, so the extra hurdle introduced by having them immutable is small. It&apos;s not like you are changing the original resource.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56872</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-15 23:01:46 +0000</bug_when>
    <thetext>The only concern I&apos;m worried about here is whether UA vendors mind them being mutable  as far as I can tell having them mutable is nothing but good for content providers. I don&apos;t see a copyright issue as being relevant here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56929</commentid>
    <comment_count>5</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2011-09-17 15:23:53 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; The only concern I&apos;m worried about here is whether UA vendors mind them being
&gt; mutable � as far as I can tell having them mutable is nothing but good for
&gt; content providers. I don&apos;t see a copyright issue as being relevant here.

Why would the browsers want the cues to not be mutable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57009</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-19 22:44:39 +0000</bug_when>
    <thetext>Mutable data structures are significantly more expensive and complicated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57027</commentid>
    <comment_count>7</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-09-20 09:46:36 +0000</bug_when>
    <thetext>You&apos;ll have to be more specific, because none of the people that are actually implementing this have understood which operations would be more expensive with mutable tracks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57029</commentid>
    <comment_count>8</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-09-20 13:34:01 +0000</bug_when>
    <thetext>(In reply to comment #2)

&gt; Should I make Cues more mutable also?

Yes, all currently readonly IDL attributes on TextTrackCue except track should be mutable. I suggest also replacing getCueAsSource with a mutable property that causes the WebVTT cue parser to be re-run.

For any modification, we could spec it to be equivalent to the current MutableTextTrack case, where the old cue is removed and a new cue is inserted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57051</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-20 20:06:04 +0000</bug_when>
    <thetext>Ok, will make things more mutable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58492</commentid>
    <comment_count>10</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-10-20 00:48:45 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6710.
Check-in comment: Fold MutableTextTrack into TextTrack.
http://html5.org/tools/web-apps-tracker?from=6709&amp;to=6710</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58504</commentid>
    <comment_count>11</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-10-20 05:54:53 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6711.
Check-in comment: Make TextTrackCue more mutable.
http://html5.org/tools/web-apps-tracker?from=6710&amp;to=6711</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58510</commentid>
    <comment_count>12</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-20 06:20:27 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diffs given above
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>