Closed annevk closed 9 months ago
Spec is outdated compared to latest explainer.
Note: quote is from https://wicg.github.io/pending-beacon/#pendingbeacon-interface
I originally wrote that as I expected that, while the beacon data is associated with a specific document, it needs to be owned by the UA so that it can continue to exist (and be sent) when the document is destroyed. So the conceptual model is that the UA has set of beacons, and knows what documents each is associated with, and decides when to send them.
How can it know about the document if the document is destroyed? That doesn't quite add up. You'd need to associate a bunch of state explicitly with it.
Clarification and subsequent works have been addressed as fetchLater()
API in https://github.com/whatwg/fetch/pull/1647 and https://github.com/whatwg/fetch/issues/1715.
Early in the document you say it's scoped to a document, but then elsewhere you do