Skip to content

The free and privacy-friendly screen recorder with no limits 🎥

Drive upload reliability, visible editor errors, and faster cloud recording starts

Alyssa X9498015e2a73
diff --git a/package.json b/package.json
index e5afe4d..432edea 100755
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "screenity",
- "version": "4.6.1",
+ "version": "4.6.2",
"description": "The free and privacy-friendly screen recorder with no sign in needed.",
"scripts": {
"build": "cross-env NODE_ENV=production node utils/build.js",
@@ -33,7 +33,8 @@
"release": "node scripts/release.mjs",
"test:unit": "node --test tests/unit/*.test.mjs",
"test:e2e": "playwright test --config tests/playwright.config.ts",
- "test:e2e:fast": "SCREENITY_E2E_HEADLESS=1 playwright test --config tests/playwright.config.ts"
+ "test:e2e:fast": "SCREENITY_E2E_HEADLESS=1 playwright test --config tests/playwright.config.ts",
+ "check:source": "node scripts/check-source-hygiene.mjs"
},
"dependencies": {
"@babel/plugin-transform-react-jsx": "^7.27.1",
diff --git a/scripts/check-source-hygiene.mjs b/scripts/check-source-hygiene.mjs
new file mode 100644
index 0000000..92136ee
--- /dev/null
+++ b/scripts/check-source-hygiene.mjs
@@ -0,0 +1,31 @@
+#!/usr/bin/env node
+// fails when git classifies a source file as binary, which happens when one
+// contains raw control bytes. those files can't be diffed, so changes to them
+// ship unreviewed.
+
+import { execSync } from "node:child_process";
+import { dirname, join } from "node:path";
+import { fileURLToPath } from "node:url";
+
+const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..");
+const sh = (cmd) =>
+ execSync(cmd, { cwd: ROOT, encoding: "utf8" }).split("\n").filter(Boolean);
+
+const TEXT = /\.(js|jsx|ts|tsx|mjs|cjs|json|css|scss|html|md|ya?ml)$/;
+const sources = sh("git ls-files src scripts").filter((f) => TEXT.test(f));
+// -I omits files git considers binary, so the difference is the offenders.
+// Empty files match nothing either, hence the size check.
+const textual = new Set(sh("git grep -I --name-only -e '' -- src scripts"));
+const offenders = sources.filter(
+ (f) => !textual.has(f) && sh(`git cat-file -s :${f}`)[0] !== "0",
+);
+
+if (!offenders.length) {
+ console.log(`source hygiene ok (${sources.length} files)`);
+ process.exit(0);
+}
+
+console.error("Source files git treats as binary (raw control bytes):");
+for (const f of offenders) console.error(` ${f}`);
+console.error("Usually an escape written as the literal byte, e.g. \\x00 in a regex.");
+process.exit(1);
diff --git a/scripts/release.mjs b/scripts/release.mjs
index f7e4acc..be0c870 100755
--- a/scripts/release.mjs
+++ b/scripts/release.mjs
@@ -92,6 +92,17 @@ writeFileSync(MANIFEST_PATH, JSON.stringify(manifest, null, 2) + "\n");
writeFileSync(PACKAGE_PATH, JSON.stringify(pkg, null, 2) + "\n");
console.log("Wrote manifest.json + package.json.\n");
+console.log("Running source hygiene check...");
+try {
+ sh("node scripts/check-source-hygiene.mjs");
+} catch {
+ console.error(
+ "\nControl bytes in source. Those files are undiffable in git, so changes ship unreviewed. Fix before release.",
+ );
+ process.exit(1);
+}
+console.log("");
+
console.log("Running i18n drift check...");
try {
sh("node scripts/check-i18n.mjs");
diff --git a/src/_locales/ca/messages.json b/src/_locales/ca/messages.json
index b29fe67..7b1d1ee 100644
--- a/src/_locales/ca/messages.json
+++ b/src/_locales/ca/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Aquest lloc web bloqueja l'accés a la càmera i el micròfon. Encara pots gravar aquí, però la càmera no es veurà.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "La descàrrega no s'ha completat",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Torna-ho a provar.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "No s'ha pogut desar a Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Torna-ho a provar.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "El teu Google Drive és ple",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Allibera espai i torna-ho a provar.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Gravació massa gran",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Aquesta gravació és massa gran per desar-la a Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "No s'ha pogut accedir a Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Torna a iniciar la sessió.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Aquesta gravació és buida",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "No s'ha capturat cap vídeo. Torna a provar la gravació.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/de/messages.json b/src/_locales/de/messages.json
index 5ebb412..ac5a5db 100644
--- a/src/_locales/de/messages.json
+++ b/src/_locales/de/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Diese Website blockiert den Zugriff auf Kamera und Mikrofon. Du kannst hier trotzdem aufnehmen, aber deine Kamera ist nicht sichtbar.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "Der Download wurde nicht abgeschlossen",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Bitte versuchen Sie es erneut.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Speichern in Google Drive fehlgeschlagen",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Bitte versuchen Sie es erneut.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Ihr Google Drive ist voll",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Geben Sie Speicherplatz frei und versuchen Sie es erneut.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Aufnahme zu groß",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Diese Aufnahme ist zu groß, um in Google Drive gespeichert zu werden.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Kein Zugriff auf Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Bitte melden Sie sich erneut an.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Diese Aufnahme ist leer",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Es wurde kein Video aufgezeichnet. Bitte versuchen Sie die Aufnahme erneut.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json
index 81b3e1d..0e0cbf2 100644
--- a/src/_locales/en/messages.json
+++ b/src/_locales/en/messages.json
@@ -1705,6 +1705,46 @@
"message": "Download interrupted. The recording is too large to retry automatically. Try saving again from the editor.",
"description": "Toast shown when a download is interrupted and the file is too large for the in-process base64 retry path"
},
+ "downloadFailedModalTitle": {
+ "message": "The download didn't finish",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Please try again.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Couldn't save to Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Please try again.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Your Google Drive is full",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Free up space and try again.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Recording too large",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "This recording is too large to save to Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Couldn't access Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Please sign in again.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
"recordingCorruptToast": {
"message": "This recording can't be played back. The file may be incomplete or corrupted. Try downloading the raw file from the Save menu.",
"description": "Toast shown when the editor's video element fails to decode the recording (corrupt or zero-byte file)"
@@ -1736,5 +1776,13 @@
"downloadProcessingDescription": {
"message": "This can take a while for long recordings.",
"description": "Body of the download-in-progress banner"
+ },
+ "emptyRecordingTitle": {
+ "message": "This recording is empty",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "No video was captured. Please try recording again.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/es/messages.json b/src/_locales/es/messages.json
index 78bdd04..7f63736 100644
--- a/src/_locales/es/messages.json
+++ b/src/_locales/es/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Este sitio web bloquea el acceso a tu cámara y micrófono. Puedes grabar aquí de todos modos, pero tu cámara no se verá.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "La descarga no se completó",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Inténtalo de nuevo.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "No se pudo guardar en Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Inténtalo de nuevo.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Tu Google Drive está lleno",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Libera espacio e inténtalo de nuevo.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Grabación demasiado grande",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Esta grabación es demasiado grande para guardarla en Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "No se pudo acceder a Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Vuelve a iniciar sesión.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Esta grabación está vacía",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "No se capturó ningún vídeo. Vuelve a intentar la grabación.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/fr/messages.json b/src/_locales/fr/messages.json
index e937047..9d03fa5 100644
--- a/src/_locales/fr/messages.json
+++ b/src/_locales/fr/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Ce site bloque l'accès à votre caméra et à votre microphone. Vous pouvez quand même enregistrer ici, mais votre caméra ne sera pas visible.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "Le téléchargement ne s'est pas terminé",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Veuillez réessayer.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Impossible d'enregistrer sur Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Veuillez réessayer.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Votre Google Drive est plein",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Libérez de l'espace et réessayez.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Enregistrement trop volumineux",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Cet enregistrement est trop volumineux pour être enregistré sur Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Impossible d'accéder à Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Veuillez vous reconnecter.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Cet enregistrement est vide",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Aucune vidéo n'a été capturée. Veuillez réessayer l'enregistrement.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/hi/messages.json b/src/_locales/hi/messages.json
index f88c634..bf364d2 100644
--- a/src/_locales/hi/messages.json
+++ b/src/_locales/hi/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "यह वेबसाइट आपके कैमरा और माइक्रोफोन तक पहुँच को रोकती है। आप यहाँ फिर भी रिकॉर्ड कर सकते हैं, लेकिन आपका कैमरा दिखाई नहीं देगा।",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "डाउनलोड पूरा नहीं हुआ",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "कृपया फिर से कोशिश करें।",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Google ड्राइव में सहेजा नहीं जा सका",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "कृपया फिर से कोशिश करें।",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "आपका Google ड्राइव भर गया है",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "जगह खाली करें और फिर से कोशिश करें।",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "रिकॉर्डिंग बहुत बड़ी है",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "यह रिकॉर्डिंग Google ड्राइव में सहेजने के लिए बहुत बड़ी है।",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Google ड्राइव तक नहीं पहुँचा जा सका",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "कृपया फिर से साइन इन करें।",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "यह रिकॉर्डिंग खाली है",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "कोई वीडियो कैप्चर नहीं हुआ। कृपया दोबारा रिकॉर्ड करें।",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/id/messages.json b/src/_locales/id/messages.json
index cd440ce..5bba2d2 100644
--- a/src/_locales/id/messages.json
+++ b/src/_locales/id/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Situs web ini memblokir akses ke kamera dan mikrofon Anda. Anda tetap dapat merekam di sini, tetapi kamera Anda tidak akan terlihat.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "Unduhan tidak selesai",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Silakan coba lagi.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Tidak dapat menyimpan ke Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Silakan coba lagi.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Google Drive Anda penuh",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Kosongkan ruang dan coba lagi.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Rekaman terlalu besar",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Rekaman ini terlalu besar untuk disimpan ke Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Tidak dapat mengakses Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Silakan masuk kembali.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Rekaman ini kosong",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Tidak ada video yang terekam. Silakan coba rekam lagi.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/it/messages.json b/src/_locales/it/messages.json
index bc05a6f..6860425 100644
--- a/src/_locales/it/messages.json
+++ b/src/_locales/it/messages.json
@@ -1713,5 +1713,53 @@
"cameraMicBlockedDescription": {
"message": "Questo sito web blocca l'accesso alla fotocamera e al microfono. Puoi comunque registrare qui, ma la tua fotocamera non sarà visibile.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "Il download non è stato completato",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Riprova.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Impossibile salvare su Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Riprova.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Il tuo Google Drive è pieno",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Libera spazio e riprova.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Registrazione troppo grande",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Questa registrazione è troppo grande per essere salvata su Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Impossibile accedere a Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Accedi di nuovo.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Questa registrazione è vuota",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Nessun video è stato acquisito. Prova a registrare di nuovo.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/ko/messages.json b/src/_locales/ko/messages.json
index dde415a..0c274f1 100644
--- a/src/_locales/ko/messages.json
+++ b/src/_locales/ko/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "이 웹사이트가 카메라와 마이크 접근을 차단하고 있어요. 여기서 녹화는 계속할 수 있지만, 카메라는 표시되지 않아요.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "다운로드가 완료되지 않았어요",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "다시 시도해 주세요.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Google Drive에 저장하지 못했어요",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "다시 시도해 주세요.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Google Drive 저장 공간이 가득 찼어요",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "공간을 확보한 후 다시 시도해 주세요.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "녹화본이 너무 커요",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "이 녹화본은 너무 커서 Google Drive에 저장할 수 없어요.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Google Drive에 접근하지 못했어요",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "다시 로그인해 주세요.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "이 녹화본은 비어 있어요",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "영상이 녹화되지 않았어요. 다시 녹화해 주세요.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/pl/messages.json b/src/_locales/pl/messages.json
index 175a4ff..6d57b76 100644
--- a/src/_locales/pl/messages.json
+++ b/src/_locales/pl/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Ta witryna blokuje dostęp do kamery i mikrofonu. Nadal możesz tutaj nagrywać, ale Twoja kamera nie będzie widoczna.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "Pobieranie nie zostało ukończone",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Spróbuj ponownie.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Nie udało się zapisać na Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Spróbuj ponownie.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Twój Google Drive jest pełny",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Zwolnij miejsce i spróbuj ponownie.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Nagranie jest zbyt duże",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "To nagranie jest zbyt duże, aby zapisać je na Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Nie udało się uzyskać dostępu do Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Zaloguj się ponownie.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "To nagranie jest puste",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Nie zarejestrowano obrazu. Spróbuj nagrać ponownie.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/pt_BR/messages.json b/src/_locales/pt_BR/messages.json
index e81732e..95f4fb4 100644
--- a/src/_locales/pt_BR/messages.json
+++ b/src/_locales/pt_BR/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Este site bloqueia o acesso à sua câmera e ao microfone. Você ainda pode gravar aqui, mas sua câmera não ficará visível.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "O download não foi concluído",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Tente novamente.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Não foi possível salvar no Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Tente novamente.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Seu Google Drive está cheio",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Libere espaço e tente novamente.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Gravação muito grande",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Esta gravação é muito grande para ser salva no Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Não foi possível acessar o Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Faça login novamente.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Esta gravação está vazia",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Nenhum vídeo foi capturado. Tente gravar novamente.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/pt_PT/messages.json b/src/_locales/pt_PT/messages.json
index 63403e4..4fcaf71 100644
--- a/src/_locales/pt_PT/messages.json
+++ b/src/_locales/pt_PT/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Este site bloqueia o acesso à tua câmara e microfone. Podes gravar aqui à mesma, mas a tua câmara não ficará visível.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "A transferência não foi concluída",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Tente novamente.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Não foi possível guardar no Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Tente novamente.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "O seu Google Drive está cheio",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Liberte espaço e tente novamente.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Gravação demasiado grande",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Esta gravação é demasiado grande para ser guardada no Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Não foi possível aceder ao Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Inicie sessão novamente.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Esta gravação está vazia",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Não foi capturado nenhum vídeo. Tente gravar novamente.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json
index c491a1c..73da6d5 100644
--- a/src/_locales/ru/messages.json
+++ b/src/_locales/ru/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Этот сайт блокирует доступ к камере и микрофону. Вы всё равно можете записывать здесь, но ваша камера не будет видна.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "Загрузка не завершилась",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Попробуйте снова.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Не удалось сохранить на Google Диск",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Попробуйте снова.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "На вашем Google Диске закончилось место",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Освободите место и попробуйте снова.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Запись слишком большая",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Эта запись слишком большая, чтобы сохранить её на Google Диск.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Не удалось получить доступ к Google Диску",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Войдите снова.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Эта запись пуста",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Видео не записано. Попробуйте записать снова.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/ta/messages.json b/src/_locales/ta/messages.json
index 44d6f02..6134998 100644
--- a/src/_locales/ta/messages.json
+++ b/src/_locales/ta/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "இந்த வலைத்தளம் உங்கள் கேமரா மற்றும் மைக்ரோஃபோன் அணுகலைத் தடுக்கிறது. நீங்கள் இங்கே இன்னும் பதிவு செய்யலாம், ஆனால் உங்கள் கேமரா தெரியாது.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "பதிவிறக்கம் முடியவில்லை",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "மீண்டும் முயற்சிக்கவும்.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Google Drive இல் சேமிக்க முடியவில்லை",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "மீண்டும் முயற்சிக்கவும்.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "உங்கள் Google Drive நிரம்பிவிட்டது",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "இடத்தைக் காலி செய்து மீண்டும் முயற்சிக்கவும்.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "பதிவு மிகப் பெரியது",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "இந்தப் பதிவு Google Drive இல் சேமிக்க முடியாத அளவுக்குப் பெரியது.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Google Drive ஐ அணுக முடியவில்லை",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "மீண்டும் உள்நுழையவும்.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "இந்தப் பதிவு காலியாக உள்ளது",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "எந்த வீடியோவும் பதிவாகவில்லை. மீண்டும் பதிவு செய்ய முயற்சிக்கவும்.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/tr/messages.json b/src/_locales/tr/messages.json
index 8711f80..89747fe 100644
--- a/src/_locales/tr/messages.json
+++ b/src/_locales/tr/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "Bu web sitesi kameranıza ve mikrofonunuza erişimi engelliyor. Yine de burada kayıt yapabilirsiniz, ancak kameranız görünmeyecek.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "İndirme tamamlanmadı",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Lütfen tekrar deneyin.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Google Drive'a kaydedilemedi",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Lütfen tekrar deneyin.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "Google Drive'ınız dolu",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Yer açıp tekrar deneyin.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Kayıt çok büyük",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Bu kayıt Google Drive'a kaydedilemeyecek kadar büyük.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Google Drive'a erişilemedi",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Lütfen tekrar giriş yapın.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Bu kayıt boş",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Görüntü kaydedilmedi. Lütfen tekrar kaydetmeyi deneyin.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/uk/messages.json b/src/_locales/uk/messages.json
index 2a95c9b..6e95d2f 100644
--- a/src/_locales/uk/messages.json
+++ b/src/_locales/uk/messages.json
@@ -1716,5 +1716,53 @@
"cameraMicBlockedDescription": {
"message": "Цей сайт блокує доступ до камери та мікрофона. Ви все одно можете записувати тут, але вашу камеру не буде видно.",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "Завантаження не завершилося",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "Спробуйте ще раз.",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "Не вдалося зберегти на Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "Спробуйте ще раз.",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "На вашому Google Drive закінчилося місце",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "Звільніть місце та спробуйте ще раз.",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "Запис завеликий",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "Цей запис завеликий, щоб зберегти його на Google Drive.",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "Не вдалося отримати доступ до Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "Увійдіть знову.",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "Цей запис порожній",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "Відео не записано. Спробуйте записати ще раз.",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/zh_CN/messages.json b/src/_locales/zh_CN/messages.json
index 6a6b9eb..ec499b8 100644
--- a/src/_locales/zh_CN/messages.json
+++ b/src/_locales/zh_CN/messages.json
@@ -1717,5 +1717,53 @@
"cameraMicBlockedDescription": {
"message": "此网站阻止访问您的摄像头和麦克风。您仍然可以在此处录制,但您的摄像头画面不会显示。",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "下载未完成",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "请重试。",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "无法保存到 Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "请重试。",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "您的 Google Drive 已满",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "请释放空间后重试。",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "录制文件太大",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "此录制文件太大,无法保存到 Google Drive。",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "无法访问 Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "请重新登录。",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "此录制文件为空",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "未捕获到视频。请重新录制。",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/_locales/zh_TW/messages.json b/src/_locales/zh_TW/messages.json
index 4a577c9..3549caa 100644
--- a/src/_locales/zh_TW/messages.json
+++ b/src/_locales/zh_TW/messages.json
@@ -1718,5 +1718,53 @@
"cameraMicBlockedDescription": {
"message": "此網站禁止存取您的相機和麥克風。您仍然可以在此處錄製,但您的相機將不會顯示。",
"description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "downloadFailedModalTitle": {
+ "message": "下載未完成",
+ "description": "Modal title when a download to disk times out or fails"
+ },
+ "downloadFailedModalDescription": {
+ "message": "請重試。",
+ "description": "Toast->modal description: what to do after a failed download"
+ },
+ "driveGenericModalTitle": {
+ "message": "無法儲存到 Google Drive",
+ "description": "Modal title for a generic Google Drive save failure"
+ },
+ "driveGenericModalDescription": {
+ "message": "請重試。",
+ "description": "Modal description for a generic Google Drive save failure"
+ },
+ "driveQuotaModalTitle": {
+ "message": "您的 Google Drive 已滿",
+ "description": "Modal title when the Google Drive account is out of storage"
+ },
+ "driveQuotaModalDescription": {
+ "message": "請釋出空間後重試。",
+ "description": "Modal description when the Google Drive account is out of storage"
+ },
+ "driveTooLargeModalTitle": {
+ "message": "錄製檔案太大",
+ "description": "Modal title when a recording exceeds Google Drive limits"
+ },
+ "driveTooLargeModalDescription": {
+ "message": "此錄製檔案太大,無法儲存到 Google Drive。",
+ "description": "Modal description when a recording exceeds Google Drive limits"
+ },
+ "driveAuthModalTitle": {
+ "message": "無法存取 Google Drive",
+ "description": "Modal title when Google Drive authentication expired or was revoked"
+ },
+ "driveAuthModalDescription": {
+ "message": "請重新登入。",
+ "description": "Modal description when Google Drive authentication expired or was revoked"
+ },
+ "emptyRecordingTitle": {
+ "message": "此錄製檔案為空",
+ "description": "Modal title when the recording file contains no video"
+ },
+ "emptyRecordingDescription": {
+ "message": "未擷取到影片。請重新錄製。",
+ "description": "Modal description when the recording file contains no video"
}
}
diff --git a/src/manifest.json b/src/manifest.json
index b31b260..dc6aec0 100755
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -3,7 +3,7 @@
"name": "__MSG_extName__",
"description": "__MSG_extDesc__",
"default_locale": "en",
- "version": "4.6.1",
+ "version": "4.6.2",
"background": {
"service_worker": "background.bundle.js"
},
diff --git a/src/pages/Background/drive/handleSaveToDrive.js b/src/pages/Background/drive/handleSaveToDrive.js
index 36077c4..ed13866 100644
Binary files a/src/pages/Background/drive/handleSaveToDrive.js and b/src/pages/Background/drive/handleSaveToDrive.js differ
diff --git a/src/pages/Background/lifecycleObserver.js b/src/pages/Background/lifecycleObserver.js
index a0266c2..daeec10 100644
--- a/src/pages/Background/lifecycleObserver.js
+++ b/src/pages/Background/lifecycleObserver.js
@@ -44,8 +44,21 @@ export const initLifecycleObserver = () => {
for (const key of Object.keys(changes)) {
if (!TRACKED_KEYS.has(key)) continue;
const { oldValue, newValue } = changes[key];
- // Skip no-op writes (same value).
+ // Skip no-op writes. `===` alone only catches primitives: storage hands
+ // back a fresh object each time, so object-valued keys (e.g.
+ // lastRecordingBackendRef) compared unequal on every rewrite and logged
+ // even when nothing changed.
if (oldValue === newValue) continue;
+ if (
+ oldValue !== null &&
+ newValue !== null &&
+ typeof oldValue === "object" &&
+ typeof newValue === "object"
+ ) {
+ try {
+ if (JSON.stringify(oldValue) === JSON.stringify(newValue)) continue;
+ } catch {}
+ }
lifecycle("BG.storage", "set", {
key,
from: summarizeValue(oldValue),
diff --git a/src/pages/Background/offscreen/closeOffscreenDocumentWithFlush.js b/src/pages/Background/offscreen/closeOffscreenDocumentWithFlush.js
index 17cbc19..658de1d 100644
--- a/src/pages/Background/offscreen/closeOffscreenDocumentWithFlush.js
+++ b/src/pages/Background/offscreen/closeOffscreenDocumentWithFlush.js
@@ -23,6 +23,14 @@ export const closeOffscreenDocumentWithFlush = async ({
offDoc.documentUrl.includes("cloud=1");
const effectiveTimeoutMs = isCloudDoc ? timeoutMs : Math.min(timeoutMs, 3000);
+ // A resume doc is draining journalled TUS uploads and answers only
+ // "resume-pending-uploads", so it never acks a shutdown even though it is
+ // busy. Give it the full wait rather than the early close below.
+ const isResumeDoc =
+ typeof offDoc.documentUrl === "string" &&
+ offDoc.documentUrl.includes("resume=1");
+
+ let cleanupAck = () => {};
const ackPromise = new Promise((resolve) => {
const timer = setTimeout(() => {
chrome.runtime.onMessage.removeListener(listener);
@@ -36,18 +44,30 @@ export const closeOffscreenDocumentWithFlush = async ({
}
};
chrome.runtime.onMessage.addListener(listener);
+ cleanupAck = () => {
+ clearTimeout(timer);
+ chrome.runtime.onMessage.removeListener(listener);
+ };
+ });
+
+ const sendPromise = chrome.runtime.sendMessage({
+ type: "offscreen-shutdown",
+ reason,
+ shouldFinalize,
+ timeoutMs: Math.max(2000, effectiveTimeoutMs - 2000),
});
- chrome.runtime
- .sendMessage({
- type: "offscreen-shutdown",
- reason,
- shouldFinalize,
- timeoutMs: Math.max(2000, effectiveTimeoutMs - 2000),
- })
- .catch(() => {});
+ // A rejected send means nobody answered, so no ack is coming and waiting out
+ // the timeout only stalls the next picker. It also fires for a live doc whose
+ // listeners ignore the message, hence the resume guard above. A resolved send
+ // proves nothing (any context may answer), so it keeps the normal wait.
+ const noReceiver = sendPromise.then(
+ () => new Promise(() => {}),
+ () => (isResumeDoc ? new Promise(() => {}) : { ok: false, noReceiver: true }),
+ );
- const result = await ackPromise;
+ const result = await Promise.race([ackPromise, noReceiver]);
+ cleanupAck();
try {
await chrome.offscreen.closeDocument();
diff --git a/src/pages/CloudRecorder/CloudRecorder.jsx b/src/pages/CloudRecorder/CloudRecorder.jsx
index 1034f6a..16ed745 100644
--- a/src/pages/CloudRecorder/CloudRecorder.jsx
+++ b/src/pages/CloudRecorder/CloudRecorder.jsx
@@ -30,7 +30,7 @@ import {
startEncoderPrewarm,
closeActiveEncoderPrewarm,
} from "../Recorder/encoderPrewarm";
-import { perfMark } from "../utils/perfMarks";
+import { perfMark, perfSpan } from "../utils/perfMarks";
import {
chooseChunksStore,
openExistingChunksStore,
@@ -425,6 +425,18 @@ const CloudRecorder = () => {
const maybeStartRecording = (reason = "unknown") => {
if (!pendingStartRef.current || isFinishing.current) return;
if (canBeginRecording()) {
+ if (pendingStartAttempts.current > 0) {
+ perfMark("CloudRecorder capture-late-recovered", {
+ polls: pendingStartAttempts.current,
+ approxLostMs: pendingStartAttempts.current * 200,
+ });
+ // Not a step in the trace's t map, so this merges the counts without
+ // stamping a timestamp. Survives the perf timeline's event cap.
+ traceStep("captureLate", {
+ captureLatePolls: pendingStartAttempts.current,
+ captureLateApproxMs: pendingStartAttempts.current * 200,
+ });
+ }
clearPendingStart();
startRecording();
return;
@@ -432,6 +444,12 @@ const CloudRecorder = () => {
const attempt = pendingStartAttempts.current + 1;
pendingStartAttempts.current = attempt;
+ if (attempt === 1) {
+ // The countdown finished before the recorder was ready, so capture
+ // starts late and the user loses the head of the recording. Each poll
+ // is 200ms; the attempt count at start tells us how much was lost.
+ perfMark("CloudRecorder capture-late-after-countdown", { reason });
+ }
if (attempt > 75) {
clearPendingStart();
sendRecordingError(
@@ -6588,6 +6606,34 @@ const CloudRecorder = () => {
setInitProject(true);
+ // Kicked off here so the POST overlaps mic acquisition instead of sitting
+ // in front of the countdown. Deliberately after the stream resolves, so a
+ // cancelled picker can't mint a project for a recording that never runs.
+ let projectCreateMs = null;
+ const projectPrefetch = (async () => {
+ const { projectId, multiProjectId } = await chrome.storage.local.get([
+ "projectId",
+ "multiProjectId",
+ ]);
+ if (projectId || multiProjectId) return null;
+ const now = new Date();
+ const options = { day: "2-digit", month: "short", year: "numeric" };
+ const endCreate = perfSpan("CloudRecorder createVideoProject");
+ const startedAt = Date.now();
+ try {
+ return await createVideoProject({
+ title: `Untitled video - ${now.toLocaleString("en-GB", options)}`,
+ instantMode: instantMode.current,
+ });
+ } finally {
+ projectCreateMs = Date.now() - startedAt;
+ endCreate();
+ }
+ })();
+ // Mark handled; the rejection is re-thrown at the await site below.
+ projectPrefetch.catch(() => {});
+
+
// If the user disabled the mic, skip getUserMedia: gain-muting still
// wakes iPhone Continuity etc. Toggle-on mid-recording goes via setMic().
if (shouldAcquireMicAtStart(data)) {
@@ -6723,23 +6769,38 @@ const CloudRecorder = () => {
const reusedProject = Boolean(videoId);
if (videoId) {
+ // A write landing between the prefetch's read and this one (restart
+ // restoring a multi snapshot, back-to-back reuse) routes us here, so
+ // settle the prefetch rather than leaving whatever it created adrift.
+ const orphan = await projectPrefetch.catch(() => null);
+ if (orphan && orphan !== videoId) {
+ void emitUploadTelemetry("project_state_change", {
+ source: "cloudrecorder-prefetch-orphaned",
+ from: orphan,
+ to: videoId,
+ multiMode: Boolean(multiMode),
+ });
+ }
if (multiMode) {
await chrome.storage.local.set({
multiSceneCount: multiSceneCount || 0,
});
}
} else {
- const now = new Date();
- const options = { day: "2-digit", month: "short", year: "numeric" };
- const title = `Untitled video - ${now.toLocaleString(
- "en-GB",
- options,
- )}`;
-
- videoId = await createVideoProject({
- title,
- instantMode: instantMode.current,
- });
+ // Usually already resolved by the prefetch kicked off before mic
+ // acquisition; falls back to a fresh create if the prefetch saw a
+ // project in storage that has since been cleared.
+ videoId = await projectPrefetch;
+ if (!videoId) {
+ const now = new Date();
+ const options = { day: "2-digit", month: "short", year: "numeric" };
+ const startedAt = Date.now();
+ videoId = await createVideoProject({
+ title: `Untitled video - ${now.toLocaleString("en-GB", options)}`,
+ instantMode: instantMode.current,
+ });
+ projectCreateMs = Date.now() - startedAt;
+ }
if (!videoId) throw new Error("Failed to create video project");
if (multiMode) {
@@ -6751,7 +6812,10 @@ const CloudRecorder = () => {
}
await chrome.storage.local.set({ projectId: videoId });
- traceStep("apiProjectCreated");
+ traceStep("apiProjectCreated", {
+ projectCreateMs,
+ projectReused: reusedProject,
+ });
void emitUploadTelemetry("project_state_change", {
source: reusedProject
? "cloudrecorder-reused"
@@ -6775,11 +6839,24 @@ const CloudRecorder = () => {
traceStep("resetActiveTabSent");
chrome.runtime.sendMessage({ type: "reset-active-tab" });
+ // Races the countdown; if it loses, capture is delayed in 200ms polls
+ // (canBeginRecording).
+ const endUploaderInit = perfSpan("CloudRecorder initializeUploaders");
+ const uploaderInitStartedAt = Date.now();
uploadersInitialized.current = await initializeUploaders();
+ const uploaderInitMs = Date.now() - uploaderInitStartedAt;
+ endUploaderInit({ ok: Boolean(uploadersInitialized.current) });
if (!uploadersInitialized.current) {
throw new Error("Failed to initialize uploaders");
}
- traceStep("apiUploadersReady");
+ traceStep("apiUploadersReady", {
+ uploaderInitMs,
+ uploaderCreateMs: {
+ screen: screenUploader.current?.createPostMs ?? null,
+ camera: cameraUploader.current?.createPostMs ?? null,
+ audio: audioUploader.current?.createPostMs ?? null,
+ },
+ });
setStarted(true);
setInitProject(false);
@@ -6808,7 +6885,10 @@ const CloudRecorder = () => {
startStreamingInFlight.current = true;
startTabKeepAlive();
- if (document.visibilityState === "hidden") {
+ // Offscreen docs are always visibilityState "hidden" and have no
+ // sender.tab, so the handler's tabs.update can't do anything. It only
+ // cost a SW round-trip on every cloud start. Tab hosts still need it.
+ if (!IS_OFFSCREEN_HOST && document.visibilityState === "hidden") {
if (globalThis.SCREENITY_VERBOSE_LOGS) {
console.warn("[CloudRecorder] Tab is hidden at recording start, requesting activation");
}
diff --git a/src/pages/CloudRecorder/bunnyTusUploader.js b/src/pages/CloudRecorder/bunnyTusUploader.js
index 5c00e8a..25e7b7d 100644
--- a/src/pages/CloudRecorder/bunnyTusUploader.js
+++ b/src/pages/CloudRecorder/bunnyTusUploader.js
@@ -1,3 +1,5 @@
+import { perfSpan } from "../utils/perfMarks";
+
const API_BASE = process.env.SCREENITY_API_BASE_URL;
// Guard so uploaders in the same page session don't sweep concurrently.
@@ -783,10 +785,19 @@ export default class BunnyTusUploader {
// Retry transient failures so a backend blip doesn't abort the
// recording. A 4xx is a real rejection, so don't retry it.
let res = null;
+ // This POST gates capture start (canBeginRecording waits on uploader
+ // init), so its server time is start latency.
+ const endCreatePost = perfSpan("Uploader POST /bunny/videos", { type });
+ // Also kept on the instance: the perf timeline is capped and evicts
+ // the start phase on long recordings, so CloudRecorder mirrors these
+ // into the start-flow trace, which is a single uncapped object.
+ const createPostStartedAt = Date.now();
+ let postAttempts = 0;
for (let attempt = 0; attempt < 3; attempt += 1) {
if (attempt > 0) {
await new Promise((r) => setTimeout(r, 500 * attempt));
}
+ postAttempts = attempt + 1;
try {
res = await fetch(`${API_BASE}/bunny/videos`, {
method: "POST",
@@ -812,6 +823,14 @@ export default class BunnyTusUploader {
const transient = res.status >= 500 || res.status === 429;
if (!transient) break;
}
+ this.createPostMs = Date.now() - createPostStartedAt;
+ this.createPostAttempts = postAttempts;
+ this.createPostStatus = res ? res.status : null;
+ endCreatePost({
+ attempts: postAttempts,
+ status: res ? res.status : null,
+ ok: Boolean(res && res.ok),
+ });
if (!res || !res.ok) {
// PROBE: persist failure shape so post-mortem can see what
diff --git a/src/pages/Download/Download.jsx b/src/pages/Download/Download.jsx
index e7c6ea2..576ef79 100644
Binary files a/src/pages/Download/Download.jsx and b/src/pages/Download/Download.jsx differ
diff --git a/src/pages/EditorApp/components/player/VideoPlayer.jsx b/src/pages/EditorApp/components/player/VideoPlayer.jsx
index 37e8c4f..a99f85d 100644
--- a/src/pages/EditorApp/components/player/VideoPlayer.jsx
+++ b/src/pages/EditorApp/components/player/VideoPlayer.jsx
@@ -3,6 +3,7 @@ import { createPortal } from "react-dom";
import Plyr from "plyr-react";
import "../../styles/plyr.css";
import { ContentStateContext } from "../../context/ContentState";
+import { showEditorToast } from "../../utils/editorToast";
import Title from "./Title";
@@ -123,11 +124,11 @@ const VideoPlayer = (props) => {
if (errorSurfaced) return;
errorSurfaced = true;
try {
- chrome.runtime.sendMessage({
- type: "show-toast",
- message: chrome.i18n.getMessage("recordingCorruptToast"),
- timeout: 8000,
- });
+ showEditorToast(
+ contentStateRef.current,
+ chrome.i18n.getMessage("recordingCorruptToast"),
+ 8000,
+ );
} catch {}
try {
chrome.runtime.sendMessage({
diff --git a/src/pages/EditorApp/context/ContentState.jsx b/src/pages/EditorApp/context/ContentState.jsx
index aa29c1a..37cb053 100644
--- a/src/pages/EditorApp/context/ContentState.jsx
+++ b/src/pages/EditorApp/context/ContentState.jsx
@@ -27,6 +27,7 @@ import { triggerSupportDownload } from "../../utils/triggerSupportDownload";
import { chooseReader } from "../recorderStorage/chooseReader";
import { downloadResolvedRecording } from "../recorderStorage/resolveRecordingFile";
import { runEditorOp } from "../editorOps";
+import { showEditorToast } from "../utils/editorToast";
// mediabunny is ~630KB, only used by export/remux/conversion on user action.
// Lazy-load to keep parse cost off editor mount. Cached promise.
let _mbPromise = null;
@@ -181,12 +182,11 @@ const ContentState = (props) => {
contentStateRef.current?.title,
(status) => {
if (status === "started") return;
- chrome.runtime.sendMessage({
- type: "show-toast",
- message:
- chrome.i18n.getMessage("rawRecordingModalTitle") +
+ showEditorToast(
+ contentStateRef.current,
+ chrome.i18n.getMessage("rawRecordingModalTitle") +
(status === "active" ? "" : ": no data"),
- });
+ );
},
);
},
@@ -1251,6 +1251,7 @@ const ContentState = (props) => {
} catch {}
let directBlob = null;
let opfsReadFailed = false;
+ let opfsEmpty = false;
let backendRefForThisLoad = null;
try {
const { lastRecordingBackendRef } = await chrome.storage.local.get([
@@ -1361,6 +1362,13 @@ const ContentState = (props) => {
"[Screenity][Sandbox] OPFS direct read failed",
{ attempt, err },
);
+ // A 0-byte file has nothing to wait for; retrying twice more just
+ // delays an error we can already state precisely.
+ if (err?.code === "opfs-empty-recording") {
+ opfsEmpty = true;
+ opfsReadFailed = true;
+ break;
+ }
if (attempt < MAX_OPFS_READ_ATTEMPTS) {
setContentState((prev) =>
prev.finalizingRecording ? prev : { ...prev, finalizingRecording: true },
@@ -1417,8 +1425,12 @@ const ContentState = (props) => {
makeVideoCheck.current = false;
if (typeof contentStateRef.current?.openModal === "function") {
contentStateRef.current.openModal(
- chrome.i18n.getMessage("opfsLoadErrorTitle"),
- chrome.i18n.getMessage("opfsLoadErrorDescription"),
+ chrome.i18n.getMessage(
+ opfsEmpty ? "emptyRecordingTitle" : "opfsLoadErrorTitle",
+ ),
+ chrome.i18n.getMessage(
+ opfsEmpty ? "emptyRecordingDescription" : "opfsLoadErrorDescription",
+ ),
null,
chrome.i18n.getMessage("permissionsModalDismiss"),
() => {},
@@ -1441,6 +1453,7 @@ const ContentState = (props) => {
}
diagForward("sandbox-recording-load-failed", {
backend: backendRefForThisLoad?.backend || "unknown",
+ empty: opfsEmpty,
});
}
}
@@ -2897,6 +2910,22 @@ const ContentState = (props) => {
downloadInProgress: false,
}));
} catch {}
+ diagForward("editor-download-fail", { reason: "timeout" });
+ try {
+ // Modal, not the relayed toast: show-toast only reaches the active
+ // tab's content script, which is never the editor page.
+ const openModal = contentStateRef.current?.openModal;
+ if (typeof openModal === "function") {
+ openModal(
+ chrome.i18n.getMessage("downloadFailedModalTitle"),
+ chrome.i18n.getMessage("downloadFailedModalDescription"),
+ null,
+ chrome.i18n.getMessage("closeModalLabel"),
+ () => {},
+ () => {},
+ );
+ }
+ } catch {}
resolve();
}, timeoutMs);
@@ -2930,13 +2959,11 @@ const ContentState = (props) => {
}));
} catch {}
try {
- chrome.runtime.sendMessage({
- type: "show-toast",
- message: chrome.i18n.getMessage(
- "downloadInterruptedLargeToast",
- ),
- timeout: 8000,
- });
+ showEditorToast(
+ contentStateRef.current,
+ chrome.i18n.getMessage("downloadInterruptedLargeToast"),
+ 8000,
+ );
} catch {}
} else {
await new Promise((res) => {
@@ -3290,6 +3317,10 @@ const ContentState = (props) => {
// downloading is the real lock
if (latest.downloading) return;
downloadCancelledRef.current = false;
+ diagForward("editor-download-start", {
+ kind: "mp4",
+ bytes: latest.blob?.size ?? null,
+ });
setContentState((prev) => ({
...prev,
@@ -3360,6 +3391,28 @@ const ContentState = (props) => {
setContentState((prev) => ({ ...prev, saved: true }));
} catch (fallbackErr) {
console.error("MP4 fallback download failed:", fallbackErr);
+ // Both the remux and the raw-fMP4 fallback failed: the user got no
+ // file. Silent before, so a "download does nothing" report had nothing
+ // to go on.
+ diagForward("editor-download-fail", {
+ kind: "mp4",
+ reason: String(err?.message || err).slice(0, 80),
+ });
+ try {
+ // Modal, not the relayed toast: show-toast only reaches the active
+ // tab's content script, which is never the editor page.
+ const openModal = contentStateRef.current?.openModal;
+ if (typeof openModal === "function") {
+ openModal(
+ chrome.i18n.getMessage("downloadFailedModalTitle"),
+ chrome.i18n.getMessage("downloadFailedModalDescription"),
+ null,
+ chrome.i18n.getMessage("closeModalLabel"),
+ () => {},
+ () => {},
+ );
+ }
+ } catch {}
}
} finally {
setContentState((prev) => ({
@@ -3551,11 +3604,11 @@ const ContentState = (props) => {
}
if (latest.duration > 30) {
try {
- chrome.runtime.sendMessage({
- type: "show-toast",
- message: chrome.i18n.getMessage("downloadGIFTooLongToast"),
- timeout: 6000,
- });
+ showEditorToast(
+ contentStateRef.current,
+ chrome.i18n.getMessage("downloadGIFTooLongToast"),
+ 6000,
+ );
} catch {}
return;
}
diff --git a/src/pages/EditorApp/layout/player/RightPanel.js b/src/pages/EditorApp/layout/player/RightPanel.js
index c3f509b..76c1637 100644
--- a/src/pages/EditorApp/layout/player/RightPanel.js
+++ b/src/pages/EditorApp/layout/player/RightPanel.js
@@ -3,6 +3,9 @@ import styles from "../../styles/player/_RightPanel.module.scss";
import { buildDiagnosticZip } from "../../../utils/buildDiagnosticZip";
import { downloadResolvedRecording } from "../../recorderStorage/resolveRecordingFile";
+import { stageBlobToOpfs } from "../../recorderStorage/stageBlobToOpfs";
+import { diagForward } from "../../../utils/diagForward";
+import { showEditorToast } from "../../utils/editorToast";
import { ReactSVG } from "react-svg";
@@ -18,6 +21,11 @@ const RightPanel = () => {
const [contentState, setContentState] = useContext(ContentStateContext);
const contentStateRef = useRef(contentState);
const consoleErrorRef = useRef([]);
+ // `disabled` on a <div role="button"> is inert, so the click still fires
+ // while a save is in flight. contentStateRef lags a render, so hold the
+ // in-flight lock in its own ref and clear it when saveDrive goes false
+ // (failWith, or the "saved-to-drive" message on success).
+ const saveDriveInFlight = useRef(false);
useEffect(() => {
console.error = (error) => {
@@ -29,6 +37,10 @@ const RightPanel = () => {
contentStateRef.current = contentState;
}, [contentState]);
+ useEffect(() => {
+ if (!contentState.saveDrive) saveDriveInFlight.current = false;
+ }, [contentState.saveDrive]);
+
const getNotAvailableLabel = () => {
if (contentState.fallback && contentState.noffmpeg && contentState.editLimit === 0) {
return chrome.i18n.getMessage("notAvailableLongRecording");
@@ -48,100 +60,161 @@ const RightPanel = () => {
return base;
};
- const saveToDrive = () => {
+ // sendMessage rejects past ~64 MB, and base64 inflates ~1.33x, so a base64
+ // Drive upload is unsafe above ~48 MB. The OPFS path has no such limit; this
+ // only gates the fallback when OPFS staging is unavailable.
+ const DRIVE_BASE64_MAX_BYTES = 48 * 1024 * 1024;
+
+ const saveToDrive = async () => {
+ if (saveDriveInFlight.current) return;
+ saveDriveInFlight.current = true;
setContentState((prevContentState) => ({
...prevContentState,
saveDrive: true,
}));
- const handleDriveResponse = (response) => {
- if (!response || response.status === "ew" || response.error) {
- console.error("[Drive] drive_save_failed:", response?.error || "unknown error");
- setContentState((prevContentState) => ({
- ...prevContentState,
- saveDrive: false,
- }));
+ // Modal rather than a toast: the editor is an extension page, and the
+ // background's show-toast relay only reaches the content script of the
+ // active tab, so a toast raised here is never seen by someone sitting in
+ // the editor. A modal also carries the recovery action for each cause.
+ const failWith = (errorCode) => {
+ const code = errorCode || "drive-generic";
+ diagForward("editor-drive-save-fail", { errorCode: code });
+ const base =
+ {
+ "drive-quota": "driveQuota",
+ "drive-too-large": "driveTooLarge",
+ "drive-auth": "driveAuth",
+ }[code] || "driveGeneric";
+
+ const openModal = contentStateRef.current?.openModal;
+ if (typeof openModal === "function") {
+ // Quota is the one cause retrying can't clear, so it links out to
+ // Drive storage instead. Too-large has no recovery from here.
+ let buttonLabel = chrome.i18n.getMessage("offlineLabelTryAgain");
+ let action = () => runSaveToDrive();
+ if (code === "drive-quota") {
+ buttonLabel = chrome.i18n.getMessage("manageStorageButtonLabel");
+ action = () =>
+ window.open("https://drive.google.com/settings/storage", "_blank");
+ } else if (code === "drive-too-large") {
+ buttonLabel = null;
+ action = () => {};
+ }
+ openModal(
+ chrome.i18n.getMessage(`${base}ModalTitle`),
+ chrome.i18n.getMessage(`${base}ModalDescription`),
+ buttonLabel,
+ chrome.i18n.getMessage("closeModalLabel"),
+ action,
+ () => {},
+ );
}
- // On success, saveDrive is reset by the "saved-to-drive" message from background.
- };
- const handleDriveError = (err) => {
- console.error("[Drive] drive_save_error:", err);
setContentState((prevContentState) => ({
...prevContentState,
saveDrive: false,
+ driveError: code,
}));
};
- if (contentState.noffmpeg || !contentState.mp4ready || !contentState.blob) {
- // Prefer duration-fixed webm over rebuilding from raw chunks.
- const fixedWebm = contentState.webm;
- if (fixedWebm && fixedWebm instanceof Blob && fixedWebm.size > 0) {
- const reader = new FileReader();
- reader.onload = () => {
- const dataUrl = reader.result;
- const base64 = dataUrl.split(",")[1];
- chrome.runtime
- .sendMessage({
- type: "save-to-drive",
- base64: base64,
- title: contentState.title,
- isWebm: true,
- })
- .then(handleDriveResponse)
- .catch(handleDriveError);
- };
- reader.onerror = () => {
- chrome.runtime
- .sendMessage({
- type: "save-to-drive-fallback",
- title: contentState.title,
- })
- .then(handleDriveResponse)
- .catch(handleDriveError);
- };
- reader.readAsDataURL(fixedWebm);
- } else {
- chrome.runtime
- .sendMessage({
- type: "save-to-drive-fallback",
- title: contentState.title,
- })
- .then(handleDriveResponse)
- .catch(handleDriveError);
+ const handleDriveResponse = (response) => {
+ if (!response || response.status === "ew" || response.error) {
+ console.error(
+ "[Drive] drive_save_failed:",
+ response?.error || "unknown error",
+ );
+ failWith(response?.errorCode);
}
- } else {
- const reader = new FileReader();
- reader.onload = () => {
- const dataUrl = reader.result;
- const base64 = dataUrl.split(",")[1];
+ // On success, saveDrive is reset by the "saved-to-drive" message.
+ };
+ const handleDriveError = (err) => {
+ console.error("[Drive] drive_save_error:", err);
+ failWith("drive-generic");
+ };
- chrome.runtime
- .sendMessage({
- type: "save-to-drive",
- base64: base64,
- title: contentState.title,
- })
- .then(handleDriveResponse)
- .catch(handleDriveError);
- };
- reader.onerror = () => {
- console.error("[Drive] FileReader failed to read blob for Drive upload");
- setContentState((prevContentState) => ({
- ...prevContentState,
- saveDrive: false,
- }));
- };
- if (
- !contentState.noffmpeg &&
- contentState.mp4ready &&
- contentState.blob
- ) {
- reader.readAsDataURL(contentState.blob);
- } else {
- reader.readAsDataURL(contentState.webm);
- }
+ // Pick the source: the MP4 export when ready, else the duration-fixed webm.
+ // With neither, the background rebuilds from IndexedDB chunks itself (no
+ // base64 transfer), so route straight to the fallback.
+ const useMp4 =
+ !contentState.noffmpeg && contentState.mp4ready && contentState.blob;
+ const source = useMp4 ? contentState.blob : contentState.webm;
+ const isWebm = !useMp4;
+
+ if (!(source instanceof Blob) || source.size === 0) {
+ chrome.runtime
+ .sendMessage({ type: "save-to-drive-fallback", title: contentState.title })
+ .then(handleDriveResponse)
+ .catch(handleDriveError);
+ return;
}
+
+ diagForward("editor-drive-save-start", {
+ bytes: source.size,
+ isWebm,
+ transport: "opfs",
+ });
+
+ // Preferred: stage into OPFS and send only the filename. Streams to disk,
+ // so it's memory-safe at any size — this is the large-file fix.
+ const opfsFileName = await stageBlobToOpfs(source, isWebm ? "webm" : "mp4");
+ if (opfsFileName) {
+ chrome.runtime
+ .sendMessage({
+ type: "save-to-drive",
+ opfsFileName,
+ isWebm,
+ title: contentState.title,
+ })
+ .then(handleDriveResponse)
+ .catch(handleDriveError);
+ return;
+ }
+
+ // OPFS unavailable: fall back to base64, but only when small enough to
+ // survive the message-size cap. Above it, tell the user instead of failing
+ // silently the way this used to.
+ if (source.size > DRIVE_BASE64_MAX_BYTES) {
+ // Not a Drive limit: OPFS staging failed and the base64 fallback can't
+ // carry this much over sendMessage. Drive would accept the file, so
+ // don't tell the user it's too large for Drive; retrying can restage it.
+ failWith("drive-generic");
+ return;
+ }
+ diagForward("editor-drive-save-start", {
+ bytes: source.size,
+ isWebm,
+ transport: "base64",
+ });
+ const reader = new FileReader();
+ reader.onload = () => {
+ const base64 = String(reader.result).split(",")[1];
+ chrome.runtime
+ .sendMessage({
+ type: "save-to-drive",
+ base64,
+ title: contentState.title,
+ isWebm,
+ })
+ .then(handleDriveResponse)
+ .catch(handleDriveError);
+ };
+ reader.onerror = () => failWith("drive-generic");
+ reader.readAsDataURL(source);
+ };
+
+ // Safety net: every failure path inside saveToDrive calls failWith, but an
+ // unexpected throw would leave saveDrive stuck true and, now that the button
+ // is genuinely gated, permanently dead.
+ const runSaveToDrive = () => {
+ saveToDrive().catch((err) => {
+ console.error("[Drive] drive_save_unhandled:", err);
+ saveDriveInFlight.current = false;
+ setContentState((prevContentState) => ({
+ ...prevContentState,
+ saveDrive: false,
+ }));
+ });
};
const signOutDrive = () => {
@@ -251,12 +324,11 @@ const RightPanel = () => {
// the editor unable to load). Recover straight from the OPFS file.
await downloadResolvedRecording(s.title, (status) => {
if (status === "started") return;
- chrome.runtime.sendMessage({
- type: "show-toast",
- message:
- chrome.i18n.getMessage("rawRecordingModalTitle") +
+ showEditorToast(
+ contentStateRef.current,
+ chrome.i18n.getMessage("rawRecordingModalTitle") +
(status === "active" ? "" : ": no data"),
- });
+ );
});
return;
}
@@ -333,10 +405,10 @@ const RightPanel = () => {
"[Screenity] raw download fallback failed:",
fallbackErr,
);
- chrome.runtime.sendMessage({
- type: "show-toast",
- message: chrome.i18n.getMessage("rawRecordingModalTitle") + ": failed",
- });
+ showEditorToast(
+ contentStateRef.current,
+ chrome.i18n.getMessage("rawRecordingModalTitle") + ": failed",
+ );
}
}
},
@@ -804,7 +876,8 @@ const RightPanel = () => {
<div
role="button"
className={styles.button}
- onClick={saveToDrive}
+ onClick={runSaveToDrive}
+ aria-disabled={contentState.saveDrive}
disabled={contentState.saveDrive}
>
<div className={styles.buttonLeft}>
diff --git a/src/pages/EditorApp/recorderStorage/opfsChunkReader.js b/src/pages/EditorApp/recorderStorage/opfsChunkReader.js
index ec09202..29c45f3 100644
--- a/src/pages/EditorApp/recorderStorage/opfsChunkReader.js
+++ b/src/pages/EditorApp/recorderStorage/opfsChunkReader.js
@@ -101,6 +101,7 @@ export class OpfsChunkReader {
const SIZE_STABLE_MS = 3000;
const SIZE_STABLE_MIN_WAIT_MS = 1500;
let writerDead = false;
+ let writerEmpty = false;
while (true) {
const elapsed = Date.now() - startedAt;
// only time out once the size stops changing; a still-growing file
@@ -130,20 +131,26 @@ export class OpfsChunkReader {
} else if (
sizeStableSince > 0 &&
Date.now() - sizeStableSince >= SIZE_STABLE_MS &&
- Date.now() - startedAt >= SIZE_STABLE_MIN_WAIT_MS &&
- probe.size >= MIN_VALID_RECORDING_BYTES
+ Date.now() - startedAt >= SIZE_STABLE_MIN_WAIT_MS
) {
- writerDead = true;
+ // A file stuck below the minimum (usually 0 bytes, from a session
+ // that never captured) used to be excluded here, so it waited out
+ // the full 60s finalize timeout and then failed the size check
+ // anyway. Nothing is coming; fail fast with an accurate reason.
+ if (probe.size >= MIN_VALID_RECORDING_BYTES) writerDead = true;
+ else writerEmpty = true;
break;
}
} catch {}
}
- if (timedOut || writerDead) {
+ if (timedOut || writerDead || writerEmpty) {
try {
chrome.runtime
.sendMessage({
type: "diag-forward",
- event: writerDead
+ event: writerEmpty
+ ? "sandbox-opfs-empty-recording"
+ : writerDead
? "sandbox-opfs-writer-dead-detected"
: "sandbox-opfs-wait-finalize-timeout",
data: {
@@ -162,7 +169,9 @@ export class OpfsChunkReader {
const err = new Error(
`opfs-file-too-small: ${file.size} bytes < ${MIN_VALID_RECORDING_BYTES}`,
);
- err.code = "opfs-file-too-small";
+ // Distinct code so the editor can say "this recording is empty" rather
+ // than a generic load failure; retrying a 0-byte file is pointless.
+ err.code = file.size === 0 ? "opfs-empty-recording" : "opfs-file-too-small";
throw err;
}
const isWebm = /\.webm$/i.test(this._fileName || "");
diff --git a/src/pages/EditorApp/recorderStorage/stageBlobToOpfs.js b/src/pages/EditorApp/recorderStorage/stageBlobToOpfs.js
new file mode 100644
index 0000000..253a1ab
--- /dev/null
+++ b/src/pages/EditorApp/recorderStorage/stageBlobToOpfs.js
@@ -0,0 +1,41 @@
+// Stage a blob into OPFS so the background can read it by filename instead of
+// receiving it as base64 over sendMessage. readAsDataURL + sendMessage
+// materializes the whole file (~1.33x) and rejects past the message-size cap,
+// which silently broke Drive save on large recordings. createWritable streams
+// blob -> disk, so this stays memory-bounded at any size. Same OPFS transport
+// the offscreen remux already uses (ContentState.remuxViaOffscreenOpfs).
+
+const randomId = () =>
+ typeof crypto !== "undefined" && typeof crypto.randomUUID === "function"
+ ? crypto.randomUUID()
+ : `${Date.now()}-${Math.random().toString(36).slice(2)}`;
+
+// Writes `blob` to a uniquely named OPFS file and returns its name, or null if
+// OPFS is unavailable or the write fails (caller falls back to base64). ext is
+// without a dot, e.g. "mp4" / "webm".
+export const stageBlobToOpfs = async (blob, ext = "mp4") => {
+ if (!blob || typeof blob.size !== "number" || blob.size === 0) return null;
+ if (
+ typeof navigator === "undefined" ||
+ !navigator.storage ||
+ typeof navigator.storage.getDirectory !== "function"
+ ) {
+ return null;
+ }
+ const fileName = `drive-upload-${randomId()}.${ext}`;
+ try {
+ const dir = await navigator.storage.getDirectory();
+ const handle = await dir.getFileHandle(fileName, { create: true });
+ const writable = await handle.createWritable();
+ await writable.write(blob);
+ await writable.close();
+ return fileName;
+ } catch {
+ // Best-effort cleanup of a partial file, then let the caller fall back.
+ try {
+ const dir = await navigator.storage.getDirectory();
+ await dir.removeEntry(fileName).catch(() => {});
+ } catch {}
+ return null;
+ }
+};
diff --git a/src/pages/EditorApp/utils/editorToast.js b/src/pages/EditorApp/utils/editorToast.js
new file mode 100644
index 0000000..58d4587
--- /dev/null
+++ b/src/pages/EditorApp/utils/editorToast.js
@@ -0,0 +1,15 @@
+// The editor is an extension page. Background's "show-toast" handler relays to
+// the content script of the active tab (handlers.js), which is the recorded
+// page, never the editor, so a toast raised from here was never seen. Toast.jsx
+// publishes openToast on contentState; route to that instead.
+export const showEditorToast = (contentState, message, durationMs = 4000) => {
+ if (!message) return false;
+ const openToast = contentState?.openToast;
+ if (typeof openToast !== "function") return false;
+ try {
+ openToast(message, null, durationMs);
+ return true;
+ } catch {
+ return false;
+ }
+};
diff --git a/src/pages/utils/diagnosticLog.js b/src/pages/utils/diagnosticLog.js
index cb17afd..f4c853f 100644
--- a/src/pages/utils/diagnosticLog.js
+++ b/src/pages/utils/diagnosticLog.js
@@ -36,6 +36,12 @@ const ALWAYS_FLUSH = [
"drive-upload-fail",
"drive-save-fail",
"drive-auth-fail",
+ // Client-side save/download breadcrumbs (forwarded from the editor). The
+ // trigger + delivery steps were console-only, so a failed save left no trace.
+ "editor-drive-save-start",
+ "editor-drive-save-fail",
+ "editor-download-start",
+ "editor-download-fail",
"editor-load-ready",
// OPFS load + video element handoff: critical for diagnosing
// editor-stuck-at-90% reports. If any of these is the last event
@@ -54,6 +60,7 @@ const ALWAYS_FLUSH = [
"sandbox-video-load-error",
"sandbox-opfs-wait-finalize-timeout",
"sandbox-opfs-writer-dead-detected",
+ "sandbox-opfs-empty-recording",
"sandbox-opfs-materialize-deferred",
"session-deferred-end",
"editor-route-decision",
diff --git a/src/pages/utils/lifecycleLog.js b/src/pages/utils/lifecycleLog.js
index ff17727..57395f7 100644
--- a/src/pages/utils/lifecycleLog.js
+++ b/src/pages/utils/lifecycleLog.js
@@ -7,6 +7,27 @@
const STORAGE_KEY = "lifecycleLog";
const MAX_EVENTS = 500;
+// High-volume, low-value events: 73% of every buffer across the diag-zip
+// corpus, with 58% of zips already at the cap, so countdowns and errors were
+// being evicted for storage breadcrumbs. These go first on overflow. Anything
+// not listed stays protected, so new events are safe unless demoted here.
+const LOW_VALUE_EVENTS = new Set([
+ "set",
+ "recording-ui-allowed",
+ "recording-flag-observed",
+ "ui-tick",
+]);
+
+const evictOne = (list) => {
+ for (let i = 0; i < list.length; i += 1) {
+ if (LOW_VALUE_EVENTS.has(list[i]?.ev)) {
+ list.splice(i, 1);
+ return;
+ }
+ }
+ list.shift();
+};
+
// Serialized so back-to-back lifecycle() calls don't race the read-modify-write.
let _writeChain = Promise.resolve();
@@ -41,7 +62,7 @@ export const lifecycleEvent = async (src, ev, data = null) => {
? result[STORAGE_KEY]
: [];
current.push(entry);
- while (current.length > MAX_EVENTS) current.shift();
+ while (current.length > MAX_EVENTS) evictOne(current);
await chrome.storage.local.set({ [STORAGE_KEY]: current });
} catch {}
});
diff --git a/src/pages/utils/perfMarks.js b/src/pages/utils/perfMarks.js
index 43d613d..e637053 100644
--- a/src/pages/utils/perfMarks.js
+++ b/src/pages/utils/perfMarks.js
@@ -35,6 +35,24 @@ const buildDevImpl = () => {
const CTX = detectContext();
const STORAGE_KEY = `${STORAGE_KEY_BASE}.${CTX}`;
+
+ // Progress marks run continuously during a recording (~35% of every timeline
+ // in the diag-zip corpus), so head eviction drops the start-phase spans on
+ // any long recording. Evict these first instead. Suffix-matched so future
+ // progress marks are demoted automatically.
+ const isLowValueLabel = (label) =>
+ typeof label === "string" && label.endsWith(".progress");
+
+ const evictOne = (list) => {
+ for (let i = 0; i < list.length; i += 1) {
+ if (isLowValueLabel(list[i]?.label)) {
+ list.splice(i, 1);
+ return;
+ }
+ }
+ list.shift();
+ };
+
const localBuf = [];
let lastMarkPerfNow = null;
let pendingFlush = null;
@@ -61,7 +79,7 @@ const buildDevImpl = () => {
const res = await chrome.storage.local.get([STORAGE_KEY]);
const cur = Array.isArray(res?.[STORAGE_KEY]) ? res[STORAGE_KEY] : [];
for (const e of batch) cur.push(e);
- while (cur.length > MAX_EVENTS) cur.shift();
+ while (cur.length > MAX_EVENTS) evictOne(cur);
await chrome.storage.local.set({ [STORAGE_KEY]: cur });
} catch {}
})