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.

Detecting at load…

2 · The preferences center it drives

always on

Strictly necessary; not in scope of GPC.

your choice

Not a sale/share; GPC does not decide this, you do.

your choice

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

How the sale/share default is decided (your row is highlighted live)
signal statespec meaningcompliant default
Sec-GPC: 1 / property truea valid universal opt-out requestsale/share OFF, locked until the user actively overrides per-site
header absent / property falseno preference expressed — NOT consentsale/share follows the site's normal consent flow
no GPC surface at allpre-GPC browsersame 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
}

see also