<?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>16098</bug_id>
          
          <creation_ts>2012-02-24 03:27:22 +0000</creation_ts>
          <short_desc>callback interfaces with constants should have no interface prototype object</short_desc>
          <delta_ts>2012-03-01 05:38:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cameron McCormack">cam</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
    
    <cc>travil</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64518</commentid>
    <comment_count>0</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2012-02-24 03:27:22 +0000</bug_when>
    <thetext>Since there will never be instances of call back interfaces, there&apos;s no need for a .prototype property on their interface object (which exists only when there are constants on the call back interface).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64522</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-02-24 08:00:42 +0000</bug_when>
    <thetext>Is the method not exposed on the prototype?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64523</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-02-24 08:32:08 +0000</bug_when>
    <thetext>Exposed in what sense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64570</commentid>
    <comment_count>3</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2012-02-24 19:50:40 +0000</bug_when>
    <thetext>This is 100% inline with IE9&apos;s behavior, so I&apos;m happy to see this minor change. (At the time, we created an extended attribute to control this, but with &apos;callback&apos; it&apos;s not necessary :)

// Introduced in DOM Level 2:
[msInterfaceObjectOnly]
interface NodeFilter 
{ /* ... */ };</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64808</commentid>
    <comment_count>4</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2012-03-01 05:16:39 +0000</bug_when>
    <thetext>Turns out this was already required.  The second paragraph in http://dev.w3.org/2006/webapi/WebIDL/#interface-object says &quot;The interface object for non-callback interfaces must also have a property named “prototype” ...&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64809</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-03-01 05:28:56 +0000</bug_when>
    <thetext>That line doesn&apos;t say that callback interfaces _can&apos;t_ have such a property (jus that non-callback ones have to), and other places in the spec are written as if that property is never null....

I think it would be good to explicitly clarify this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64810</commentid>
    <comment_count>6</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2012-03-01 05:37:59 +0000</bug_when>
    <thetext>Fair enough, added this sentence below that paragraph:

  The interface object for a callback interface MUST NOT have a “prototype”
  property.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>