<?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>103936</bug_id>
          
          <creation_ts>2012-12-03 15:12:42 -0800</creation_ts>
          <short_desc>Long pause/hang after deleting last character of password field at bottom of large DOM tree</short_desc>
          <delta_ts>2012-12-04 10:56:53 -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>DUPLICATE</resolution>
          <dup_id>79815</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>jmlai85</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>781930</commentid>
    <comment_count>0</comment_count>
    <who name="">jmlai85</who>
    <bug_when>2012-12-03 15:12:42 -0800</bug_when>
    <thetext>Deleting the last remaining character in a password field causes a significant pause if the password field appears near the end of a large/complex page.

E.g. for a password field appearing at the bottom of a large document, type in &quot;a&quot; and then hit delete. There is a delay that is not present for password input forms appearing at the top of the page.

The pause/hang seems to be proportional (or worse) to the number of DOM elements *preceding* the password input field in the document tree. On a mobile device (tested on Mobile Safari on iOS), the hang can last for 10 seconds or longer for the slickdeals.net site mentioned below.

For a real-world example:

1) Go to http://slickdeals.net
2) Click on the &quot;Log In&quot; link in the upper right hand corner of the page.
3) A login form should appear. Type one or more characters into the password field.
4) Delete all characters from the password field. The last character takes slightly longer to remove.

For a synthetic example:

1) Download and open the attached html document.
2) Choose &quot;Display 1000 items&quot;
3) Enter and delete text in both password fields
4) Choose &quot;Display 10000 items&quot;
5) Enter and delete text in the password fields. This will hang the browser tab for an extended period of time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>781931</commentid>
    <comment_count>1</comment_count>
      <attachid>177345</attachid>
    <who name="">jmlai85</who>
    <bug_when>2012-12-03 15:14:18 -0800</bug_when>
    <thetext>Created attachment 177345
Test page for reproducing issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>782716</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-12-04 10:56:53 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 79815 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>177345</attachid>
            <date>2012-12-03 15:14:18 -0800</date>
            <delta_ts>2012-12-03 15:14:18 -0800</delta_ts>
            <desc>Test page for reproducing issue</desc>
            <filename>password.html</filename>
            <type>text/html</type>
            <size>861</size>
            <attacher>jmlai85</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogIDxzY3JpcHQ+CiAgICBmdW5jdGlvbiBmaWxsX2RvbSAoY291bnQpIHsK
ICAgICAgdmFyIGRpdiA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJjb21wbGV4X2NvbnRlbnRz
Iik7CgogICAgICBkaXYuaW5uZXJIVE1MID0gIiI7IC8vIGNsZWFyIGNoaWxkcmVuCgogICAgICAv
LyBjcmVhdGUgZG9tIGVsZW1lbnRzCiAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgY291bnQ7IGkr
KykgewogICAgICAgIHZhciBjaGlsZCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoImRpdiIpOwog
ICAgICAgIG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