<?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>13724</bug_id>
          
          <creation_ts>2007-05-14 20:01:54 -0700</creation_ts>
          <short_desc>Checkbox onBlur event doesn&apos;t fire when clicked with mouse</short_desc>
          <delta_ts>2022-08-30 22:03:24 -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>New Bugs</component>
          <version>419.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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="Shawn Porter">sporter</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>brilliand+bugzilla</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9999</commentid>
    <comment_count>0</comment_count>
    <who name="Shawn Porter">sporter</who>
    <bug_when>2007-05-14 20:01:54 -0700</bug_when>
    <thetext>onBlur event never fires for input type=textbox</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10000</commentid>
    <comment_count>1</comment_count>
      <attachid>14557</attachid>
    <who name="Shawn Porter">sporter</who>
    <bug_when>2007-05-14 20:02:33 -0700</bug_when>
    <thetext>Created attachment 14557
simple testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9970</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-05-14 22:14:02 -0700</bug_when>
    <thetext>Hi Shawn, thanks for the bug report!  This issue appears to be fixed in recent WebKit nightly builds.  Could you test to confirm this? http://nightly.webkit.org/

Just download a DMG, mount it, double-click on the gold Safari icon, then try the test.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9888</commentid>
    <comment_count>3</comment_count>
    <who name="Shawn Porter">sporter</who>
    <bug_when>2007-05-15 06:56:43 -0700</bug_when>
    <thetext>I downloaded the latest nightly build and this is not fixed in it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9893</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-05-15 08:02:41 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; I downloaded the latest nightly build and this is not fixed in it.

When tabbing through the input elements on the page, onblur events are fired for both the checkbox and the text field.

However, when clicking on the checkbox with the mouse, then clicking elsewhere on the page, neither shipping Safari nor a local debug build of WebKit r21473 fire an onblur event.

Firefox 2.0.0.3 and Opera 9.10 both fire onblur events when clicking a checkbox, then clicking off of it.

Someone needs to test to see what MSIE 6 and/or 7 do.

Confirmed with a local debug build of WebKig r21473 with Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).  This is NOT a regression from shipping Safari as it has the same behavior.

Shawn, please provide exact steps to reproduce in the future.  Even with reduced test cases, sometimes it&apos;s not obvious how to reproduce a bug.  Thanks!

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9894</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-05-15 08:05:40 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Shawn, please provide exact steps to reproduce in the future.  Even with
&gt; reduced test cases, sometimes it&apos;s not obvious how to reproduce a bug.  Thanks!

As I should have done:

* STEPS TO REPRODUCE
1. Load test case.
2. Click on checkbox using mouse to check the box.  (Note that it does not get a focus ring.)
3. Click elsewhere on the page.

* EXPECTED RESULTS
A JavaScript alert() should have fired saying the onblur event fired.

* ACTUAL RESULTS
No JavaScript alert() fired.

* REGRESSION
Shipping Tiger Safari has the same behavior as WebKit.  Both Firefox 2.0.0.3 and Opera 9.10 fire an onblur event in this case.  MSIE 6/7 are as yet untested.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9896</commentid>
    <comment_count>6</comment_count>
    <who name="Shawn Porter">sporter</who>
    <bug_when>2007-05-15 08:48:17 -0700</bug_when>
    <thetext>OnBlur does fire in IE 6 (6.0.2800.1106) for this test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9917</commentid>
    <comment_count>7</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-05-15 12:09:33 -0700</bug_when>
    <thetext>This is not a bug.  Buttons and checkboxes and radio buttons are not focusable via the mouse on OS X.  The checkbox isn&apos;t firing onblur because it never even got focused.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9864</commentid>
    <comment_count>8</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-05-15 22:47:31 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; This is not a bug.  Buttons and checkboxes and radio buttons are not focusable
&gt; via the mouse on OS X.  The checkbox isn&apos;t firing onblur because it never even
&gt; got focused.

So is Firefox wrong in this case?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9865</commentid>
    <comment_count>9</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-05-15 22:50:46 -0700</bug_when>
    <thetext>Nobody is wrong.  Firefox just isn&apos;t matching OS X.  They chose to behave like Firefox (and WinIE) on Windows.  This is one of those cases where the bug reporter is assuming the whole world should be like Windows.  And it&apos;s not. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75014</commentid>
    <comment_count>10</comment_count>
    <who name="Josh Peters">jcpeters</who>
    <bug_when>2008-03-24 15:15:50 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; Nobody is wrong.  Firefox just isn&apos;t matching OS X.  They chose to behave like
&gt; Firefox (and WinIE) on Windows.  This is one of those cases where the bug
&gt; reporter is assuming the whole world should be like Windows.  And it&apos;s not. :)

I&apos;ll confirm that this exists for Safari on Windows.  Can this be fixed there, at least?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451806</commentid>
    <comment_count>11</comment_count>
    <who name="Silas Brill">brilliand+bugzilla</who>
    <bug_when>2011-08-16 12:57:55 -0700</bug_when>
    <thetext>I ran into this problem in Chrome on Windows just a few minutes ago.  Bumping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894991</commentid>
    <comment_count>12</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-30 16:59:06 -0700</bug_when>
    <thetext>I am able to reproduce this bug using attached test case and it does not show &quot;checkbox onBlur works&quot; similar to other browser when after checking &quot;checkbox&quot;, you focus on &quot;input&quot; field and it is happening Safari Technology Preview 152.

Other browsers (Chrome Canary 107 and Firefox Nightly 106) both show above alert for &quot;checkbox&quot; but Safari does not.

Just wanted to share updated results. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895058</commentid>
    <comment_count>13</comment_count>
    <who name="Aditya Keerthi">akeerthi</who>
    <bug_when>2022-08-30 22:03:24 -0700</bug_when>
    <thetext>Non-text input elements do not gain focus on click, hence, there is no blur event.

*** This bug has been marked as a duplicate of bug 22261 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14557</attachid>
            <date>2007-05-14 20:02:33 -0700</date>
            <delta_ts>2007-05-14 20:02:33 -0700</delta_ts>
            <desc>simple testcase</desc>
            <filename>confirm_onBlur_bug.html</filename>
            <type>text/html</type>
            <size>482</size>
            <attacher name="Shawn Porter">sporter</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL2h0bWw0L2xvb3NlLmR0ZCI+CjxodG1sPgo8aGVh
ZD4KPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNo
YXJzZXQ9aXNvLTg4NTktMSI+Cjx0aXRsZT5VbnRpdGxlZCBEb2N1bWVudDwvdGl0bGU+CjwvaGVh
ZD4KCjxib2R5PgoKPGZvcm0+Cgo8cD4KPGlucHV0IHR5cGU9ImNoZWNrYm94IiBuYW1lPSJ0ZXN0
Q2hlY2tib3giIHZhbHVlPSIxIiBvbkJsdXI9ImFsZXJ0KCdjaGVja2JveCBvbkJsdXIgd29ya3Mn
KTsiPgo8L3A+Cgo8cD4KPGlucHV0IHR5cGU9InRleHQiIG5hbWU9InRleHRUZXh0SW5wdXQiIHZh
bHVlPSIiIG9uQmx1cj0iYWxlcnQoJ3RleHQgaW5wdXQgb25CbHVyIHdvcmtzIScpOyI+CjwvcD4K
CjwvZm9ybT4KCjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>