src/domains/browser_domain

This module provides a direct mapping of CDP events and commands for v1.3 (stable) of the Browser Domain.

Browser Domain defines methods and events for browser managing.

Procs

proc addPrivacySandboxEnrollmentOverride(tab: Tab; url: string): owned(
    Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect,
    WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}

Browser.addPrivacySandboxEnrollmentOverride

Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.

proc closeBrowserDomain(browser: Browser): owned(Future[void]) {.
    ...stackTrace: false, raises: [Exception],
    tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}

Browser.close

Close browser gracefully.

proc getVersion(browser: Browser): Future[Future] {....stackTrace: false.}

Browser.getVersion

Returns version information.

proc resetPermissions(browser: Browser): owned(Future[void]) {.
    ...stackTrace: false, raises: [Exception],
    tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
proc resetPermissions(browser: Browser; browserContextId: string): owned(
    Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect,
    WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}

Browser.resetPermissions

Reset all permission management for all origins.