Skip to main content

Module tabs

Module tabs 

Source
Expand description

The Playwright driver’s tab list, as the service reads it.

The CDP target id is the one name a page has that the browser and the driver agree on. Upstream’s list is positional and renumbers on every close, so the service keys its own small tab numbers by the page target and drives and selects by it.

Re-exports§

use std::collections::BTreeMap; 🔒
use std::collections::HashMap; 🔒
use std::collections::HashSet; 🔒
use std::time::Duration; 🔒
use std::time::Instant; 🔒
use forge_primitives::SessionSlot; 🔒
use forge_primitives::browser::BrowserTabDialog; 🔒
use forge_primitives::browser::BrowserTabRow; 🔒
use forge_primitives::browser::BrowserTabState; 🔒
use serde::Deserialize; 🔒
use serde::Deserialize; 🔒

Structs§

DriverTab
One tab as the driver lists it.
Tab 🔒
TabRegistry
The profile’s tabs, keyed by the host’s own tab number. The registry never mints one: the host’s numbers are what frames, mouse input and TabClosed already carry, and a second counter would drift from them.

Constants§

EXPORT 🔒

Functions§

orphan_targets
The pages the driver lists that no tab claims. A page the driver made for itself is not a host tab, and it is closed by its target so the listing cannot grow pages nothing paints.
parse_export
The export line’s rows, or why the listing cannot be trusted.
strip_export
The listing with the export line removed.