https://www.icyphoenix.com/viewtopic.php?f=35&t=514&p=4033#p4033 ----------------------------------- moreteavicar Tue 24 Oct, 2006 14:24 Firefox and its dislike of Autocomplete = "off" ----------------------------------- Despite the tabbed browsing feature, Firefox otherwise is a real pain for many reasons, especially is you are a making a web page. One problem is autocompletion. You might want to make a site more secure/easier to administer by disabling auto-completion regardless of whather the user has it set in their preferenes. An example here is changing a usernames password because they've forgotten their original one. When you go into ACP>>user management, the username and password gets auto-filled by firefox - incredibly annoying! Yes, you can personally go into firefox and change the autofill settings (not by much, you can only delete them - mozilla had a much better system!), but we should be a little more clever and allow autocomplete still to work for some things, and not for others. I have tried, unsuccessfully thus far, to implement this for firefox though. I thought I'd list the ideas here, so that anybody else trying this will know what doesn't work... and maybe somebody might even know the answer! There is generally a tag for doing this: autocomplete = "off" which you can put inside the form and input tags. Older firefox derivatives, i.e. Mozilla, and Internet explorer, understand this attribute (even though its not W3C standard - not suprising, W3C takes years to do anything, and then cocks it all up). With Firefox, however, the mozdev team decided not to follow this attribute! If I open templates/ca_aphrodite/adm/user_edit_body and change the opening form line to [codeblock]
[codeblock] Firefox still autofills! Adding it to the input tag: Firefox still autofills! Removing "address" in lang_main for related input fields (e.g. emial address, AIM address): No result. (See http://developer.mozilla.org/en/docs/How_to_Turn_Off_Form_Autocompletion - it gives conditions of where autocomplete="off" fails). There are some suggestions around for disabling with javascript. E.g. http://forum.java.sun.com/thread.jspa?threadID=755798&tstart=90 suggests: [codeblock] [/codeblock] And also from: http://chrisholland.blogspot.com/2004/11/banks-protect-privacy-disable.html [codeblock][/codeblock] which also requires adding class="disableAutoComplete" to each input field. These javascript methods are nothing more than a "html mask" - i.e. they still use autocomplete="off", but sets it in javascript to hide it from html validation (for the W3C validator). As expected, trying these javascript methods in firefox: autofill still works! This should be a concern not just for phpbbxs, but anybody who is building a site handling protected data - you want to minimise the risk to users accounts by ensuring autocomplete doesn't work, for that risk of users on public machines. Before anyone points it out, yes, Mozdev mention disableAutoComplete for XUL, but this is for themes/user side XML, so in all a pretty useless feature! If anyone knows a work around...