<?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>20508</bug_id>
          
          <creation_ts>2012-12-24 08:21:07 +0000</creation_ts>
          <short_desc>&quot;If successCallback is not callable, abort these steps.&quot;</short_desc>
          <delta_ts>2013-01-18 15:50:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>AudioWG</product>
          <component>MIDI API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</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>TBD</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcos Caceres">w3c</reporter>
          <assigned_to name="Chris Wilson">cwilso</assigned_to>
          <cc>cwilso</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>public-audio</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80555</commentid>
    <comment_count>0</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2012-12-24 08:21:07 +0000</bug_when>
    <thetext>In 5.1.1. Methods, step 3 of requestMIDIAccess(), contradicts WebIDL. Section 4.2.21. &quot;Callback function types&quot;, of WebIDL says:

&quot;If V is not a Function object, then throw a TypeError.&quot;

So step 3 will never be reached: and TypeError will have been thrown already.

Given the above (i.e., WebIDL doing the error handling), I wonder if step 4 &quot;Return, and run the following steps asynchronously&quot; should be moved to step 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80614</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2012-12-26 18:51:28 +0000</bug_when>
    <thetext>https://github.com/WebAudio/web-midi-api/commit/d9887def0b23e1c90014d10a297c920b84648a2b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81574</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2013-01-18 15:50:59 +0000</bug_when>
    <thetext>Batch-closing RESOLVED MIDI issues. Reminder: midi issues now tracked at https://github.com/WebAudio/web-midi-api/issues</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>