Skip to content

About

invisible firefox: Firefox patched at the C++ source level, the browser fingerprint is set in the engine, not injected into the page. Builds the binaries behind invisible playwright.

Topics

Resources

Stars

56 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

docs

Read this first; open a decision only when your change touches it.

Files

File What it holds
STRUCTURE.md Where each kind of change goes: layers, hook forms, HOOKS.json, budgets, who writes what
UPDATE.md Moving the series to a new Mozilla tag
NEXT.md Firefox 160.0.1 measured against the series
decisions/ One file per rule, and each rule and each Don't ends with its question, answered with a proof; listed below

Decisions

Id Rule
series-01 The series is generated from the source branch by export and proven by verify; only the hand-edited files are changed here directly; a closed directory is pinned by CLOSED.json, and the tag, the series and the closed directories at their pins give the tree.
series-02 Every folder says in FOLDER.json whether it is a product or a defect of Mozilla's (a backport is derived from BACKPORT.json), check fails any other state, port stops when a fixed_in is in the new tag, and every port carries ports/range-diff.txt, regenerated in CI from a partial clone of the two tags.
product-01 No value a page can read comes from the host: it is declared by the core or computed by Firefox's own code, and a host dependency is removed where Firefox reads the host.
product-02 The same seed gives the same bytes on every machine (Windows and Linux x86_64): text, canvas, WebGL, audio, media.
product-03 The reference is retail Firefox on Windows; Linux converges to Windows, never the reverse.
hook-01 Logic lives in our own Stealth* files; a Mozilla file carries only hooks, and a hook comes after a pref, a declared value or a build option.
hook-02 A hook is one line of a fixed form that calls our function, with STEALTH-HOOK(<folder>) on the line; Mozilla's lines stay as Mozilla wrote them; no hook has the form unknown (C21): a line takes a form or is excepted with its complete exception row.
hook-03 Per-file budgets and the hook debt only go down against origin/main; a new Mozilla file gets at most 5 hook lines and 5 removed.
hook-04 Every hook names in HOOKS.json a behaviour test with a negative control.
hook-05 Our constants never take a value in a Mozilla numbered space (flag bits, enums, IDL constants).
backport-01 Code Mozilla does not have yet comes as the upstream code or Mozilla commit, byte for byte, with BACKPORT.json, and leaves when the tag contains it.
port-01 Moving to a new tag is drift --to and port --to: one three-way merge per folder, every conflict listed in one run.
port-02 The series moves only to an official stable release tag and is the retail of that version; values pinned to the old retail are measured again.
port-03 Every point where the tree creates a network request is in tools/birth-ledger.json with a verdict reviewed by hand.
port-04 A backport of third-party code is an ordered list of upstream and our commits stored in the series, replayed on the revision the tag vendors with the checksums regenerated by a tool; check proves the folder equals the replay.
port-06 A hook only adds: a rewrite of Mozilla text outside the rewriting forms is a declared exception with one of four reasons (expression, declaration, macro, skip), and one that fits a form or threads a C++ parameter is refused.
port-07 A new or moved hook sits at the anchor with the least churn over the last 8 releases among the places its form allows (tools/churn.py); a hook in the top churn band (BAND_MIN_CHURN) names in HOOKS.json why no quieter anchor serves, or check fails (C18).
port-08 A defect stock Firefox has too gets no patch of ours and no backport: the port to the release with Mozilla's fix brings it; only a real cost (memory, CPU, a broken product) that Mozilla has not fixed yet gets a defect folder.
prefs-01 Every spoof goes through a zoom.stealth.* / stealthfox.* pref; the names are the contract with the core and are never renamed.
stillborn-01 stillborn/ turns off at birth only what would change the installed browser; the requests a real Firefox makes stay.
repo-01 Commits use the noreply identity, enforced by noreply-identity.yml.
repo-02 No name of a studied detection system, fingerprinting service, test site or competing browser anywhere in the repository; describe the check instead.
repo-04 Every failure is built by fail(where, what, fix, rule) and printed FAIL <where>: <what>. Fix: <how>. Rule: docs/decisions/<id>.md; no bare assert, no message without a fix, no text cut short.
repo-05 engine.py with no argument shows the state and the next command; every stop prints next: <command>; a hand step that a command can do becomes the command (port writes UPSTREAM.json).
repo-06 A derived fact (inventory counts, a new file's budget, MANIFEST hashes, own files, gtest suites, the ledger tag) is written by a tool; check refuses a hand-written one and names the command.
repo-07 Each fact is written once: hook rules in the RULES table (documents generated from it), the Mozilla tag in UPSTREAM.json, one budget file per kind of ceiling.
repo-08 Every file is read by a workflow, script, test or the build (or is a human entry file); nothing points outside the repository; every printed code is explained in it.
ci-01 Engine builds run only on main or a latitude/<name> branch born from main; a release runs only from main.
ci-02 A reference to something that changes (a release, a run, a core or wrapper version, another repository's commit) is resolved at run time; an explicit input wins.
ci-05 The engine, the core and the wrapper of a run are one set that pins itself: the core ref is derived from the wrapper's pin, and a given one that builds another version is refused before any build.
ci-06 An artifact of another run is downloaded by its exact name; a pattern only within a run, with the count found checked against the count expected.
ci-07 Every check that guards main runs, with the same code, on the pull request and on every latitude/* candidate (checks.yml, called by both rounds): nothing is first run on main.
ci-09 A test of the engine runs against a binary built from the same series commit; a run that takes another binary takes that binary's tests.
ci-10 The key that reads the private repository of a closed directory appears only in the download step of a job on a GitHub-hosted runner, never on the build node.
test-01 A Python test of the series has no sleep with a number, no threshold on an elapsed time and no literal timeout handed to a wait; the cases that exist are rows of tools/no-seconds-exceptions.json, which only shrinks against origin/main.
test-02 A Python test file of the series that goes to a real site holds only real attempts, each marked e2e, and a check that needs nothing outside the machine lives in a file of its own; the cases that exist are rows of tools/real-sites-exceptions.json, which only shrinks against origin/main.

About

invisible firefox: Firefox patched at the C++ source level, the browser fingerprint is set in the engine, not injected into the page. Builds the binaries behind invisible playwright.

Topics

Resources

Stars

56 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages