Opened 5 hours ago
Last modified 108 minutes ago
#35943 new Cleanup/optimization
Remove deprecated 'unload' event listener
Reported by: | Adam Johnson | Owned by: | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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 as a more reliable alternative, which seems like it would be compatible with the goal of closing child popups.
Change History (1)
comment:1 by , 108 minutes ago
Description: | modified (diff) |
---|---|
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
Thank you Adam for taking the time to create this ticket, and for linking adequate resources to do proper triage.
I'm accepting on the basis that this makes sense but I would like to see more research being done regarding what to use to replace
unload
. The linked MDN docs say:Is not immediately clear to me that this is a good replacement. From these Chrome docs we may need to evaluate
visbilitychange
as well.