[wp-trac] [WordPress Trac] #24364: Fix autocomplete="off" in Chrome

WordPress Trac noreply at wordpress.org
Wed Jun 26 16:53:27 UTC 2013


#24364: Fix  autocomplete="off" in Chrome
----------------------------+-----------------------
 Reporter:  azaozz          |       Owner:  azaozz
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  3.6
Component:  Administration  |     Version:
 Severity:  blocker         |  Resolution:
 Keywords:                  |
----------------------------+-----------------------

Comment (by markjaquith):

 bobbingwide — that gave me some further ideas.

 1: Make all the form's password fields disabled on page load, then enables
 them a little bit later.

 {{{
 <script>
 jQuery(function($){
         $( 'input[type="password"]:enabled', '#your-profile'
 ).each(function(k,v) {
                 $(v).prop( 'disabled', true );
                 setTimeout( function(){ $(v).prop( 'disabled', false ); },
 200 );
         });
 });
 </script>
 }}}

 2: Set the whole form to `autocomplete="off"` in the HTML and then:

 {{{
 <script>
 jQuery(function($){
         setTimeout( function(){ $('#your-profile').prop('autocomplete',
 'on'); }, 500 );
 });
 </script>
 }}}

 Longer delay here as not having autocomplete available isn't as worrisome
 as not being able to click the password fields.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24364#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list