#36354: Remove unneeded JS from contrib.admin password forms
-------------------------------------+-------------------------------------
Reporter: Fabian Braun | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Fabian Braun:
Old description:
> As part of ticket-34429 (
https://code.djangoproject.com/ticket/34429) JS
> was added to the password change and user create forms to ensure that the
> forms run on browsers that do not support the `:has()` CSS selector.
>
> By now, all major browsers support the selector. The last one not
> supporting it (Firefox 115 ESR) is now well beyond end of life. (See
> discussion here:
>
https://github.com/django/django/pull/16942/files#r1427864863)
>
> Steps to solve the issue:
> * Remove `admin/js/unusable_password_field.js`
> * Update `admin/auth/user/chamge_password.html` and
> `admin/auth/user/add_form.html` to not load the JS file
New description:
As part of ticket-34429 (
https://code.djangoproject.com/ticket/34429) JS
was added to the password change and user create forms to ensure that the
forms run on browsers that do not support the `:has()` CSS selector.
By now, all major browsers support the selector. The last one not
supporting it (Firefox 115 ESR -
https://support.mozilla.org/en-US/kb
/firefox-users-windows-7-8-and-81-moving-extended-
support#:~:text=Mozilla%20is%20providing%20critical%20security,supported%20version%20of%20Microsoft%20Windows.)
is reaching end-of support in August 2025, i.e. before the next major
Django release.
(See discussion here:
https://github.com/django/django/pull/16942/files#r1427864863)
Steps to solve the issue:
* Remove `admin/js/unusable_password_field.js`
* Update `admin/auth/user/chamge_password.html` and
`admin/auth/user/add_form.html` to not load the JS file
--
--
Ticket URL: <
https://code.djangoproject.com/ticket/36354#comment:2>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.