Skip to content

Fix history retries, profile cleanup, and stale extension approvals - #58

Merged
rangaNP merged 2 commits into
mainfrom
fix/post-release-audit
Nov 21, 2026
Merged

rangaNP merged 2 commits into
mainfrom
fix/post-release-audit

Conversation

@rangaNP

@rangaNP rangaNP commented Nov 21, 2026

Copy link
Copy Markdown
Member

Summary

This fixes eight issues found while checking the history, privacy, password, extension, and download changes shipped in v0.2.3. The pre-PR review also found a case where retrying a clear could delete a later visit from another database connection.

Changes

  • Retrying a failed clear preserves visits recorded or imported afterward, even when the URL and visit time match. SQLite now assigns stable visit IDs across connections. Existing history databases upgrade in a transaction that preserves visit IDs, indexes, triggers, and import undo references.
  • Entering the same address again records the newly committed document. Subsequent title changes still update that visit. Cancelling a website-data refresh preserves the last list for the selected profile.
  • Optional extension permissions recheck the loaded context and current settings when the prompt returns. Closing the last private window prevents a pending restart from reloading that host. Unlisted Copy Image transfers count toward the automatic download limit.
  • Deleting a profile removes its vault and recovery copies from both Debug and Release storage. IPv6 password origins work across the picker, imports, and HTTP authentication. Ambiguous legacy logins stay in the vault and require an origin correction before autofill.

Testing

  • On macOS 27.2.1 with Xcode 27.2, swift test --scratch-path build/SwiftPM --no-parallel passed all 1,028 tests. All eight release-script tests passed.
  • Debug build-for-testing and the Release build succeeded. Both app signatures passed codesign --verify --deep --strict. Native UI tests compiled locally and run on CI.
  • Ten regression tests reproduced the earlier behavior on v0.2.3. Additional controls reproduced the lost visit with a second connection and with a write lock held when the clear started.
  • Compared an upgraded copy of the 100,000-page history fixture with its original. Every page, all 105,883 visits, and all 105,883 import references matched. SQLite integrity and foreign-key checks passed.

Checklist

  • I reviewed the diff and kept the changes focused on this PR.
  • I described the validation performed and any remaining limitations.
  • I understand the changes and can address maintainer questions in review.

Keep the original visit boundary when retrying a history removal and record same-address navigations when WebKit commits a new document. Preserve the last website-data list when a refresh is cancelled.

Recheck optional extension grants when their sheet returns, restart only live hosts, and include unlisted image transfers in automatic download capacity.

Remove a deleted profile's vault and recovery copies from both build locations. Normalize IPv6 password origins and preserve ambiguous legacy logins for manual correction.
Allocate monotonic visit IDs so a new visit cannot inherit the identity of a recently deleted row. Capture the removal boundary as soon as the history file is readable, including when another writer holds the database lock.

Upgrade existing databases in a transaction while preserving visit IDs, import references, indexes and triggers. Cover rollback, reopening from an older build, and retrying a clear after a second connection records a replacement visit.
@rangaNP
rangaNP merged commit bc7f330 into main Nov 21, 2026
5 checks passed
@rangaNP
rangaNP deleted the fix/post-release-audit branch November 21, 2026 16:07
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