fix(browser): require storage fingerprint approval

This commit is contained in:
morluto
2026-07-24 14:13:57 +00:00
parent 7b1e3bda00
commit f0069cbee4
11 changed files with 26 additions and 5 deletions
+1
View File
@@ -167,6 +167,7 @@ describe("browser observation contracts", () => {
{ include_console_text: true },
{ include_json_body_shapes: true },
{ include_websocket_shapes: true },
{ include_storage_fingerprints: true },
])
expect(
inspectWebPageInputSchema.safeParse({ ...base, ...input }).success,
+2
View File
@@ -257,6 +257,7 @@ describe("CdpBrowserProvider", () => {
approved: true,
observation_ms: 0,
include_storage_keys: true,
include_storage_fingerprints: true,
}),
);
@@ -1262,6 +1263,7 @@ describe("CdpBrowserProvider", () => {
expect(result.value.storage.session_storage_keys).toHaveLength(1);
expect(result.value.storage.indexed_db_names).toHaveLength(1);
expect(result.value.storage.cache_names).toHaveLength(1);
expect(result.value.storage.content_fingerprints).toEqual([]);
});
it("degrades optional domains but propagates protocol and payload failures", async () => {
+2
View File
@@ -138,6 +138,7 @@ describe("web capture diff", () => {
observation_ms: 0,
include_accessibility_text: true,
include_storage_keys: true,
include_storage_fingerprints: true,
}),
);
if (!captured.ok) throw captured.error;
@@ -211,6 +212,7 @@ describe("web capture diff", () => {
observation_ms: 0,
include_accessibility_text: true,
include_storage_keys: true,
include_storage_fingerprints: true,
}),
);
if (!captured.ok) throw captured.error;