v157 · privacy · gpc
What a compliant site does with it
GPC is not decoration — under the CCPA/CPRA and several other state laws it is a valid do-not-sell-or-share request a business must honour. This preferences center is driven by the visitor's real signal (the DOM property, cross-checked against a live server echo of the Sec-GPC header): when the signal is on, the "sale/share" toggle defaults to opted-out and locks, exactly the behaviour the signal obliges.
No GPC surface on this build? The center still works — it treats "no signal" as "no universal request", which is the spec-correct reading (absence of Sec-GPC means no preference was expressed, not consent). Enable the Chrome 157 setting, or launch with --enable-blink-features=GlobalPrivacyControlForce, then reload to watch the default flip.
1 · Detect, from both surfaces
The page reads navigator.globalPrivacyControl at load, then you can cross-check against what the server actually received on a fresh request.
2 · The preferences center it drives
Strictly necessary; not in scope of GPC.
Not a sale/share; GPC does not decide this, you do.
This is exactly what GPC opts you out of. With the signal on, a compliant site must treat it as opted-out.
Waiting for detection…
3 · The decision table
| signal state | spec meaning | compliant default |
|---|---|---|
| Sec-GPC: 1 / property true | a valid universal opt-out request | sale/share OFF, locked until the user actively overrides per-site |
| header absent / property false | no preference expressed — NOT consent | sale/share follows the site's normal consent flow |
| no GPC surface at all | pre-GPC browser | same as "no preference" — never assume opt-in |
code path
function gpcSignal() {
// Absence is "no preference", never consent.
if (!("globalPrivacyControl" in navigator)) return "unknown";
return navigator.globalPrivacyControl ? "on" : "off";
}
if (gpcSignal() === "on") {
prefs.saleShare = false; // honour the opt-out…
lock(prefs.saleShareControl); // …and stop the UI nagging for it back
}