fix(browser): fingerprint cookies at the selected page URL (#763)

Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
This commit is contained in:
Rudy Mizrahi Celekli
2026-10-07 10:11:57 +08:00
committed by GitHub
parent 472b72a530
commit 78014e3d14
7 changed files with 58 additions and 7 deletions
+4 -2
View File
@@ -16,7 +16,7 @@ import {
stringValue,
} from "./CdpCaptureValues.js";
/** Capture redacted storage metadata for one authorized origin. */
/** Capture redacted storage metadata for an authorized page and its origin. */
export const captureStorage = async (
context: {
readonly connection: CdpConnection;
@@ -24,11 +24,12 @@ export const captureStorage = async (
readonly input: InspectWebPageInput;
readonly signal?: AbortSignal;
},
origin: string,
pageUrl: string,
limitations: string[],
): Promise<{
readonly value: WebPageInspection["storage"];
}> => {
const origin = new URL(pageUrl).origin;
const quota = recordValue(
await optionalCdpCommand(
context,
@@ -67,6 +68,7 @@ export const captureStorage = async (
? await captureStorageFingerprints({
context,
origin,
cookieUrl: pageUrl,
local,
session,
indexedDbNames: indexed,