container history initial

This commit is contained in:
Fabian Freund
2026-07-03 17:29:02 +02:00
parent 509e0550a8
commit 7931f66f5a
45 changed files with 7893 additions and 136 deletions
@@ -236,4 +236,8 @@ class GeckoEngineSettingsService {
Future<void> setReaderViewPureBlack(bool enabled) {
return _api.setReaderViewPureBlack(enabled);
}
Future<void> setExcludedHistoryContextIds(List<String> contextIds) {
return _api.setExcludedHistoryContextIds(contextIds);
}
}
@@ -46,11 +46,14 @@ class GeckoHistoryService {
case VisitType.redirectTemporary:
case VisitType.framedLink:
case VisitType.reload:
// A bookmark-type visit is an ordinary Places visit (the user navigated
// via a bookmark); deleting it by (url, time) removes only that visit
// record and leaves the bookmark itself intact — same path as any page
// visit.
case VisitType.bookmark:
return _api.deleteVisit(info.url, info.visitTime);
case VisitType.download:
return _api.deleteDownload(info.contentId!);
case VisitType.bookmark:
throw UnimplementedError('VisitType.bookmark deletion not implemented');
}
}