Enable the domain everywhere. Resolves once every attached page confirmed (events the domain replays on enable, such as stored console messages, are delivered before that) or after a short wait. Returns whether this call switched it on; a concurrent caller waits for the same start.
Follow one page for its whole life; dispose when it is gone.
One CDP domain (
Runtime,Network) on every page, enabled only once someone asks (NFR4: no event traffic into the main process before that). Events of the page's own session are handed on as they arrive, also while another user (the page agent, an action) has the domain enabled. Once active, the domain is enabled on every page, new ones and re-attached ones (a fresh CDP session) included.