Closed Bug 1878263 Opened 1 year ago Closed 1 year ago

Handle navigator.sendBeacon not available

Categories

(Data Platform and Tools :: Glean: SDK, defect)

defect

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?

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1878140
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.