Skip to main content
Latest
class FirefoxTargetManager
implements TargetManager
extends EventEmitter
import { FirefoxTargetManager } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.js";

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,
)