﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35943	Remove deprecated 'unload' event listener	Adam Johnson	Amar	"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
}}}
That’s here: https://github.com/django/django/blob/857b1048d53ebf5fc5581c110e85c212b81ca83a/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js#L213-L215

The [https://github.com/fergald/docs/blob/master/explainers/permissions-policy-deprecate-unload.md linked proposal] points to [https://developer.mozilla.org/en-US/docs/Web/API/Window/pagehide_event pagehide] as a more reliable alternative, which seems like it would be compatible with the goal of closing child popups."	Cleanup/optimization	assigned	contrib.admin	dev	Normal				Accepted	1	0	1	0	0	0
