<?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>9625</bug_id>
          
          <creation_ts>2006-06-27 16:49:58 -0700</creation_ts>
          <short_desc>REGRESSION: Focus is not removed from password field after I ctrl-click into a different field</short_desc>
          <delta_ts>2006-07-14 12:04:14 -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>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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>EasyFix, HasReduction, InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Petersen">c.petersen87</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adele</cc>
    
    <cc>darin</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47397</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Petersen">c.petersen87</who>
    <bug_when>2006-06-27 16:49:58 -0700</bug_when>
    <thetext>If I have focus in a password type field and ctrl-click on another input field, focus is not removed from the password field. I will then have TWO fields that have a focus ring and a flashing caret.

* STEPS TO REPRODUCE
1. With a TOT webkit nightly build, go to any site that includes both a input text field and password field. (like gmail)
2. Place the caret into the password field 
3. Ctrl-click into the input text field and mouse up (don&apos;t select anything in the contextual menu).
4. Notice that focus is placed on the input field but not removed from password field.

* RESULTS
Focus should removed from the password field but isn&apos;t.

* REGRESSION
Yes, this only happens with native text fields.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47398</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Petersen">c.petersen87</who>
    <bug_when>2006-06-27 16:52:53 -0700</bug_when>
    <thetext>This issue has been filed as&lt;rdar://problem/4604703&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47657</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-28 08:54:06 -0700</bug_when>
    <thetext>The cause of this is code in WebHTMLView.m that doesn&apos;t return YES from acceptsFirstResponder. Should be easy to fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47658</commentid>
    <comment_count>3</comment_count>
      <attachid>9078</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-28 09:00:46 -0700</bug_when>
    <thetext>Created attachment 9078
reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47659</commentid>
    <comment_count>4</comment_count>
      <attachid>9079</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-28 09:01:13 -0700</bug_when>
    <thetext>Created attachment 9079
patch, with change log but no test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49757</commentid>
    <comment_count>5</comment_count>
    <who name="David Carson">dacarson</who>
    <bug_when>2006-07-14 04:44:40 -0700</bug_when>
    <thetext>Seems that a fix was checked in r15419, but this defect has not been updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49758</commentid>
    <comment_count>6</comment_count>
    <who name="David Carson">dacarson</who>
    <bug_when>2006-07-14 04:56:33 -0700</bug_when>
    <thetext>Comment from svn log. rdar number matches this bug. Marking as fixed

r15419 | adele | 2006-07-14 02:48:17 -0400 (Fri, 14 Jul 2006) | 13 lines

        Reviewed by Maciej.

        - Fix for &lt;rdar://problem/4604703&gt; 
        REGRESSION (NativeTextField): Focus is not removed from password field after I ctrl-click into a different field

        Test:
        * manual-tests/password-ctrl-click-lose-focus.html: Added.

        * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
        If we&apos;re about to set a selection in the current view, make sure its the first responder.
        In this case, this will cause the password field to resign first responder at the right time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49823</commentid>
    <comment_count>7</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-07-14 12:04:14 -0700</bug_when>
    <thetext>I backed out my original change and checked in Darin&apos;s.

Committed revision 15430.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>9078</attachid>
            <date>2006-06-28 09:00:46 -0700</date>
            <delta_ts>2006-06-28 09:00:46 -0700</delta_ts>
            <desc>reduction</desc>
            <filename>password-focus-reduction.html</filename>
            <type>text/html</type>
            <size>148</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">PHA+Q2xpY2sgaW4gdGhlIGZpcnN0IChwYXNzd29yZCkgZmllbGQsIHRoZW4gY29udHJvbCBjbGlj
ayBpbiB0aGUgc2Vjb25kIChub3QgcGFzc3dvcmQpIGZpZWxkLjwvcD4KPGRpdj48aW5wdXQgdHlw
ZT1wYXNzd29yZD48aW5wdXQgdHlwZT10ZXh0PjwvZGl2Pg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9079</attachid>
            <date>2006-06-28 09:01:13 -0700</date>
            <delta_ts>2006-06-28 09:01:13 -0700</delta_ts>
            <desc>patch, with change log but no test</desc>
            <filename>ControlClickFocusPatch.txt</filename>
            <type>text/plain</type>
            <size>1514</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L0NoYW5nZUxvZwko
cmV2aXNpb24gMTUwNzk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zdEhpdFZpZXcgPSBuaWw7CiB7CiAg
ICAgW19wcml2YXRlLT5jb21wQ29udHJvbGxlciBlbmRSZXZlcnRpbmdDaGFuZ2U6Tk8gbW92ZUxl
ZnQ6Tk9dOwogCi0gICAgaWYgKFtbc2VsZiBfYnJpZGdlXSBzZW5kQ29udGV4dE1lbnVFdmVudDpl
dmVudF0pIHsKKyAgICBfcHJpdmF0ZS0+aGFuZGxpbmdNb3VzZURvd25FdmVudCA9IFlFUzsKKyAg
ICBCT09MIGhhbmRsZWRFdmVudCA9IFtbc2VsZiBfYnJpZGdlXSBzZW5kQ29udGV4dE1lbnVFdmVu
dDpldmVudF07CisgICAgX3ByaXZhdGUtPmhhbmRsaW5nTW91c2VEb3duRXZlbnQgPSBOTzsKKyAg
ICBpZiAoaGFuZGxlZEV2ZW50KQogICAgICAgICByZXR1cm4gbmlsOwotICAgIH0KKwogICAgIE5T
UG9pbnQgcG9pbnQgPSBbc2VsZiBjb252ZXJ0UG9pbnQ6W2V2ZW50IGxvY2F0aW9uSW5XaW5kb3dd
IGZyb21WaWV3Om5pbF07CiAgICAgTlNEaWN0aW9uYXJ5ICplbGVtZW50ID0gW3NlbGYgZWxlbWVu
dEF0UG9pbnQ6cG9pbnRdOwogICAgIHJldHVybiBbW3NlbGYgX3dlYlZpZXddIF9tZW51Rm9yRWxl
bWVudDplbGVtZW50IGRlZmF1bHRJdGVtczpuaWxdOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>