<?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>24093</bug_id>
          
          <creation_ts>2009-02-23 06:37:16 -0800</creation_ts>
          <short_desc>Autofocus inputs don&apos;t always honor selector input:focus</short_desc>
          <delta_ts>2011-11-08 21:48:01 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lachy.id.au/dev/markup/tests/html5/autofocus/016.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>19264</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Anthony Ricaud">rik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>kaustubh.ra</cc>
    
    <cc>michelangelo</cc>
    
    <cc>rniwa</cc>
    
    <cc>tkent</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110573</commentid>
    <comment_count>0</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2009-02-23 06:37:16 -0800</bug_when>
    <thetext>This test by Lachlan Hunt fails. The focus is good but the field should be green.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159923</commentid>
    <comment_count>1</comment_count>
    <who name="Michelangelo De Simone">michelangelo</who>
    <bug_when>2009-11-02 14:19:27 -0800</bug_when>
    <thetext>*** Bug 31031 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>472136</commentid>
    <comment_count>2</comment_count>
    <who name="Kaustubh Atrawalkar">kaustubh.ra</who>
    <bug_when>2011-09-23 03:19:19 -0700</bug_when>
    <thetext>I guess this has been fixed. Can be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>472626</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-09-23 16:53:15 -0700</bug_when>
    <thetext>Should we land this as a regression test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497843</commentid>
    <comment_count>4</comment_count>
      <attachid>114010</attachid>
    <who name="Kaustubh Atrawalkar">kaustubh.ra</who>
    <bug_when>2011-11-08 01:30:55 -0800</bug_when>
    <thetext>Created attachment 114010
Patch for Adding test case

As this has been already fixed, adding regression test case for the same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498027</commentid>
    <comment_count>5</comment_count>
      <attachid>114010</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2011-11-08 07:09:07 -0800</bug_when>
    <thetext>Comment on attachment 114010
Patch for Adding test case

View in context: https://bugs.webkit.org/attachment.cgi?id=114010&amp;action=review

&gt; LayoutTests/fast/forms/autofocus-input-css-style-change.html:18
&gt; +if (window.layoutTestController) {
&gt; +    layoutTestController.dumpAsText();
&gt; +}
&gt; +
&gt; +var test = document.getElementById(&quot;test&quot;);
&gt; +if (document.defaultView.getComputedStyle(test, null).getPropertyValue(&apos;background-color&apos;) == &quot;rgb(0, 128, 0)&quot;)
&gt; +    result.innerHTML = &quot;PASS&quot;;

The code style is consistent. The first if has {} for 1-line body, and the second if has no {} for 1-line body.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498028</commentid>
    <comment_count>6</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2011-11-08 07:09:28 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; The code style is consistent. The first if has {} for 1-line body, and the second if has no {} for 1-line body.

consistent -&gt; inconsistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498109</commentid>
    <comment_count>7</comment_count>
      <attachid>114010</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-11-08 08:47:43 -0800</bug_when>
    <thetext>Comment on attachment 114010
Patch for Adding test case

The comment seems minor enough to land as is, marking cq+.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498178</commentid>
    <comment_count>8</comment_count>
      <attachid>114010</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-11-08 10:04:26 -0800</bug_when>
    <thetext>Comment on attachment 114010
Patch for Adding test case

Clearing flags on attachment: 114010

Committed r99582: &lt;http://trac.webkit.org/changeset/99582&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498179</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-11-08 10:04:30 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498645</commentid>
    <comment_count>10</comment_count>
    <who name="Kaustubh Atrawalkar">kaustubh.ra</who>
    <bug_when>2011-11-08 21:48:01 -0800</bug_when>
    <thetext>Thanks for the review Kent &amp; Alexey.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>114010</attachid>
            <date>2011-11-08 01:30:55 -0800</date>
            <delta_ts>2011-11-08 10:04:26 -0800</delta_ts>
            <desc>Patch for Adding test case</desc>
            <filename>24093_patch.txt</filename>
            <type>text/plain</type>
            <size>2031</size>
            <attacher name="Kaustubh Atrawalkar">kaustubh.ra</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09P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