Skip to main content

Module cookie_graph

Module cookie_graph 

Source
Expand description

Cookie / personal-data transparency graph (v0).

Honest scope:

  • Model: site origin → cookie name → attributes → purpose hypothesis (heuristic).
  • Persist under {storage}/webizen/cookie_graph.json.
  • Observe: v0 accepts agent-fetched Set-Cookie headers and/or explicit observations from the host. Full WebView2 cookie-jar parity is not claimed.
  • No MITM proxy.

Structs§

CookieGraph
CookieNode

Enums§

CookiePurposeHypothesis

Constants§

COOKIE_GRAPH_FILE

Functions§

clear_graph_all
clear_graph_for_origin
Clear cookie graph for origin and optionally log intent for site-data clear. Does not by itself wipe the WebView jar — pair with platform clear.
hypothesize_purpose
Heuristic purpose from cookie name (not ground truth).
observe_set_cookies
Observe many Set-Cookie lines for a page URL; persist graph.
parse_set_cookie
Parse a single Set-Cookie header line into a CookieNode (best-effort).
summary_for_url
Summary for chrome UI.