Closed
Bug 1878263
Opened 1 year ago
Closed 1 year ago
Handle navigator.sendBeacon not available
Categories
(Data Platform and Tools :: Glean: SDK, defect)
Data Platform and Tools
Glean: SDK
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1878140
People
(Reporter: janerik, Unassigned)
References
Details
navigator.sendBeacon is available in all browsers.
But at least in Firefox there's a preference beacon.enabled
that lets users turn it off, in which case navigator.sendBeacon
will be undefined
.
Right now the upload worker catches any exception, logs an error and deletes pending pings if an upload throws an exception.
Should we protect against this in the sendBeacon fallback uploader and try the fetch
upload if sendBeacon
is undefined?
Reporter | ||
Updated•1 year ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•