implement tracking protection per site

This commit is contained in:
Fabian Freund
2026-01-16 07:36:38 +01:00
parent d416b8963d
commit 2c00504b42
20 changed files with 1277 additions and 13 deletions
+27
View File
@@ -146,6 +146,11 @@ RouteBase get $settingsRoute => GoRouteData.$route(
name: 'AddonCollectionRoute',
factory: $AddonCollectionRoute._fromState,
),
GoRouteData.$route(
path: 'tracking_protection_exceptions',
name: 'TrackingProtectionExceptionsRoute',
factory: $TrackingProtectionExceptionsRoute._fromState,
),
],
);
@@ -446,6 +451,28 @@ mixin $AddonCollectionRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin $TrackingProtectionExceptionsRoute on GoRouteData {
static TrackingProtectionExceptionsRoute _fromState(GoRouterState state) =>
TrackingProtectionExceptionsRoute();
@override
String get location =>
GoRouteData.$location('/settings/tracking_protection_exceptions');
@override
void go(BuildContext context) => context.go(location);
@override
Future<T?> push<T>(BuildContext context) => context.push<T>(location);
@override
void pushReplacement(BuildContext context) =>
context.pushReplacement(location);
@override
void replace(BuildContext context) => context.replace(location);
}
RouteBase get $browserRoute => GoRouteData.$route(
path: '/browser',
name: 'BrowserRoute',