Repository navigation
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
|
Reviewed: passing the authorized attached main-frame URL (not bare origin) to Network.getCookies is correct CDP semantics — path-scoped cookies (Path=/app) were silently omitted while fingerprints_complete:true. Origin derivation for other storage + hash-only fingerprints + limitations/docs update keep observed-vs-complete distinct with no auth expansion. Boundary test asserts exact CDP params; real-verifier requires 2 cookie fingerprints. APPROVE. Non-blocking: new URL(pageUrl).origin throws bare TypeError on empty attachedUrl even when frame origin was available — consider computing origin in CdpPageCapture with the existing frames[0]?.origin fallback or guarding with a typed BrowserObservationError. |
Review — APPROVE (one defensive-code note)SummaryPasses the authorized attached main-frame URL (not the bare origin) to Verification
Note (non-blocking)
|
|
I checked this against the complete capture path and actual Chrome 154. For the native control, an owned loopback |
N0zoM1z0
left a comment
There was a problem hiding this comment.
Reviewed head573ee9fd96ff3219e8f6879cededb461b36c99a5. The authorized main-frame URL reaches Network.getCookies unchanged, preserving path-specific cookies; DOM storage/IndexedDB/quota retain origin scope. The documented cookie coverage matches the query. Existing authorization rejects invalid main-frame URLs before publication; the prior inline concern does not describe a reachable regression. Local production build and all6 sensitive-data boundary tests passed. All20 hosted checks passed, including the real-browser fixture that independently requires both root and /app cookie fingerprints. No blocking findings; approved for merge.
|
Thanks, @rudycelekli, for your work on “fix(browser): fingerprint cookies at the selected page URL.” I appreciate your contribution to REA. |
Signed-off-by: Rudy Celekli <[email protected]>
Summary
Include path-specific cookies in explicitly requested storage fingerprints for the selected page. This is a self-contained correctness fix; no separate issue is linked.
Problem and expected behavior
On a page at
/app, a cookie withPath=/appis available to the page. Capture previously requestedNetwork.getCookieswith the origin URL, whose path is/, so it omitted that cookie while reporting complete fingerprints. Changing the omitted cookie could leave the observed storage fingerprints identical.Change and scope
Pass the authorized attached main-frame URL to the cookie query. Derive the same origin for DOM storage, IndexedDB, cache names and quota. Document that cookie coverage means the current page URL, including its path, rather than every cookie path on the origin.
Contract and boundary impact
docs/product-catalog.json), package, or installation impact: none.Evidence and regression coverage
/appcookies and requires both fingerprints.CdpBrowserProvider.inspectPageagainst owned loopback HTTP and actual Chrome. Base91daaa6captures only the root cookie (1 vs expected 2), despitefingerprints_complete: true. The fix captures both; changing the actual/appcookie from alpha to beta changes its fingerprint.content_fingerprintsgains the missing cookie hash; raw cookie values remain absent.For evidence-bearing changes:
Validation performed
/app, changed scoped-cookie hash).npm run test:focused -- tests/boundary/browser/cdpBrowserProvider.sensitive_data.test.ts— 6 passed.npm run check— 5 tasks successful; 124 existing lint warnings, zero errors.npm run check:fast— 2 tasks successful.npm run docs:check— 2 tasks successful.npm run verify:browser— verified with Chrome 154.0.8037.94 and locked Playwright-core 1.58.2, including actual CLI/stdio MCP scenarios, source maps, screenshots, popup events and owned/external cleanup controls.git diff --check— passed. Node 24.18.0 and reused exact dependency versions; no dependency source changes.Full deterministic coverage remains with hosted CI; its results are tracked separately.
Compatibility, safety, and release
AI assistance: implemented and source reviewed with Codex on behalf of @rudycelekli before publication.
Review checklist
type(scope): outcome.