refactor: fully deprecate camoufox

This commit is contained in:
zhom
2026-07-08 01:19:52 +04:00
parent 23dab4c8e4
commit 23859333c6
88 changed files with 702 additions and 37495 deletions
+3 -11
View File
@@ -26,7 +26,6 @@ interface GithubRelease {
interface BrowserVersionInfo {
version: string;
is_prerelease: boolean;
date: string;
}
@@ -100,7 +99,7 @@ export function useBrowserDownload() {
tag_name: versionInfo.version,
assets: [],
published_at: versionInfo.date,
is_nightly: versionInfo.is_prerelease,
is_nightly: false,
}),
);
@@ -146,7 +145,7 @@ export function useBrowserDownload() {
tag_name: versionInfo.version,
assets: [],
published_at: versionInfo.date,
is_nightly: versionInfo.is_prerelease,
is_nightly: false,
}),
);
@@ -402,15 +401,8 @@ export function useBrowserDownload() {
next.delete(progress.browser);
return next;
});
// On completion, refresh the downloaded versions for this browser and also refresh camoufox,
// since the Create dialog implicitly uses camoufox on the anti-detect tab
try {
await Promise.all([
loadDownloadedVersions(progress.browser),
progress.browser !== "camoufox"
? loadDownloadedVersions("camoufox")
: Promise.resolve([]),
]);
await loadDownloadedVersions(progress.browser);
} catch {
/* empty */
}
+1 -4
View File
@@ -157,10 +157,7 @@ export function useBrowserState(
if (!isClient) return "Loading...";
if (isCrossOsProfile(profile)) {
const profileOs =
profile.host_os ||
profile.camoufox_config?.os ||
profile.wayfern_config?.os;
const profileOs = profile.host_os || profile.wayfern_config?.os;
if (profileOs) {
const osName = getOSDisplayName(profileOs);
return `This profile was created on ${osName} and cannot be launched on a different operating system.`;
-1
View File
@@ -10,7 +10,6 @@ interface UpdateNotification {
current_version: string;
new_version: string;
affected_profiles: string[];
is_stable_update: boolean;
timestamp: number;
is_rolling_release: boolean;
}