[Bug 21240] New: Specify what should happen when passing invalid offset/duration values to AudioBufferSourceNode.start

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21240

            Bug ID: 21240
           Summary: Specify what should happen when passing invalid
                    offset/duration values to AudioBufferSourceNode.start
    Classification: Unclassified
           Product: AudioWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Web Audio API
          Assignee: crogers@google.com
          Reporter: ehsan@mozilla.com
        QA Contact: public-audio@w3.org

Created attachment 1331
  --> https://www.w3.org/Bugs/Public/attachment.cgi?id=1331&action=edit
Test case

We need to specify what happens when these values are invalid, for example,
negative, or greater than the length of the buffer.

Currently, WebKit ignores offset if it's negative but smaller than the length
of the buffer, and in that case respects duration.  If a value larger than the
length of the buffer is passed as offset, then WebKit ignores both offset and
duration.  It would have probably made much more sense if these kinds of
invalid values would throw DOM_SYNTAX_ERR as these are probably not what the
author would intend to pass in.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 10 March 2013 17:10:28 UTC