Commit Graph

8 Commits

Author SHA1 Message Date
Christian 759ef7bf85 Bump to 2.1.1
2.1.0 is already published on the Chrome Web Store, so the
innerHTML-free build needs a new version. Firefox moves to 2.1.1 too
so both stores stay in sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 05:04:29 -04:00
Christian 982a423d7d Build dashboard DOM without innerHTML
AMO flags every innerHTML assignment as a possible rejection reason.
Cards, the decrypt dialog, the extension list, toasts and button
spinners are now built with createElement and text nodes through a
small h() helper. The fixed SVG icon snippets are parsed with DOMParser
as SVG. Bundle and extension names can no longer be read as HTML, so
escapeHtml is gone. Chrome also gets the textContent toast the Firefox
build already had.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 05:01:46 -04:00
Christian 429b0f20fc Release 2.1.0: bump versions and keep Firefox partitioned imports working
Bump Chrome (2.0.0) and Firefox (2.0.1) to 2.1.0 for the store uploads,
and update the bundle generator string to match.

Firefox's cookies schema in 115, 128 and 140 ESR has no
partitionKey.hasCrossSiteAncestor and rejects unknown properties, so
passing it made Firefox skip every partitioned cookie imported from a
Chrome bundle. Only send it to Chrome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 04:51:09 -04:00
souta 7fb8ef7509 audit: fix cookie expiry/partition fidelity and profile-safety gaps
- Cookie stream: moz_cookies.expiry is milliseconds, but CDP expects
  seconds. The old code imported 52 already-expired cookies in the real
  profile and gave every remaining cookie a ~55,000-year expiry; convert
  units before comparing/sending, and skip session cookies that cannot
  survive the temporary Chromium session.
- Dashboard cookies: request partitionKey:{} for Chrome as well as Firefox
  (Chrome also omits CHIPS cookies otherwise), keep hasCrossSiteAncestor,
  omit the "unspecified" SameSite attribute for older targets, and never
  fall back to an arbitrary cookie store when importing.
- Profile safety: resolve symlinks before cp -a (a symlinked --firefox-profile
  was copied as a symlink and Firefox then opened the original profile),
  detect Chromium's dangling SingletonLock symlink with lstat, check Firefox's
  .parentlock/open descriptors via /proc instead of an optional fuser, refuse
  Firefox-looking Chromium targets and root/home, keep the OS password store
  for existing Chromium profiles, and clean the sensitive profile clone on
  SIGINT/SIGTERM.
- Exporter: never write through a dangling output symlink (O_EXCL|O_NOFOLLOW),
  refuse to export while Firefox holds the profile lock, and canonicalise
  origins so one odd origin cannot make the importer reject the whole bundle.
- Revert formatting-only manifest changes; align tools/README with the code
  (IndexedDB is supported, Node.js 22.12+, lock/symlink/password-store and
  key-generator limitations) and add regression tests for all of the above.
2026-10-23 20:54:18 +09:00
souta 1e5ba9c91c feat: encrypted offline all-origin Firefox localStorage migration 2026-10-23 16:50:44 +09:00
souta 7dfc3d68e3 test: verify profile storage import in isolated Chrome 156 2026-10-23 15:10:54 +09:00
souta b8cd19343f feat: migrate whole-profile Firefox localStorage and improve cookie fidelity 2026-10-23 14:49:09 +09:00
Christian 39209f9083 Add files via upload 2026-06-08 20:17:19 -04:00