SessionRegistry

Counts what happened to a set of sessions.

Owned by whoever created those sessions, not by the process. The counters used to live on PageSession's companion, which meant every session in the application shared them: a caller could not ask "how many of my sessions are open", and the instrumented suite could not either. Four device tests passed alone and failed together because each was reading the others' totals.

A session that is not given one gets its own, so nothing is shared by accident. Pass the same registry to several sessions to aggregate them.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Sessions currently initialised and not yet torn down.

Link copied to clipboard

Operations refused rather than risking an out-of-memory kill.

Link copied to clipboard

Renderer processes that died reporting a crash.

Link copied to clipboard

Renderer processes the system killed to reclaim memory.

Link copied to clipboard

Navigations and redirects refused by the SSRF rules.

Functions

Link copied to clipboard
open override fun toString(): String

A readable summary of the counters, for logs.