<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>65802</bug_id>
          
          <creation_ts>2011-08-05 17:45:52 -0700</creation_ts>
          <short_desc>Add tests for whether arguments are optional for addEventListener and removeEventListener</short_desc>
          <delta_ts>2011-10-07 10:22:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>65787</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Barth">abarth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>447510</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-08-05 17:45:52 -0700</bug_when>
    <thetext>As described in https://bugs.webkit.org/show_bug.cgi?id=65771, the patch in bug https://bugs.webkit.org/show_bug.cgi?id=63417 combined with the legacy default argument removal seemed to affect the behavior of addEventListener/removeEventListener.  I need to look in the code generator and understand why / we need to determine which behavior we want.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>479750</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-10-06 19:55:21 -0700</bug_when>
    <thetext>Although these are special-cased in the code generator, it appears that the argument handling uses some of normal argument handling code path, so we did change behavior here.

Our new behavior is more aligned with Firefox, so I&apos;m inclined to wait and see if we receive any compatibility complaints.  This has been in the tree for a bit and I&apos;m not aware of any compat issues.  If you know of any, please let me know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>480105</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-10-07 10:21:47 -0700</bug_when>
    <thetext>I think the best resolution here is to add tests and to be on the lookout for compatibility problems.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>