Skip to content

Only stamp the tab header on hosts that run the recorder - #6

Merged
pascalbaljet merged 3 commits into
masterfrom
scope-tab-header
Jul 30, 2026
Merged

Only stamp the tab header on hosts that run the recorder#6
pascalbaljet merged 3 commits into
masterfrom
scope-tab-header

Conversation

@pascalbaljet

Copy link
Copy Markdown
Member

Every tab gets a persisted UUID and a declarativeNetRequest session rule that stamps it as x-inertia-devtools-tab, but that rule carried no host condition. Installing the extension meant handing a stable, cross-site identifier to every site the user visits.

The worker now keeps a persisted set of hosts that have proven they run the recorder, meaning they either served an x-inertia-devtools-id response header or rendered the data-inertia-devtools-id script tag, and scopes the rule to that set through requestDomains. With no proven host, no rule is installed at all. Since the proof arrives with the response, a host's first response is unstamped and every request after that carries the UUID. Rules are also rewritten rather than assumed live, because session rules die on browser restart and the proven-host set grows over time.

@pascalbaljet
pascalbaljet marked this pull request as ready for review July 30, 2026 08:20
@pascalbaljet
pascalbaljet merged commit e67f63d into master Jul 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant