Skip to content

feat(browser): improve per-site browsing-data management #27

Closed

Description

@trmosala

Problem

Time ranges apply to history/download records; cache and site storage require all-time clearing.

Implementation order

Browser backlog item 23 of 29. Phase: Settings and developer features. This is ordered planning, not a claim that Codex implements every item. Items 24–29 are optional additions.

Acceptance criteria

  • Improve per-site inspection/clearing and explain actual Chromium clearing scope.
  • Keep unsupported time-range controls unavailable; disclose cookie parent-domain effects.
  • Verify app/WPP data isolation, matching-tab reload and preservation of unrelated records.

Dependencies

No prerequisite backlog issue.

Engineering and validation

Reuse existing Chromium/Electron/OS facilities where available. Preserve main-process ownership and permission enforcement, add no placeholder controls, use existing i18n patterns, and test behavior with synthetic fixtures. Document platform limitations. Baseline: browser-tabs at 47fef3e; see packages/cm-browser/README.md and password-security.md.

Activity

  1. trmosala commented on Sep 18, 2026

    @trmosala
    OwnerAuthor

    Implemented and verified on browser-tabs in e959b0c.

    • Site controls now inspect Chromium's matching-cookie count, aggregate origin-storage usage, and nonempty quota-managed categories without returning cookie values or stored records.
    • Reopening Site controls refreshes inspection; a manual refresh covers data changed while the panel remains open.
    • Per-site clearing stays all-time and exact-origin for storage/cache. The UI and native confirmation disclose Chromium's registrable-parent-domain cookie behavior and the absence of a reliable per-origin HTTP-cache size.
    • Clearing reloads exact-origin tabs and preserves sibling/unrelated origin storage, app/WPP partitions, bookmarks, history, downloads, passwords, and permission rules.
    • Added backgroundFetch to the origin-scoped Chromium clearing set.

    Validation:

    • bun scripts/browser-smoke.ts --site-data: PASS on Chromium 152
    • full bun scripts/browser-smoke.ts: PASS
    • desktop browser suite: 183 pass
    • app and desktop typechecks: PASS
    • pre-push monorepo typechecks: 31/31 PASS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions