<?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>5879</bug_id>
          
          <creation_ts>2005-11-29 13:23:04 -0800</creation_ts>
          <short_desc>REGRESSION: Buttons go into pushed state when moused over when text field has focus</short_desc>
          <delta_ts>2005-11-29 17:50:21 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.unsanity.org/archives/000439.php</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rosyna">webkit-bugs</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24885</commentid>
    <comment_count>0</comment_count>
    <who name="Rosyna">webkit-bugs</who>
    <bug_when>2005-11-29 13:23:04 -0800</bug_when>
    <thetext>Go to http://www.unsanity.org/archives/000439.php and click inside the comments text field. While the 
view has keyboard focus, mouse over the preview or post buttons. They will go into the pushed state. This 
is not 100% reproducible which makes it even more annoying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24886</commentid>
    <comment_count>1</comment_count>
      <attachid>4854</attachid>
    <who name="Rosyna">webkit-bugs</who>
    <bug_when>2005-11-29 13:23:57 -0800</bug_when>
    <thetext>Created attachment 4854
testcase: click in the textview</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24887</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-11-29 13:30:01 -0800</bug_when>
    <thetext>Confirmed on TOT. Due to randomness of the phenomenon, I couldn&apos;t reproduce it with the attached 
testcase, but I&apos;m actually seeing it right now as I&apos;m typing in the comments text area if I move the mouse 
over the Commit button. This regression is as old as the customizable buttons, IIRC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24893</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-11-29 15:29:56 -0800</bug_when>
    <thetext>I don&apos;t know this code, but from looking around with gdb, the problem might be that the KHTMLView&apos;s d-
&gt;mousePressed stays at true after you click in an AppKit widget such as a text area. If a few other 
parameters are lined up, an :active chain gets frozen, consisting of a bunch of objects, which may include 
buttons and also normal text links. Those objects will change to/from their :active state as the mouse 
passes over them, like what happens when you mousedown in an object and start dragging around.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24895</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-11-29 15:44:30 -0800</bug_when>
    <thetext>More likely, the fact that (d-&gt;mousePressed == true) throughout is normal, and the problem is those 
stray objects which thing that think that they are in the active chain. I don&apos;t see NodeImpl&apos;s m_hovered 
being initialized to false, and that&apos;s a bad sign.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24896</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-11-29 15:45:25 -0800</bug_when>
    <thetext>s/m_hovered/m_inActiveChain/
Sorry for the spam.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25161</commentid>
    <comment_count>6</comment_count>
      <attachid>4856</attachid>
    <who name="">mitz</who>
    <bug_when>2005-11-29 16:13:01 -0800</bug_when>
    <thetext>Created attachment 4856
Initialize m_inActiveChain to false

Should have noticed this when bug 4221 was fixed :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25162</commentid>
    <comment_count>7</comment_count>
      <attachid>4856</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-11-29 16:23:26 -0800</bug_when>
    <thetext>Comment on attachment 4856
Initialize m_inActiveChain to false

I&apos;ve seen this happen too. It would be even better if we could have a dom test
to prevent this from regressing again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25170</commentid>
    <comment_count>8</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-11-29 17:50:21 -0800</bug_when>
    <thetext>I can&apos;t believe this! Beth and I spotted this uninitialized variable *today* while fixing another bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4854</attachid>
            <date>2005-11-29 13:23:57 -0800</date>
            <delta_ts>2005-11-29 13:25:32 -0800</delta_ts>
            <desc>testcase: click in the textview</desc>
            <filename>focustest.html</filename>
            <type>text/html</type>
            <size>334</size>
            <attacher name="Rosyna">webkit-bugs</attacher>
            
              <data encoding="base64">PGh0bWw+PGhlYWQ+PHRpdGxlPkZvY3VzIFZpZXcgVGVzdDwvdGl0bGU+PC9oZWFkPjxib2R5Pjxm
b3JtPjx0ZXh0YXJlYSB0YWJpbmRleD0iNCIgaWQ9InRleHQiIG5hbWU9InRleHQiIHJvd3M9IjEw
IiBjb2xzPSI1MCI+PC90ZXh0YXJlYT4KPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0icHJldmll
dyIgdGFiaW5kZXg9IjUiIAogICAgdmFsdWU9IlByZXZpZXciIC8+CjxpbnB1dCBzdHlsZT0iZm9u
dC13ZWlnaHQ6IGJvbGQ7IiB0eXBlPSJzdWJtaXQiIG5hbWU9InBvc3QiIAogICAgdGFiaW5kZXg9
IjYiIHZhbHVlPSJQb3N0IiAvPgo8L2Rpdj4KPC9mb3JtPgo8L2JvZHk+PC9odG1sPg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4856</attachid>
            <date>2005-11-29 16:13:01 -0800</date>
            <delta_ts>2005-11-29 16:23:26 -0800</delta_ts>
            <desc>Initialize m_inActiveChain to false</desc>
            <filename>5879_r1.patch</filename>
            <type>text/plain</type>
            <size>1398</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvcm9vdC9X
ZWJDb3JlL0NoYW5nZUxvZyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS40MzEKZGlmZiAtcCAtdSAt
cjEuNDMxIFdlYkNvcmUvQ2hhbmdlTG9nCi0tLSBXZWJDb3JlL0NoYW5nZUxvZwkyOSBOb3YgMjAw
NSAyMjoxNDowNSAtMDAwMAkxLjQzMQorKysgV2ViQ29yZS9DaGFuZ2VMb2cJMzAgTm92IDIwMDUg
MDA6MTM6MDkgLTAwMDAKQEAgLTEsMyArMSwxMyBAQAorMjAwNS0xMS0zMCAgTWl0eiBQZXR0ZWwg
IDxvcGVuZGFyd2luLm9yZ0BtaXR6cGV0dGVsLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICAtIGZpeGVkIGh0dHA6Ly9idWd6aWxsYS5vcGVuZGFy
d2luLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NTg3OQorICAgICAgICAgIFJFR1JFU1NJT046IEJ1dHRv
bnMgZ28gaW50byBwdXNoZWQgc3RhdGUgd2hlbiBtb3VzZWQgb3ZlciB3aGVuIHRleHQgZmllbGQg
aGFzIGZvY3VzCisKKyAgICAgICAgKiBraHRtbC94bWwvZG9tX25vZGVpbXBsLmNwcDoKKyAgICAg
ICAgKERPTTo6Tm9kZUltcGw6Ok5vZGVJbXBsKTogSW5pdGlhbGl6ZSBtX2luQWN0aXZlQ2hhaW4g
dG8gZmFsc2UuCisKIDIwMDUtMTEtMjkgIERhdmlkIEhhcnJpc29uICA8aGFycmlzb25AYXBwbGUu
Y29tPgogCiAgICAgICAgIFJldmlld2VkIGJ5IEpvaG4gU3VsbGl2YW4uCkluZGV4OiBXZWJDb3Jl
L2todG1sL3htbC9kb21fbm9kZWltcGwuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvcm9v
dC9XZWJDb3JlL2todG1sL3htbC9kb21fbm9kZWltcGwuY3BwLHYKcmV0cmlldmluZyByZXZpc2lv
biAxLjIxNgpkaWZmIC1wIC11IC1yMS4yMTYgV2ViQ29yZS9raHRtbC94bWwvZG9tX25vZGVpbXBs
LmNwcAotLS0gV2ViQ29yZS9raHRtbC94bWwvZG9tX25vZGVpbXBsLmNwcAkyNiBOb3YgMjAwNSAy
MjozNTo0NCAtMDAwMAkxLjIxNgorKysgV2ViQ29yZS9raHRtbC94bWwvZG9tX25vZGVpbXBsLmNw
cAkzMCBOb3YgMjAwNSAwMDoxMzoyMiAtMDAwMApAQCAtMTI4LDYgKzEyOCw3IEBAIE5vZGVJbXBs
OjpOb2RlSW1wbChEb2N1bWVudEltcGwgKmRvYykKICAgICAgIG1fZm9jdXNlZCggZmFsc2UgKSwK
ICAgICAgIG1fYWN0aXZlKCBmYWxzZSApLAogICAgICAgbV9ob3ZlcmVkKGZhbHNlKSwKKyAgICAg
IG1faW5BY3RpdmVDaGFpbihmYWxzZSksCiAgICAgICBtX3N0eWxlRWxlbWVudCggZmFsc2UgKSwK
ICAgICAgIG1faW1wbGljaXQoIGZhbHNlICkKIHsK
</data>
<flag name="review"
          id="917"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>