Skip to main content

Crate rightkit_browser

Crate rightkit_browser 

Source
Expand description

Shared Chrome DevTools Protocol browser runtime for Right Suite products.

Modules§

design_mode
Design-mode element-picker primitives: a trusted binding bridge with one-shot submit authentication, device-pixel capture geometry, and the picker script builder.

Structs§

AdmissionRequest
One typed request to perform an effect. Typed text is never included, only its length, so admission logs stay content-free.
AxNode
One node of Accessibility.getFullAXTree.
AxSummary
One non-ignored node of an accessibility tree that has a role, as carried by an observation.
BlockedRequest
Copy of the old string-only blocked record, kept per page.
BrowserEvent
One structured, content-free lifecycle event for the caller’s journal. Never carries typed text, page content, or full URLs.
BrowserPage
BrowserRequest
One network request about to leave the browser, as seen by the allow callback.
BrowserSession
One Chrome process with any number of pages.
ConsentRevocation
Live revocation switch shared with a running session. Calling Self::revoke makes the session’s next action fail, without waiting for the app to persist the receipt.
ConsoleLine
ContinueOverrides
Overrides for a continued request. Anything left None is unchanged.
ExceptionFrame
One frame of an exception’s stack.
FixtureAttestation
FixtureBundle
FixtureCancellation
Sticky, cloneable cancellation signal for a fixture run.
FixtureCleanupEvidence
FixtureFile
FixtureIntent
FixtureOutcome
FixtureRunFailure
FixtureServer
An exclusively owned server for one verified, immutable fixture bundle.
FixtureSession
Opaque execution authority for one immutable source bundle and one closed action list.
ImportReport
Result of one import. Per-domain cookie counts need the cookie database opened, which this module does not do, so domain_counts is None.
ImportSpec
Consent-gated copy of a browser profile’s sign-ins into a named RightKit profile (see crate::ProfileSpec::ImportedFrom).
InterceptedRequest
One Fetch.requestPaused event, decoded.
LaunchOptions
NetworkPolicy
Typed SSRF/host policy. See the module docs for defaults.
Observation
ObservedNode
PageException
One Runtime.exceptionThrown event: an uncaught exception or unhandled rejection.
PageSetup
What to install on a page before its first navigation; see BrowserSession::new_page_with.
PinnedConnection
One connection the proxy made, with the address it pinned.
PolicyDenial
Typed network-policy denial returned as crate::BrowserError::Blocked.
Rect
ScreenshotOptions
Screenshot options for BrowserPage::screenshot_with.
SourceProfile
One profile of a Chromium-family browser.
UserConsentReceipt
What the user agreed to: which browser, which profile, which domains. The app persists it (it is Serialize/Deserialize), shows it, and revokes it. A revoked or expired receipt refuses every later import, attach and action.

Enums§

ActionKind
AddressClass
Address class of a destination. Everything except Public is blocked by default.
BlockReason
Why the network policy refused a request.
BrowserError
BrowserKind
A concrete browser product.
BrowserSource
Which browser an import reads from.
Decision
DownloadBehavior
What the page does with a download.
FixtureAction
FixtureConfinementBackend
FixtureError
FixtureKey
FixtureOutcomeStatus
InterceptDecision
The answer to one paused request.
InterceptFailure
Why a request is failed; maps to the CDP Network.ErrorReason the page sees.
InterceptStage
Which stage a paused request is at.
LifecycleKind
PolicyDecision
Answer of the per-request allow callback.
ProfileSpec
Where the browser keeps cookies, storage, and logins.
Target
What an action addresses.

Constants§

CHROME_FOR_TESTING_ENV
Environment variable naming an explicit Chrome for Testing executable.
CHROME_FOR_TESTING_INSTALL_HINT
How to get Chrome for Testing; part of BrowserError::ChromeForTestingNotFound.
CHROME_FOR_TESTING_ROOT_ENV
Override the RightKit-managed Chrome for Testing root (the folder that holds current).
CONSENT_SCHEMA
Schema version of UserConsentReceipt.
FIXTURE_SCHEMA
MAX_EXCEPTIONS
Structured exceptions kept per page (oldest dropped first).
OBSERVE_AX_DEPTH
Depth bound for the accessibility summary in an Observation.

Functions§

actions_digest
browser_executable
The installed browser executable for a Chromium-family kind.
chrome_for_testing_candidates
Known Chrome for Testing install locations, in resolution order: the RightKit-managed current (then current.previous, then legacy per-version folders; RIGHTKIT_CHROME_FOR_TESTING_ROOT overrides the root), app installs, then Puppeteer’s cache (PUPPETEER_CACHE_DIR), then Playwright’s (PLAYWRIGHT_BROWSERS_PATH), newest version first within each cache.
chrome_for_testing_path
Resolve Chrome for Testing: explicit, then RIGHTKIT_CHROME_FOR_TESTING, then chrome_for_testing_candidates. Errors with install instructions; never returns regular Chrome.
classify_ip
default_browser
The user’s default web browser on Windows, macOS and Linux, or BrowserKind::Unknown when it cannot be determined.
find_chrome
System Chrome, Chromium, then Edge. CHROME env overrides. Launch uses this only with LaunchOptions::system_chrome or LaunchOptions::system_chrome_only; prefer chrome_for_testing_path for isolated automation.
list_profiles
Profiles of an installed Chromium-family browser, for the consent screen.
purge_imported_profile
Delete an imported RightKit profile (revoking consent should call this). Refuses a directory RightKit did not import into, and a profile a live session holds.
user_data_dir
The browser’s own user-data directory (read only by this module), when it exists.

Type Aliases§

AdmissionHook
AllowCallback
EventSink
NetworkRequest
Former name, kept for existing callers.
RequestInterceptor
Caller-supplied hook, consulted for every request the page makes (redirect hops included).
Resolver
Result