<?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>20364</bug_id>
          
          <creation_ts>2012-12-12 21:24:01 +0000</creation_ts>
          <short_desc>Interface feedback</short_desc>
          <delta_ts>2013-01-02 11:32:33 +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>All</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="Chris Wilson">cwilso</reporter>
          <assigned_to name="Chris Wilson">cwilso</assigned_to>
          <cc>jussi.kalliokoski</cc>
    
    <cc>olivier.thereaux</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>public-audio</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80034</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2012-12-12 21:24:01 +0000</bug_when>
    <thetext>From Marcos Caceres (marcos@marcosc.com) 

The following is not defined correctly:

[NoInterfaceObject]
interface NavigatorMIDIAccess {
    void getMIDIAccess (NavigatorMIDIAccessSuccessCallback successCallback, optional NavigatorMIDIAccessErrorCallback? errorCallback);

};


Should just be:

partial interface Navigator {
    void getMIDIAccess (NavigatorMIDIAccessSuccessCallback successCallback, optional NavigatorMIDIAccessErrorCallback? errorCallback);
};





Bikeshed: NavigatorMIDIAccessSuccessCallback is a little excessive :) Just called them &quot;successcb&quot; and &quot;failcb&quot;. They are just functions without a &quot;real&quot; interface, so no need to go all camel case there :)

Also, MIDIPort should not be a [NoInterfaceObject]. Either fold it into MIDIOutput or make it into a partial interface.

Generally speaking, don&apos;t make things [NoInterfaceObject]. WebIDL says not to do that unless its for Legacy reasons:

[[
Warning

The [NoInterfaceObject] (http://www.w3.org/TR/WebIDL/#NoInterfaceObject) extended attribute should not be used on interfaces that are not solely used as supplemental (http://www.w3.org/TR/WebIDL/#dfn-supplemental-interface) interfaces, unless there are clear Web compatibility reasons for doing so. Specification authors who wish to use this feature are strongly advised to discuss this on the public-script-coord@w3.org (mailto:public-script-coord@w3.org) mailing list before proceeding.
]]

Also applied to MIDIEvent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80103</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kalliokoski">jussi.kalliokoski</who>
    <bug_when>2012-12-13 15:31:59 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; From Marcos Caceres (marcos@marcosc.com) 
&gt; 
&gt; The following is not defined correctly:
&gt; 
&gt; [NoInterfaceObject]
&gt; interface NavigatorMIDIAccess {
&gt;     void getMIDIAccess (NavigatorMIDIAccessSuccessCallback successCallback,
&gt; optional NavigatorMIDIAccessErrorCallback? errorCallback);
&gt; 
&gt; };
&gt; 
&gt; 
&gt; Should just be:
&gt; 
&gt; partial interface Navigator {
&gt;     void getMIDIAccess (NavigatorMIDIAccessSuccessCallback successCallback,
&gt; optional NavigatorMIDIAccessErrorCallback? errorCallback);
&gt; };
&gt; 

Not fixed yet.

&gt; 
&gt; 
&gt; Bikeshed: NavigatorMIDIAccessSuccessCallback is a little excessive :) Just
&gt; called them &quot;successcb&quot; and &quot;failcb&quot;. They are just functions without a
&gt; &quot;real&quot; interface, so no need to go all camel case there :)

Fixed: https://dvcs.w3.org/hg/audio/rev/bf4f6fd3ecef

&gt; Also, MIDIPort should not be a [NoInterfaceObject]. Either fold it into
&gt; MIDIOutput or make it into a partial interface.
&gt; 
&gt; Generally speaking, don&apos;t make things [NoInterfaceObject]. WebIDL says not
&gt; to do that unless its for Legacy reasons:
&gt; 
&gt; [[
&gt; Warning
&gt; 
&gt; The [NoInterfaceObject] (http://www.w3.org/TR/WebIDL/#NoInterfaceObject)
&gt; extended attribute should not be used on interfaces that are not solely used
&gt; as supplemental (http://www.w3.org/TR/WebIDL/#dfn-supplemental-interface)
&gt; interfaces, unless there are clear Web compatibility reasons for doing so.
&gt; Specification authors who wish to use this feature are strongly advised to
&gt; discuss this on the public-script-coord@w3.org
&gt; (mailto:public-script-coord@w3.org) mailing list before proceeding.
&gt; ]]
&gt; 
&gt; Also applied to MIDIEvent.

Fixed: https://dvcs.w3.org/hg/audio/rev/bf4f6fd3ecef</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80111</commentid>
    <comment_count>2</comment_count>
    <who name="Jussi Kalliokoski">jussi.kalliokoski</who>
    <bug_when>2012-12-13 16:21:16 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; From Marcos Caceres (marcos@marcosc.com) 
&gt; 
&gt; The following is not defined correctly:
&gt; 
&gt; [NoInterfaceObject]
&gt; interface NavigatorMIDIAccess {
&gt;     void getMIDIAccess (NavigatorMIDIAccessSuccessCallback successCallback,
&gt; optional NavigatorMIDIAccessErrorCallback? errorCallback);
&gt; 
&gt; };
&gt; 
&gt; 
&gt; Should just be:
&gt; 
&gt; partial interface Navigator {
&gt;     void getMIDIAccess (NavigatorMIDIAccessSuccessCallback successCallback,
&gt; optional NavigatorMIDIAccessErrorCallback? errorCallback);
&gt; };

Fixed: https://dvcs.w3.org/hg/audio/rev/ddd6455eebf6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80126</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2012-12-13 19:27:32 +0000</bug_when>
    <thetext>All issues represented here have been fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80823</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2013-01-02 11:32:33 +0000</bug_when>
    <thetext>The two changesets look good. 
https://dvcs.w3.org/hg/audio/rev/bf4f6fd3ecef
https://dvcs.w3.org/hg/audio/rev/ddd6455eebf6

Closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>