<?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>11185</bug_id>
          
          <creation_ts>2010-10-31 22:27:19 +0000</creation_ts>
          <short_desc>Switch the order of checking for Function-ness and a property for [Callback] objects</short_desc>
          <delta_ts>2011-05-24 22:42:44 +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>WORKSFORME</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>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41903</commentid>
    <comment_count>0</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2010-10-31 22:27:19 +0000</bug_when>
    <thetext>[Callback]
interface A {
  void f();
};

interface B {
  void g(in A a);
};

---

function h() { alert(&apos;1&apos;) }
h.f = function() { alert(&apos;2&apos;) }
b.g(h)

Make this alert &quot;1&quot; instead of &quot;2&quot;.  (And do some testing around this.)

http://www.w3.org/mid/9768D477C67135458BF978A45BCF9B381FDA5C@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48755</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-05-24 22:42:44 +0000</bug_when>
    <thetext>Looks like IE, Firefox, Chrome and Opera all prefer to call the function itself rather than the handleEvent property.

http://people.mozilla.org/~cmccormack/tests/eventlistener-property.html

And it seems the spec already requires this, anyway:

http://dev.w3.org/2006/webapi/WebIDL/#native-objects</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>