<?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>9236</bug_id>
          
          <creation_ts>2006-06-02 08:47:51 -0700</creation_ts>
          <short_desc>REGRESSION: focus method does not work on some elements before they are laid out</short_desc>
          <delta_ts>2006-06-02 17:15:41 -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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>EasyFix, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Adler">darin</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>justin.garcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44379</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-02 08:47:51 -0700</bug_when>
    <thetext>The fast/forms/access-key.html layout test is failing. That&apos;s because the focus method isn&apos;t working because the page isn&apos;t laid out yet; the input element still has a width of 0. Easy to fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44380</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-02 08:48:16 -0700</bug_when>
    <thetext>This must be a regression since the test used to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44381</commentid>
    <comment_count>2</comment_count>
      <attachid>8666</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-02 08:51:01 -0700</bug_when>
    <thetext>Created attachment 8666
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44383</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-02 09:06:12 -0700</bug_when>
    <thetext>Mitz found where this regressed.

Change 14666 for bug &lt;rdar://problem/4567752&gt; rearranged Element::focus, putting the isFocusable call before the layout.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44398</commentid>
    <comment_count>4</comment_count>
      <attachid>8666</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-06-02 10:54:24 -0700</bug_when>
    <thetext>Comment on attachment 8666
patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44484</commentid>
    <comment_count>5</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2006-06-02 17:15:41 -0700</bug_when>
    <thetext>Maciej landed this in r14699.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>8666</attachid>
            <date>2006-06-02 08:51:01 -0700</date>
            <delta_ts>2006-06-02 10:54:24 -0700</delta_ts>
            <desc>patch</desc>
            <filename>FocusPatch.txt</filename>
            <type>text/plain</type>
            <size>1121</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">SW5kZXg6IGRvbS9FbGVtZW50LmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBkb20vRWxlbWVudC5jcHAJKHJl
dmlzaW9uIDE0Njg0KQorKysgZG9tL0VsZW1lbnQuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC04MjEs
MTIgKzgyMSwxMiBAQAogCiB2b2lkIEVsZW1lbnQ6OmZvY3VzKCkKIHsKLSAgICBpZiAoIWlzRm9j
dXNhYmxlKC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IEtpbHplciAgPGRka2lsemVyQGtp
bHplci5uZXQ+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgbWpzLgo=
</data>
<flag name="review"
          id="2497"
          type_id="1"
          status="+"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>