<?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>15982</bug_id>
          
          <creation_ts>2012-02-14 13:00:40 +0000</creation_ts>
          <short_desc>WebVTT: Signature and LF</short_desc>
          <delta_ts>2012-04-25 22:42:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>TextTracks CG</product>
          <component>WebVTT</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-texttracks</cc>
    
    <cc>silviapfeiffer1</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64080</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-02-14 13:00:40 +0000</bug_when>
    <thetext>Before I brought up that there was a mismatch between the text/vtt registration&apos;s &quot;WebVTT files all begin with one of the following byte sequences:&quot; and the WebVTT parser&apos;s handling of the signature. Hixie made a change to the parser to address it, but they still don&apos;t match.
 
Consider a file that contains &quot;WEBVTT foo&quot; and no LFs. It matches the text/vtt&apos;s registration, but the parser rejects it in step 9, because there&apos;s no LF.
 
I think the parser step 5 should be changed to collect characters that are not LF, space or tab, and then check that the collected characters are &quot;WEBVTT&quot;, and then if the next character is space or tab, skip characters that are not LF, and remove step 9.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67078</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-04-25 22:42:46 +0000</bug_when>
    <thetext>This seems like it was fixed to me. Parser step 5 collects &quot;WEBVTT foo&quot; into /line/. Step 9 aborts, but doesn&apos;t reject it, it explicitly says it was successfully processed. There&apos;d be no point continuing with the algorithm, since there&apos;s no more data — step 10 would walk off the end of the string, step 11 would find no characters, and step 12 would skip to the end, which says basically the same as step 9.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>