Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyServiceWorkersMode ¶
ApplyServiceWorkersMode applies the subset of Playwright's contextOptions.serviceWorkers that CDP can honor directly.
func GrantPlaywrightPermissions ¶
GrantPlaywrightPermissions grants context-wide permissions using CDP. The origin is intentionally omitted to match Playwright config semantics.
func MapPlaywrightPermissions ¶
func MapPlaywrightPermissions(names []string) (mapped []proto.BrowserPermissionType, unsupported []string)
MapPlaywrightPermissions converts Playwright permission names to CDP Browser.grantPermissions values. Unknown permissions are returned so callers can report them instead of silently overclaiming parity.
func PrewarmDomains ¶
PrewarmDomains enables the CDP domains the engine will need lazily on its first call (Accessibility, DOM, Page lifecycle events). Each enable is idempotent and cheap, so calling this at session start removes the per-domain round-trip from the first extract / navigate / screenshot.
Best-effort: failures are silently ignored — every consumer re-enables the domain it needs anyway.
Types ¶
This section is empty.