Rename active VG-IV module nomenclature to VG-Observe

Dieser Commit ist enthalten in:
2026-05-21 20:20:59 +02:00
Ursprung b93378cfcb
Commit c916ba1f1b
2 geänderte Dateien mit 14 neuen und 14 gelöschten Zeilen
+11 -11
Datei anzeigen
@@ -1,9 +1,9 @@
console.log("VendorGet-IV background loaded");
console.log("VG-Observe background loaded");
globalThis.VGCoreModuleRegistry.registerModule({
id: "vg-iv",
name: "VG-IV",
description: "Consent, TCF, GVL and evidence observation module",
id: "vg-observe",
name: "VG-Observe",
description: "TCF, CMP, GVL and consent evidence observation module",
kind: "evidence",
status: "active",
});
@@ -91,7 +91,7 @@ async function handleVendorGetMessage(message, sender) {
rememberLatestTcfPing(tabId, pingData);
}
console.log("VendorGet-IV tcf ping", {
console.log("VG-Observe tcf ping", {
payload: message.payload.payload,
sender
});
@@ -100,12 +100,12 @@ async function handleVendorGetMessage(message, sender) {
}
if (eventName !== "consent_capture") {
console.log("VendorGet-IV ignored event", message);
console.log("VG-Observe ignored event", message);
return;
}
if (isEvidenceWriteSuspended()) {
console.info("VendorGet-IV evidence write skipped: maintenance mode");
console.info("VG-Observe evidence write skipped: maintenance mode");
return;
}
@@ -128,7 +128,7 @@ async function handleVendorGetMessage(message, sender) {
message.payload.payload?.rawTcData ?? null
);
console.log("VendorGet-IV consent state persisted", result);
console.log("VG-Observe consent state persisted", result);
}
async function handleGetEvidenceRetentionStatusMessage() {
@@ -236,7 +236,7 @@ async function handleFetchOfficialGvlMessage() {
sha256: result.snapshot.sha256
};
} catch (error) {
console.warn("VendorGet-IV official GVL fetch failed", error);
console.warn("VG-Observe official GVL fetch failed", error);
return {
success: false,
@@ -248,7 +248,7 @@ async function handleFetchOfficialGvlMessage() {
function buildConsentStateV1(rawCapture, sender, latestPingData) {
const decodedTcString = decodeTcStringCoreMetadata(rawCapture?.tcString ?? null);
// Firefox/CMP/browser storage remains the consent source of truth; VG-IV
// Firefox/CMP/browser storage remains the consent source of truth; VG-Observe
// stores an evidentiary mirror of the observed TCF state.
const state = {
schemaVersion: 1,
@@ -533,7 +533,7 @@ function decodeTcStringCoreMetadata(tcString) {
publisherCC: bitsToString(bits, 201, 12)
};
} catch (error) {
console.warn("VendorGet-IV could not decode TC string core metadata", error);
console.warn("VG-Observe could not decode TC string core metadata", error);
return null;
}
}