firebase / firebase/firebase-js-sdk

Error thrown when using forceLongPolling with Chrome Extension Manifest V3

Open
#8,268 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.