<?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>63299</bug_id>
          
          <creation_ts>2011-06-23 16:07:39 -0700</creation_ts>
          <short_desc>Button element doesn&apos;t fire &apos;focus&apos; or &apos;blur&apos; events</short_desc>
          <delta_ts>2011-06-23 22:45:21 -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>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>22261</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Corey">proskater55</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>dbates</cc>
    
    <cc>dglazkov</cc>
    
    <cc>eae</cc>
    
    <cc>leviw</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
    
    <cc>tkent</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>426579</commentid>
    <comment_count>0</comment_count>
      <attachid>98424</attachid>
    <who name="Corey">proskater55</who>
    <bug_when>2011-06-23 16:07:39 -0700</bug_when>
    <thetext>Created attachment 98424
HTML document demonstrating button events

Attached test case. You&apos;ll see in Firefox or Internet Explorer that both the focus and blur events are fired. But not in Chrome or Safari (Webkit).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426587</commentid>
    <comment_count>1</comment_count>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2011-06-23 16:13:08 -0700</bug_when>
    <thetext>Interestingly it fires focus/blur correctly if focused using the keyboard (tab).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426590</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2011-06-23 16:14:22 -0700</bug_when>
    <thetext>This bug seems related to bug #22261.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426597</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-06-23 16:21:49 -0700</bug_when>
    <thetext>Apparently, Mac doesn&apos;t have the concept of mouse-focused-button :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426696</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-23 19:16:53 -0700</bug_when>
    <thetext>&gt; This bug seems related to bug #22261.

I think that it&apos;s a duplicate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426700</commentid>
    <comment_count>5</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-06-23 19:55:01 -0700</bug_when>
    <thetext>But that one is not Window 7 specific. It happens on all ports except Qt and Gtk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426734</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2011-06-23 22:45:21 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; But that one is not Window 7 specific. It happens on all ports except Qt and Gtk.

This bug isn&apos;t Windows 7 specific. Corey mentioned on IRC that he was using Windows 7. Hence I marked it as such.

After looking over the description and test case for bug #22261, and based on Alexey&apos;s assessment (comment 4), I am marking this bug as duplicate of bug #22261. If anyone feels that this bug isn&apos;t a duplicate then feel free to reopen it.

*** This bug has been marked as a duplicate of bug 22261 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>98424</attachid>
            <date>2011-06-23 16:07:39 -0700</date>
            <delta_ts>2011-06-23 16:07:39 -0700</delta_ts>
            <desc>HTML document demonstrating button events</desc>
            <filename>webkit-button.html</filename>
            <type>text/html</type>
            <size>619</size>
            <attacher name="Corey">proskater55</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+DQo8aHRtbCBsYW5nPSJlbiI+DQoJPGhlYWQ+DQoJCTxtZXRhIGNoYXJz
ZXQ9InV0Zi04IiAvPg0KCQk8dGl0bGU+V2Via2l0IEJ1dHRvbiBFbGVtZW50IFRlc3Q8L3RpdGxl
Pg0KCTwvaGVhZD4NCgk8Ym9keT4NCgkNCgkJPGJ1dHRvbiBpZD0iYnV0dG9uMSI+VGVzdCBCdXR0
b248L2J1dHRvbj4NCgkJDQoJCTxzY3JpcHQ+DQoJCQl2YXIgYnV0dG9uMSA9IGRvY3VtZW50Lmdl
dEVsZW1lbnRCeUlkKCdidXR0b24xJyk7DQoJCQkNCgkJCWJ1dHRvbjEub25mb2N1cyA9IGZ1bmN0
aW9uKCkgew0KCQkJCWlmICh0eXBlb2YgY29uc29sZSAhPSAndW5kZWZpbmVkJykNCgkJCQkJY29u
c29sZS5sb2coJ0J1dHRvbiBmb2N1c2VkIScpOw0KCQkJCWVsc2UNCgkJCQkJYWxlcnQoJ0J1dHRv
biBmb2N1c2VkIScpOw0KCQkJfTsNCgkJCQ0KCQkJYnV0dG9uMS5vbmJsdXIgPSBmdW5jdGlvbigp
IHsNCgkJCQlpZiAodHlwZW9mIGNvbnNvbGUgIT0gJ3VuZGVmaW5lZCcpDQoJCQkJCWNvbnNvbGUu
bG9nKCdCdXR0b24gYmx1cnJlZCcpOw0KCQkJCWVsc2UNCgkJCQkJYWxlcnQoJ0J1dHRvbiBibHVy
cmVkIScpOw0KCQkJfTsNCgkJPC9zY3JpcHQ+DQoJDQoJPC9ib2R5Pg0KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>