firebase / firebase/firebase-js-sdk
Error thrown when using forceLongPolling with Chrome Extension Manifest V3
Open
api: database
bug
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
### Operating System
maxOS 14.0
### Browser Version
Chrome/125.0.6422.77
### Firebase SDK Version
10.12.1
### Firebase SDK Product:
Database
### Describe your project's tooling
chrome extension, manifest v3, webpack
### Describe the problem
The document is not defined when switching to using service workers.
ReferenceError: document is not defined
at executeWhenDOMReady
at BrowserPollConnection.open
at background.js
### Steps and code to reproduce issue
The issue is reproducible on any extension that uses Manifest V3
Contributor guide
Assessment
This issue has not been assessed yet.