container history initial
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user