refactor(browser): return complete observation evidence

This commit is contained in:
morluto
2026-09-29 13:56:49 +08:00
parent 9d1f88cbe8
commit 0e2738ffb6
69 changed files with 747 additions and 1206 deletions
+4 -4
View File
@@ -85,10 +85,10 @@ export const captureStorage = async (
origin,
usage_bytes: numberValue(quota?.usage) ?? null,
quota_bytes: numberValue(quota?.quota) ?? null,
local_storage_keys: local.items.map(({ key }) => key.slice(0, 1_024)),
session_storage_keys: session.items.map(({ key }) => key.slice(0, 1_024)),
indexed_db_names: indexed.map((name) => name.slice(0, 1_024)),
cache_names: caches.map(({ name }) => name.slice(0, 1_024)),
local_storage_keys: local.items.map(({ key }) => key),
session_storage_keys: session.items.map(({ key }) => key),
indexed_db_names: [...indexed],
cache_names: caches.map(({ name }) => name),
content_fingerprints: [...fingerprints.items],
fingerprint_algorithm: "sha256",
fingerprints_complete: fingerprints.complete && structuredStorageComplete,