phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

Fields incorrectly filled in by browsers in admin area

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.1/Ascreaus followed by 3.2/Arsia.

Fields incorrectly filled in by browsers in admin area

Postby Ryan Williams » Thu Jun 02, 2011 9:02 am

An issue I've noticed present in phpBB3 for a while is that when you go to an 'edit user' page in the admin control panel, certain browsers such as Firefox and Chrome will incorrectly fill in a couple of the fields with your login details if you happen to have the browser set to remember your phpBB login: the 'confirm email' field is populated with your username, and the 'password' field is populated with your password.

phpbb_issue.png

This isn't too problematic because due to the need to confirm emails and passwords a second time, so it can't realistically result in an accidental overwrite; however it does present an annoyance due to the need to either clear these fields whenever making user changes or instruct your browser to not remember your login details.

I haven't looked too deeply into what exactly this affects and why, but I assume it's down to something as little as the field IDs needing changing. It affects the latest versions of Firefox and Chrome at the very least, and in Firefox it's not so obvious the fields have been auto-filled as they don't go yellow like in Chrome.

I realise this is more a browser issue than a phpBB issue, but if it were my software I'd resolve this due to how often it's likely to be encountered — so do what you will. ;)
Ryan Williams
Registered User
 
Posts: 2
Joined: Thu Mar 20, 2008 3:39 pm

Re: Fields incorrectly filled in by browsers in admin area

Postby naderman » Fri Jun 03, 2011 1:01 am

I agree it would be great if we could avoid this somehow.
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1650
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Re: Fields incorrectly filled in by browsers in admin area

Postby Oleg » Fri Jun 03, 2011 4:25 am

Setting autocomplete=off on affected fields should do the trick. And deleting the second email field would make the addition of autocomplete=off harmless.
Oleg
3.1 Release Manager
3.1 Release Manager
 
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am

Re: Fields incorrectly filled in by browsers in admin area

Postby DavidIQ » Fri Jun 03, 2011 10:38 am

I don't think the autocomplete attribute is valid XHTML.
Image
User avatar
DavidIQ
MOD Team Leader
MOD Team Leader
 
Posts: 760
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth

Re: Fields incorrectly filled in by browsers in admin area

Postby igorw » Fri Jun 03, 2011 3:29 pm

It is not, but I care more about user experience than complying 100% with XHTML.
User avatar
igorw
Registered User
 
Posts: 500
Joined: Thu Jan 04, 2007 11:47 pm

Re: Fields incorrectly filled in by browsers in admin area

Postby naderman » Fri Jun 03, 2011 4:44 pm

Yeah it'd be great if there was a way to avoid it, but I think usability comes first in this case.
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1650
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Re: Fields incorrectly filled in by browsers in admin area

Postby naderman » Fri Jun 03, 2011 5:10 pm

Reopened this ticket and posted a fix: http://tracker.phpbb.com/browse/PHPBB3-8138
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1650
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Re: Fields incorrectly filled in by browsers in admin area

Postby bantu » Mon Jun 06, 2011 11:24 am

Hmm, I'm not sure. We've had a very strict policy about XHTML strictness in the past.

A similar issue would be http://tracker.phpbb.com/browse/PHPBB3-9457 which has been reverted because it was not XHTML strict.
User avatar
bantu
3.0 Release Manager
3.0 Release Manager
 
Posts: 438
Joined: Thu Sep 07, 2006 11:22 am
Location: Karlsruhe, Germany

Re: Fields incorrectly filled in by browsers in admin area

Postby Ryan Williams » Mon Jun 06, 2011 11:37 am

Then maybe the IDs of the fields can be looked at to determine why it applies the auto-entry to those particular fields? It might be more of a workaround using obscure field IDs or whatever but that's certainly better than breaking validation.
Ryan Williams
Registered User
 
Posts: 2
Joined: Thu Mar 20, 2008 3:39 pm

Re: Fields incorrectly filled in by browsers in admin area

Postby naderman » Mon Jun 06, 2011 3:25 pm

Firefox simply picks any password field and the text input above it. Changing the ids does not circumvent that. Anyway this is ACP only, and a major PITA for users, so dropping this for concerns about markup validity seems like a poor choice.
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1650
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Next

Return to [3.x] Discussion

Who is online

Users browsing this forum: Bing [Bot] and 16 guests