Skip to content

feat(browser): in-browser "Trust this site" affordance (Browser-8)#147

Merged
th3-br41n merged 1 commit into
mainfrom
fix/browser-tabs-focus-trust
Jul 12, 2026
Merged

feat(browser): in-browser "Trust this site" affordance (Browser-8)#147
th3-br41n merged 1 commit into
mainfrom
fix/browser-tabs-focus-trust

Conversation

@th3-br41n

Copy link
Copy Markdown
Contributor

Browser-8 shipped only the Settings → Privacy trusted-sites management; there was no in-browser way to trust the current site. Add the capability-gated broker twin so the sandboxed Browser (holds web.browse) reaches the same per-vault trust store, plus the chrome affordance:

  • sdk-types: WebViewMethod.SetSiteTrust / IsSiteTrusted + request union + WebViewClient.setSiteTrust/isSiteTrusted.
  • web-view-service: the two handler cases + setSiteTrust/isSiteTrusted options.
  • main/index.ts: wired to webPrivacy.trust.set / .isTrusted (the exact store the Settings panel uses).
  • SDK webViewProxy: the two client methods over the broker.
  • Browser app: a "Trust this site" / "Untrust this site" toggle in the ⋯ menu (only for a real web origin), reflecting the live trust state (queried on tab change) and reloading on toggle so the relaxed cookie/blocklist policy applies.

Full typecheck (packages + 12 apps) + 23 browser tests + web-view-service 22 + browser build + lint clean. Behavioural check is real-shell.

Browser-8 shipped only the Settings → Privacy trusted-sites management; there was
no in-browser way to trust the current site. Add the capability-gated broker
twin so the sandboxed Browser (holds `web.browse`) reaches the same per-vault
trust store, plus the chrome affordance:

- sdk-types: `WebViewMethod.SetSiteTrust` / `IsSiteTrusted` + request union +
  `WebViewClient.setSiteTrust`/`isSiteTrusted`.
- web-view-service: the two handler cases + `setSiteTrust`/`isSiteTrusted` options.
- main/index.ts: wired to `webPrivacy.trust.set` / `.isTrusted` (the exact store
  the Settings panel uses).
- SDK webViewProxy: the two client methods over the broker.
- Browser app: a "Trust this site" / "Untrust this site" toggle in the ⋯ menu
  (only for a real web origin), reflecting the live trust state (queried on tab
  change) and reloading on toggle so the relaxed cookie/blocklist policy applies.

Full typecheck (packages + 12 apps) + 23 browser tests + web-view-service 22 +
browser build + lint clean. Behavioural check is real-shell.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@th3-br41n th3-br41n merged commit 1797015 into main Jul 12, 2026
2 of 3 checks passed
@th3-br41n th3-br41n deleted the fix/browser-tabs-focus-trust branch July 12, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant