Commit Graph

51 Commits

Author SHA1 Message Date
chris d1b14f8486 Add Contributor Covenant Code of Conduct 2026-11-02 17:13:21 -05:00
Christian 0ce7fcca72 Add a release workflow that publishes zips on tag push
Pushing a v* tag builds portage-chrome-<version>.zip and
portage-firefox-<version>.zip with git archive (manifest.json at the
root, same as the store uploads) and publishes a GitHub release using
the tag's message as notes. It fails if either manifest's version
doesn't match the tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v2.1.1
2026-10-27 06:25:15 -04:00
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 4afa7967e2 Shorten Firefox description to fit AMO's 250-character limit
addons-linter rejects the 269-character description (JSON_INVALID),
which blocks the AMO upload. Same wording, minus the Firefox-to-Chrome
example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 04:52:56 -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
chris ef6b6d70af Merge pull request #1 from souta-lab/feat/profile-storage-migration
feat: Firefox → Chromium offline storage & cookie migration (Brave field-tested)
2026-10-24 04:47:19 -04:00
souta 4f630de25f audit: recover interrupted IndexedDB restores and harden codec edge cases
- Treat an existing destination database with no object stores (when the
  source has stores) as an interrupted upgrade: delete and retry instead of
  skipping it forever. Verified by killing Chrome mid-restore; the next run
  restored all 49,990 synthetic records.
- Keep snapshot error indices aligned with the actual database index.
- Look up Error constructors through a Map: a site-controlled Error.name of
  "constructor"/"__proto__"/"toString" could corrupt the value or abort the DB.
- Brand-check Number/String/Boolean wrappers instead of toString sniffing so
  Symbol.toStringTag cannot change a plain object's type; accept ordinary
  class instances as plain objects (prototype dropped, matching structured
  clone) while still rejecting platform-object tags.
- Preserve AggregateError.errors and ImageData.colorSpace.
- Document the empty-container retry, the 120 s per-origin timeout and the
  additional clone types.
2026-10-23 21:24:55 +09:00
souta 487282b5bd audit: make IndexedDB restore atomic and widen supported clone values
- Write schema and records in one versionchange transaction so an interrupted
  restore cannot leave a schema-only database that later runs skip forever.
  Existing-database skips no longer make a clean rerun exit non-zero.
- Encode binary payloads as base64 (much smaller and faster than number
  arrays), keep the 8 MiB per-value cap reachable inside the 32 MiB encoded
  budget, and check the encoded budget incrementally while snapshotting.
- Add Float16Array, Error subclasses (name/message/stack/cause),
  Number/String/Boolean wrappers and ImageData. Typed arrays carry a byte-order
  marker so a cross-endian migration cannot silently swap numeric values.
- Add 120 s per-origin snapshot/restore timeouts and document the 64 MiB origin
  cap, atomic restore, and the current limits.
- Extend the Firefox/Chrome IndexedDB E2E with these values, an aborted-restore
  atomicity check and the rerun semantics.
2026-10-23 21:15:53 +09:00
souta 21b0ca227b audit: close remaining source-isolation, memory and lock gaps
- Copy the Firefox profile with reflinks but refuse data symlinks inside the
  clone, and reject source/destination path containment, so the original
  profile cannot be written through an internal symlink or a nested target.
- Cap ArrayBuffer/typed-array values at 8 MiB before they expand into number
  arrays and enforce the 32 MiB encoded budget incrementally during snapshot.
- Resolve symlinks before the root/home target guard (a symlink to $HOME no
  longer bypasses it).
- Detect legacy `lock` PID symlinks in addition to .parentlock in both the
  Node and Python tools.
- Canonicalise the IndexedDB origin inventory with the same normalisation as
  the LocalStorage exporter instead of aborting on one odd origin.
- Kill the browser we started and drop its SingletonLock on SIGINT/SIGTERM in
  the LocalStorage and cookie importers; cap passphrase stdin size.
- Document source isolation, interrupted-import state, and the fact that the
  temporary IDB clone contains the whole profile (cookies/passwords/history).
2026-10-23 21:06:36 +09:00
souta 85195bad59 ci: run unit tests on every push so fork branches get checks 2026-10-23 20:54:45 +09: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 1b617cef84 feat: offline Firefox cookie migration; privacy-safe real-profile diagnostics 2026-10-23 19:00:39 +09:00
souta 874de763a2 fix: support SQLite TEXT values in Firefox LSNG export 2026-10-23 17:50:46 +09:00
souta d6bfa2a28f test: harden IndexedDB migration and verify Brave Stable compatibility 2026-10-23 17:33:21 +09:00
souta 3e59605794 feat: migrate Firefox IndexedDB through offline browser-native bridge 2026-10-23 17:15:33 +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
chris f446b53f46 Update README.md 2026-06-27 23:11:17 -04:00
chris 88221a8221 Update manifest.json 2026-06-24 22:55:02 -04:00
chris b2e46a1b09 Update README.md 2026-06-24 22:53:44 -04:00
chris 97e0c1cee8 Update README.md 2026-06-24 22:53:28 -04:00
chris 7bda2dac68 Update README.md 2026-06-24 22:53:07 -04:00
chris 4102eabfa8 Update manifest.json 2026-06-24 22:01:15 -04:00
chris 6870904dc2 Update dashboard.js - unsafe assignment fix v2 2026-06-24 22:01:01 -04:00
chris e4e90db5c5 Repaired unsafe assignment for firefox 2026-06-24 21:56:35 -04:00
Christian 07ca529e37 Update README.md 2026-06-09 03:04:18 -04:00
Christian c251bb3236 Update README with GitHub site link
Added a link to the GitHub site in the README.
2026-06-08 21:08:13 -04:00
Christian 7f5a3eb07a Create FUNDING.yml 2026-06-08 20:54:58 -04:00
Christian fdcc7776fa Update README.md 2026-06-08 20:54:01 -04:00
Christian 9c82abe695 Update README.md 2026-06-08 20:47:56 -04:00
Christian 3a2e5fa4fc Update README.md 2026-06-08 20:47:30 -04:00
Christian 26eefd689a Remove 'Layout' section from README
Removed the 'Layout' section from the README.
Release
2026-06-08 20:20:08 -04:00
Christian 08fccf5d4d Update README.md 2026-06-08 20:19:46 -04:00
Christian 13d15e2014 Update README.md 2026-06-08 20:19:37 -04:00
Christian 12623f53f0 Add files via upload 2026-06-08 20:17:33 -04:00
Christian 39209f9083 Add files via upload 2026-06-08 20:17:19 -04:00
Christian 876565885a Update README.md 2026-06-08 20:16:30 -04:00
Christian f5a3d385fa Update README to reflect folder structure changes
Removed redundant entries and clarified folder structure.
2026-06-08 20:15:56 -04:00
Christian 87ef38749f Add files via upload 2026-06-08 20:14:31 -04:00
Christian 66a3ff860a Delete icons directory 2026-06-08 19:12:58 -04:00
Christian e6f67c7ca3 Delete README.md 2026-06-08 19:12:50 -04:00
Christian 8648efc56b Delete manifest.json 2026-06-08 19:12:43 -04:00
Christian 396fba21df Delete popup.css 2026-06-08 19:12:37 -04:00
Christian 2eef016de6 Delete popup.html 2026-06-08 19:12:32 -04:00
Christian a81130f800 Delete popup.js 2026-06-08 19:12:25 -04:00
Christian c81d1348fa Add files via upload 2026-05-19 18:53:31 -04:00
Christian 4975ca6c48 Update README.md 2026-05-19 18:40:55 -04:00
Christian 1c01e33400 Add files via upload 2026-05-19 18:40:27 -04:00