- From: Jan-Ivar Bruaroey <notifications@github.com>
- Date: Tue, 19 Sep 2023 11:08:59 -0700
- To: w3c/permissions <permissions@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 19 September 2023 18:09:04 UTC
The [spec says](https://w3c.github.io/permissions/#dfn-permissionstatus-update-steps): <img width="767" alt="image" src="https://github.com/w3c/permissions/assets/3136226/45436440-055b-4f9d-9b12-8bb8d5b9fe21"> Some questions: 1. What does _"it asynchronously runs"_ mean compared to _"it runs"_? 1. What object does _"this"_ refer to here? I suspect we mean _"status"_? 1. (As an optimization?) It seems to reference [associated Document](https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window) and make a determination about [fully active](https://html.spec.whatwg.org/multipage/document-sequences.html#fully-active) on a background thread. Isn't that racy (e.g. with navigation)? By the time the queued task runs, the document may no longer be "fully active", and we fire the event on a non-fully active document, which seems wrong. It would seem more correct to move these checks into the queued task. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/permissions/issues/421 You are receiving this because you are subscribed to this thread. Message ID: <w3c/permissions/issues/421@github.com>
Received on Tuesday, 19 September 2023 18:09:04 UTC