Implementation:Microsoft Playwright Firefox Protocol Types
| Knowledge Sources | |
|---|---|
| Domains | TypeDefinitions, FirefoxProtocol |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Auto-generated TypeScript type definitions for the Firefox Juggler protocol, used internally by Playwright's Firefox browser driver.
Description
This file (~1,185 lines) is generated by /utils/protocol-types-generator/index.js and provides TypeScript type definitions for the Juggler protocol, which is Playwright's custom remote debugging protocol for Firefox. Unlike Chromium's CDP, Juggler is a Playwright-specific protocol patched into Firefox builds.
All types are organized under the Protocol namespace with domain sub-namespaces:
- Browser:
TargetInfo,UserPreference,CookieOptions,Cookie,Geolocation,DownloadOptions-- target management, cookie handling, browser-level configuration - Network: Request interception, response handling, security details, caching
- Page: Frame management, navigation, dialogs, screenshots, accessibility tree
- Runtime: JavaScript evaluation, object inspection, console messages
Each domain defines:
- Type aliases and interfaces for data structures
- Event payload types (e.g.,
attachedToTargetPayload,downloadCreatedPayload) - Command parameter and return types
Usage
These types are imported by Playwright's Firefox connection layer (src/server/firefox/) to provide type-safe interaction with the Juggler protocol. They ensure compile-time correctness when dispatching protocol commands to Firefox browser instances.
Code Reference
Source Location
- Repository: Microsoft_Playwright
- File:
packages/playwright-core/src/server/firefox/protocol.d.ts
Import
import { Protocol } from './protocol';
Generation
# This file is auto-generated; do not edit manually
# Generated by: /utils/protocol-types-generator/index.js