<?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>7405</bug_id>
          
          <creation_ts>2006-02-21 11:01:20 -0800</creation_ts>
          <short_desc>REGRESSION: password field should have focus after loading webmail.mac.com</short_desc>
          <delta_ts>2006-07-19 16:48:59 -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>DOM</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://webmail.mac.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vicki Murley">vicki</reporter>
          <assigned_to name="Adele Peterson">adele</assigned_to>
          <cc>adele</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33609</commentid>
    <comment_count>0</comment_count>
    <who name="Vicki Murley">vicki</who>
    <bug_when>2006-02-21 11:01:20 -0800</bug_when>
    <thetext>This bug is also in Radar as &lt;rdar://4422657&gt;

Go to webmail.mac.com.  After the page loads, the password field on this page should have focus.

Works in Safari on 10.4.4.

-------------------------------------------

&lt;GMT26-Jan-2006 07:45:11GMT&gt; Vicki Murley:
Crash reported in 4422624.

&lt;GMT26-Jan-2006 19:32:45GMT&gt; Adele Peterson:
Our new focus() code uses isFocusable() to determine whether or not to try to focus.  At the load time, there isn&apos;t a renderer for the input element, so isFocusable() fails.  Luckily, this works fine with our new text fields- so this problem should go away when we switch over.

&lt;GMT26-Jan-2006 19:50:55GMT&gt; Vicki Murley:
One important thing to know when testing this fix -
If i load the page, see it fail, close the window, load the page again -- it works.  The password field has focus.  This only fails the first time you launch Safari (maybe also after waiting a bit of time btwn tests).  

&lt;GMT26-Jan-2006 22:53:39GMT&gt; Adele Peterson:
I realized that my earlier test was wrong.  I think the reason there isn&apos;t a renderer is that the style sheet hasn&apos;t loaded yet.

&lt;GMT26-Jan-2006 22:54:42GMT&gt; Adele Peterson:
We used to not care about the renderer, since we&apos;d just set the focus node, and then when the element&apos;s widget got focus, it would run some code to reveal the element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50303</commentid>
    <comment_count>1</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-07-18 15:23:45 -0700</bug_when>
    <thetext>I have a fix for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50392</commentid>
    <comment_count>2</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-07-19 16:48:59 -0700</bug_when>
    <thetext>Committed revision 15532</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>