<?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>20515</bug_id>
          
          <creation_ts>2012-12-25 21:25:43 +0000</creation_ts>
          <short_desc>is the MIDIAccess object a singleton?</short_desc>
          <delta_ts>2013-01-18 15:51:00 +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>
          
          <qa_contact>public-audio</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80570</commentid>
    <comment_count>0</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2012-12-25 21:25:43 +0000</bug_when>
    <thetext>As in: 

a = navigator.requestMIDIAccess();
b = navigator.requestMIDIAccess();

a === b? 

In the spec, this is currently unclear in 5.1.1:
&quot;success: Let access be the MIDIAccess object for which access has been granted.&quot;

Which kinda reads like the spec is assuming requestMIDIAccess() will not be called repeatedly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80596</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2012-12-26 17:21:00 +0000</bug_when>
    <thetext>Happy to make this explicit.  I will likely make it say it is not required to be a singleton, unless anyone objects.

It&apos;s not that calling requestMIDIAccess() repeatedly is broken, it&apos;s that it might be a bad idea - as it may re-prompt the user for access, if the system is prompting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80615</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2012-12-26 18:51:36 +0000</bug_when>
    <thetext>https://github.com/WebAudio/web-midi-api/commit/d9887def0b23e1c90014d10a297c920b84648a2b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81576</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2013-01-18 15:51:00 +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>