Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
class FirefoxTargetManager
implements TargetManager
extends EventEmitter
import { FirefoxTargetManager } from "https://deno.land/x/frugal@0.9.6/dep/puppeteer/mod.ts";

FirefoxTargetManager implements target management using Target.setDiscoverTargets without using auto-attach. It, therefore, creates targets that lazily establish their CDP sessions.

Although the approach is potentially flaky, there is no other way for Firefox because Firefox's CDP implementation does not support auto-attach.

Firefox does not support targetInfoChanged and detachedFromTarget events:

Constructors

new
FirefoxTargetManager(
connection: Connection,
targetFactory: TargetFactory,
targetFilterCallback?: TargetFilterCallback,
)