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:
Methods
addTargetInterceptor(client: CDPSession | Connection, interceptor: TargetInterceptor): void
dispose(): void
getAvailableTargets(): Map<string, Target>
initialize(): Promise<void>
removeSessionListeners(session: CDPSession): void
removeTargetInterceptor(client: CDPSession | Connection, interceptor: TargetInterceptor): void
setupAttachmentListeners(session: CDPSession | Connection): void