Open Bug 1943952 Opened 10 days ago

Glean.js errors calling setItem()

Categories

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

defect

Tracking

(Not tracked)

People

(Reporter: agibson, Unassigned)

Details

We're seeing quite a high number of errors in bedrock's Glean.js bundle from code trying to call localStorage.setItem(). Presumably this is from browsers in private browsing modes or using privacy focused extensions, where localStorage and sessionStorage is not available?

We could ignore these errors if they are not worth acting on, but it might be nice if Glean.js could fail gracefully here (maybe via a try/catch?)

https://mozilla.sentry.io/issues/5529462639/

You need to log in before you can comment on or make changes to this bug.