Repository Structure
The Bloom repository does not contain the full Firefox source tree. It contains only the patches, build configs, and scripts needed to produce a build from a stock Firefox ESR checkout.
├── patches/ # Bloom-specific patches
│ └── freebsd/ # FreeBSD port patches
├── scripts/ # Build and prep scripts
│ ├── prepare.sh # Clone ESR + apply patches
│ └── refresh.sh # Regenerate patches from source
├── branding/ # Bloom brand assets
├── certs/ # Certificate authority files
├── mozconfig.* # Platform build configs
└── src/ # (generated) Firefox ESR source
Development Workflow
Set up your environment
Standard Mozilla build environment.
On FreeBSD, deps via pkg.
On Windows, VS2022 + Clang/LLVM + MozillaBuild.
Clone and prepare
Run ./scripts/prepare.sh <platform>
to clone Firefox ESR and apply all Bloom patches. The resulting
src/ directory is ready to build.
Build
./mach build inside src/.
Incremental builds: ~3 min. Full builds: 40–60 min.
Make changes
Edit files in src/, rebuild, test.
When done, run ./scripts/refresh.sh
to regenerate patches from your working tree.
Key Technical Decisions
DANE uses the OS resolver, not TRR.
TLSA lookups go through the operating system's DNS resolver
(res_query on Unix,
DnsQuery_A on Windows).
DNSSEC validation is the resolver's responsibility, not the browser's.
Synchronous on the cert thread pool. TLSA lookups happen on Mozilla's certificate verification threads — the same threads that handle OCSP. Blocking DNS is safe because the network thread is never blocked.
Patches, not a fork. Bloom is intentionally maintained as a patch queue. This keeps the delta small, auditable, and easy to rebase against new ESR releases.
Resources