<?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>13499</bug_id>
          
          <creation_ts>2011-08-01 11:35:57 +0000</creation_ts>
          <short_desc>Introduce &quot;assume-null-if-not-object&quot; flag</short_desc>
          <delta_ts>2011-10-01 08:50:04 +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>PC</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>
          
          <blocked>13433</blocked>
    
    <blocked>14351</blocked>
    
    <blocked>14352</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>jonas</cc>
    
    <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>51897</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-08-01 11:35:57 +0000</bug_when>
    <thetext>Event handler IDL attributes either take a Function object or null. However, the behavior in user agents is such that whenever you assign a non-Function null is assumed (e.g. &quot;test&quot;, 2, []).

Maybe this can be combined with [AllowAny] somehow? Not sure if that is worth it though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51909</commentid>
    <comment_count>1</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-08-01 17:26:22 +0000</bug_when>
    <thetext>Which user agents behave this way? I suspect Gecko does, but I&apos;d be interested to know what others do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51911</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-08-01 17:27:44 +0000</bug_when>
    <thetext>All of them, basically.  See http://www.w3.org/Bugs/Public/show_bug.cgi?id=13433 (which should probably have been referenced in comment 0) for details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51982</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-08-02 11:26:44 +0000</bug_when>
    <thetext>addEventListener()&apos;s EventListener also seems affected by this. Have not tested other callbacks, but did notice that the timeout API already accepts &quot;any&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51988</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-08-02 13:40:18 +0000</bug_when>
    <thetext>&gt; addEventListener()&apos;s EventListener also seems affected by this.

Only in some browsers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55791</commentid>
    <comment_count>5</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-08-25 04:45:06 +0000</bug_when>
    <thetext>It wasn&apos;t clear to me reading through bug 13433 and this one again whether we want to treat as null (a) non-callable objects, (b) non-Function objects or (c) non-objects.  I&apos;ve assumed (a) for now and added [TreatNonCallableAsNull].

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.html.diff?r1=1.355;r2=1.356;f=h

Let me know if that works or needs changes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>