<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25236</bug_id>
          
          <creation_ts>2014-04-02 19:50:36 +0000</creation_ts>
          <short_desc>autocomplete fields: password types</short_desc>
          <delta_ts>2014-04-14 18:03:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>eoconnor</cc>
    
    <cc>gcasto</cc>
    
    <cc>ian</cc>
    
    <cc>MattN+w3</cc>
    
    <cc>mike</cc>
    
    <cc>mkwst</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103291</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-02 19:50:36 +0000</bug_when>
    <thetext>It would be useful for change-of-password fields for there to be a new autofill field that indicates that the password is a new one, as in:

   &lt;input type=password name=newpassword autocomplete=&quot;new-password&quot;&gt;
   &lt;input type=password name=confpassword autocomplete=&quot;new-password&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103319</commentid>
    <comment_count>1</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2014-04-03 09:01:34 +0000</bug_when>
    <thetext>Chrome will implement whatever syntax we agree upon here. The lack of a standard mechanism for signifying password/confirmation fields (as opposed to other fields of type &apos;password&apos;) is a pain point for our password autofill system.

I do believe there&apos;s value in distinguishing between new and confirmation password fields, if only because it allows us another heuristic with which to distinguish between &quot;Sign _up_&quot; and &quot;Sign _in_&quot; forms. If we wanted to be super clear, of course, we could add some metadata to the form itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103323</commentid>
    <comment_count>2</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2014-04-03 09:31:37 +0000</bug_when>
    <thetext>Also: as you mentioned on the list, UA&apos;s handling of &quot;Change password&quot; forms would benefit from being able to explicitly specify that a particular field of type &apos;password&apos; is your old password. &apos;old-password&apos; sounds like a reasonable value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103640</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-09 21:59:44 +0000</bug_when>
    <thetext>Can you elaborate on the new vs confirmation case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103653</commentid>
    <comment_count>4</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2014-04-10 07:25:55 +0000</bug_when>
    <thetext>I&apos;m not sure what I was thinking when I typed that. Both the &quot;new password&quot; and &quot;confirm new password&quot; fields could be designated via the same autocomplete value. That shouldn&apos;t create any problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103785</commentid>
    <comment_count>5</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2014-04-11 22:41:59 +0000</bug_when>
    <thetext>Safari would like to have old-/current- (unsure on naming) and new-password autocomplete tokens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103787</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-11 22:42:56 +0000</bug_when>
    <thetext>Should we not just assume that any field that is type=password and doesn&apos;t have an explicit autocomplete=&quot;&quot; value is the current (aka old) password?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103820</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-14 17:55:51 +0000</bug_when>
    <thetext>Evan pointed out to me privately that the problem with assuming that missing fields mean &quot;current password&quot; is that today there&apos;s lots of pages where it doesn&apos;t mean that.

But I really want to avoid having people write:

   &lt;input type=password name=password autocomplete=current-password&gt;

But maybe &quot;current-password&quot; is not so bad...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103821</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-14 18:03:10 +0000</bug_when>
    <thetext>Ok, done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103823</commentid>
    <comment_count>9</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-04-14 18:03:32 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8573.
Check-in comment: Add some autofill keywords for usernames and passwords.
http://html5.org/tools/web-apps-tracker?from=8572&amp;to=8573</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>