<?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>64847</bug_id>
          
          <creation_ts>2011-07-19 23:44:13 -0700</creation_ts>
          <short_desc>Calling initEvent after event dispatch should not reinitialize the event</short_desc>
          <delta_ts>2011-07-20 17:54:52 -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>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>dominicc</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>439643</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-07-19 23:44:13 -0700</bug_when>
    <thetext>Per the DOM 3 Events spec draft:

&lt;http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-event-type-initEvent&gt;

At r91186, initEvent is a no-op if the event is _being_ dispatched, but the event can be reinitialized after dispatch is done. However the spec says that initEvent should be a no-op: &quot;This method has no effect if called after the event has been dispatched.&quot;

DOM 2 Events also specifies this, albeit in less specific language.

&lt;http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event-initEvent&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>440153</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-07-20 17:54:52 -0700</bug_when>
    <thetext>Per the DOM Core draft, calling initEvent after event dispatch _should_ reinitialize the event:

&lt;http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-event-initevent&gt;

initEvent should only be prevented while the event is being dispatched. WebKit already does it this way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>