Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Microsoft Playwright Firefox Protocol Types

From Leeroopedia
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

Import

import { Protocol } from './protocol';

Generation

# This file is auto-generated; do not edit manually
# Generated by: /utils/protocol-types-generator/index.js

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment