<?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>19902</bug_id>
          
          <creation_ts>2012-11-07 23:28:43 +0000</creation_ts>
          <short_desc>Clarify what happens if you set PannerNode.{panningModel,distanceModel} to an invalid value</short_desc>
          <delta_ts>2014-10-28 17:17:27 +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>Web Audio API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</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="Ehsan Akhgari [:ehsan]">ehsan</reporter>
          <assigned_to name="Chris Rogers">crogers</assigned_to>
          
          
          <qa_contact>public-audio</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78020</commentid>
    <comment_count>0</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2012-11-07 23:28:43 +0000</bug_when>
    <thetext>I think we should throw DOM_INDEX_SIZE_ERR.

(This and other similar bugs wouldn&apos;t have been a problem if we used Web IDL enums... :/ )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78288</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Rogers">crogers</who>
    <bug_when>2012-11-13 22:32:30 +0000</bug_when>
    <thetext>If you feel strongly about Web IDL enums, we can still consider switching to them.  But since these enums are already in wide use as integers, we&apos;d have to support setters as either int or string.

We&apos;d still have to throw an exception for illegal values even for Web IDL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78334</commentid>
    <comment_count>2</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2012-11-15 01:32:24 +0000</bug_when>
    <thetext>We&apos;re considering enabling Web IDL enum attribute setters to throw if passed an invalid value, which would mean that we&apos;ll get what I&apos;m asking for here for free.  And yes, I still think that using Web IDL enums would be a good change because of the increase in code readability and the possibilities of using the IDL parser to do various sorts of checking for the implementers.

However I don&apos;t think that it would be very good for us to allow setting these both as integers and strings...  How did WebKit deal with the other breaking changes that was recently made in the spec (such as renaming functions, etc.)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78417</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Rogers">crogers</who>
    <bug_when>2012-11-16 18:41:46 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; We&apos;re considering enabling Web IDL enum attribute setters to throw if passed
&gt; an invalid value, which would mean that we&apos;ll get what I&apos;m asking for here
&gt; for free.  And yes, I still think that using Web IDL enums would be a good
&gt; change because of the increase in code readability and the possibilities of
&gt; using the IDL parser to do various sorts of checking for the implementers.
&gt; 
&gt; However I don&apos;t think that it would be very good for us to allow setting
&gt; these both as integers and strings...  How did WebKit deal with the other
&gt; breaking changes that was recently made in the spec (such as renaming
&gt; functions, etc.)?

For the recent name changes such as noteOn() -&gt; start(), WebKit continues to provide legacy support, which can eventually be phased out during a transition period.  I added a section in the spec called &quot;Deprecation Notes&quot; to make note of these types of changes.  Different implementations may choose to support or not support the legacy names, and for how long they would be supported.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78420</commentid>
    <comment_count>4</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2012-11-16 19:31:34 +0000</bug_when>
    <thetext>OK.  Can the same approach be taken about the numeric attributes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78422</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Rogers">crogers</who>
    <bug_when>2012-11-16 19:58:19 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; OK.  Can the same approach be taken about the numeric attributes?

Yes, for the &quot;enum&quot; type attributes I think so.  The only gotcha is that the &quot;getters&quot; would now return a string instead of an integer.  But I think the main backwards compatibility concern is people setting these attributes, so I&apos;m not so worried about that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78426</commentid>
    <comment_count>6</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2012-11-16 22:18:58 +0000</bug_when>
    <thetext>Yep, I think that makes sense.  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113929</commentid>
    <comment_count>7</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:14:30 +0000</bug_when>
    <thetext>Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114079</commentid>
    <comment_count>8</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:17:27 +0000</bug_when>
    <thetext>Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>