<?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>21954</bug_id>
          
          <creation_ts>2013-05-07 18:37:17 +0000</creation_ts>
          <short_desc>SourceBuffer AppendStream should have restrictions on MaxSize attribute</short_desc>
          <delta_ts>2013-05-14 10:24:58 +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>Media Source Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Jerry Smith">jdsmith</reporter>
          <assigned_to name="Aaron Colwell">acolwell</assigned_to>
          <cc>acolwell</cc>
    
    <cc>cyril.concolato</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</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>87366</commentid>
    <comment_count>0</comment_count>
    <who name="Jerry Smith">jdsmith</who>
    <bug_when>2013-05-07 18:37:17 +0000</bug_when>
    <thetext>Problem Description:  SourceBuffer AppendStream has a MaxSize attribute that has type unsigned long long with no restriction.  Some behaviors for AppendStream would be unsuitable.  For instance, if MaxSize was set to infinity, unsigned long long would return a value of 0.  

 
Proposed Change: Modify the WebIDL for SourceBuffer to add EnforceRange to MaxSize:

interface SourceBuffer : EventTarget {
    readonly    attribute boolean             updating;
    readonly    attribute TimeRanges          buffered;
                attribute double              timestampOffset;
    readonly    attribute AudioTrackList      audioTracks;
    readonly    attribute VideoTrackList      videoTracks;
    readonly    attribute TextTrackList       textTracks;
                attribute double              appendWindowStart;
                attribute unrestricted double appendWindowEnd;
    void appendBuffer (ArrayBuffer data);
    void appendBuffer (ArrayBufferView data);
    void appendStream (Stream stream, optional [EnforceRange] unsigned long long maxSize);
    void abort (optional AbortMode mode);
    void remove (double start, double end);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87618</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2013-05-13 21:15:46 +0000</bug_when>
    <thetext>Changes committed.
https://dvcs.w3.org/hg/html-media/rev/71968956733e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>