- From: Marcos Cáceres <notifications@github.com>
- Date: Tue, 08 Feb 2022 22:28:29 -0800
- To: w3c/permissions <permissions@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 9 February 2022 06:28:42 UTC
In #360, we are simplifying it to just:
> A {{PermissionStatus}} object MUST NOT be garbage collected if it has an [=event listener=] whose type is `change`.
That capture the intent that this works:
```JS
(async () => {
const perm = await navigator.permissions.query({ name: "geolocation" });
perm.onchange = console.log;
// bye bye perm... but not garbage collected
})();
```
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/266#issuecomment-1033397210
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/permissions/issues/266/1033397210@github.com>
Received on Wednesday, 9 February 2022 06:28:42 UTC