Opened 3 months ago
Last modified 8 weeks ago
#35943 assigned Cleanup/optimization
Remove deprecated 'unload' event listener — at Initial Version
Description ¶
Loading any ModelAdmin page in Chrome 117+ triggers this warning:
Unload event listeners are deprecated and will be removed.
1 source
RelatedObjectLookups.js:203
https://chromestatus.com/feature/5579556305502208
The linked proposal points to [pagehide
](https://developer.mozilla.org/en-US/docs/Web/API/Window/pagehide_event) as a more reliable alternative, which seems like it would be compatible with the goal of closing child popups.
According to the ticket's flags, the next step(s) to move this issue forward are:
- To improve the patch as described in the pull request review comments or on this ticket, then uncheck "Patch needs improvement".
If creating a new pull request, include a link to the pull request in the ticket comment when making that update. The usual format is:
[https://github.com/django/django/pull/#### PR]
.