Skip to content

Error thrown when using forceLongPolling with Chrome Extension Manifest V3  #8268

Open
@ThabetIbrahim

Description

@ThabetIbrahim

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions