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
Setup a Manifest V3 Chrome Extension with a service worker. (not necessary, see notes -> 1)
Use enableIndexedDbPersistence(firebase, { forceOwnership: true }) in the service worker to setup persistence.
Verify in the storage tab that indexeddb storage is enabled, great!
Now, call clearIndexedDbPersistence() to remove all data from the indexeddb.
Actual result
Uncaught (in promise) ReferenceError: window is not defined
at Yl.delete (index.esm2017.js:6055:59)
at index.esm2017.js:16720:26
at index.esm2017.js:16717:19
at index.esm2017.js:16308:54
Expected result
The indexed DB should be cleared.
Notes
I don't think the problem is specific to MV3 Chrome extensions, but I don't have any other service worker environment to try this in.