You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read the README.md and the design doc but it is still unclear to me when the user agent sends data and when it doesn't.
In the design doc, I found this paragraph.
In the usual case, the ultimate triggering of the beacon send will be a page lifetime event, such as the page being evicted from the BFCache, or the page’s visibility changing. At this time the PendingBeaconHost will indicate to the PendingBeaconNetworkService which beacons need to be sent.
Does this mean the user agent never starts sending beacons without page lifecycle events (and sendNow calls)? The description sounds weaker though (it sounds like there are some exceptions), so I want to make sure.
This is very important so I want to make sure before we start implementing property setters.
The text was updated successfully, but these errors were encountered:
From #13 it seems at least some of the time it will trigger from a timeout. Unclear as yet whether that timeout could occur while the document is active.
In the latest explainer, a PendingBeacon gets sent in one of the following scenario:
By Renderer
When JavaScript executes PendingBeacon.sendNow()
When a PendingBeacon's timer of timeout property ends.
When the document (where the PendingBeacon was created) enters hidden .visibility state, the renderer will sends out every PendingBeacon it has according to individual PendingBeacon's backgroundTimeout property.
By Browser
When the document is discarded or deleted, the browser process should send out all queued beacons created on that document.
When the associated document's renderer process crashes, the browser process should send out all queued beacon.
For 2-1 and 2-2, the beacon object in the renderer won't know whether itself is sent or not, but it's not relevant as the document/renderer is already gone.
For 2-3, the state of the beacon object in the renderer needs to be updated.
I read the README.md and the design doc but it is still unclear to me when the user agent sends data and when it doesn't.
In the design doc, I found this paragraph.
Does this mean the user agent never starts sending beacons without page lifecycle events (and
sendNow
calls)? The description sounds weaker though (it sounds like there are some exceptions), so I want to make sure.This is very important so I want to make sure before we start implementing property setters.
The text was updated successfully, but these errors were encountered: