Preferences: Add autocomplete="off" to preferences form
authorFomafix <fomafix@googlemail.com>
Tue, 29 Mar 2016 04:49:20 +0000 (04:49 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Tue, 29 Mar 2016 04:49:20 +0000 (04:49 +0000)
commit7489a3e8f17f3e900b6c1f6d7aefc256fbbc76d2
tree9bad1390b0aec35fbf68de252ec6440260ebbe38
parent00878f6f73c8bcc72cb327dc3f40c91d7ed84dca
Preferences: Add autocomplete="off" to preferences form

This change adds a new method setAutocomplete to the class HTMLForm.
This method allows to set the HTML attribute autocomplete for the form.
This change uses this method to set autocomplete="off" for the preferences form.

Without autocomplete="off" the selections in the preferences get cached in
the browser. This can lead to wrong selected options when the settings get
changed on an other way, for example via API.

Bug: T131047
Change-Id: I2920383b5b8cfca3f1d546315f202985edf417d8
includes/Preferences.php
includes/htmlform/HTMLForm.php