Skip to content

Lesson 9 of 9 · 22m

Release Engineering and Operations for Extensions

Ship extensions like software: reproducible builds, version discipline, staged rollout, artifact inspection, telemetry boundaries, and incident response.

An extension release is not a zip file somebody exported from a laptop. It is a signed artifact distributed automatically to users who cannot easily roll it back. The operations bar is closer to mobile applications than websites: you need reproducible builds, controlled rollout, and a plan for the day a bad version reaches tens of thousands of browsers.

Make the artifact boring and reproducible

node --version
npm ci
npm run build
zip -r dist/link-audit-1.4.0.zip dist -x '*/.DS_Store'
sha256sum dist/link-audit-1.4.0.zip

Better: put those steps in CI, fail if the working tree is dirty, and archive both the uploaded zip and its hash. Inspect the final manifest inside the zip before upload. Permissions creep often enters through a shared config template rather than an intentional commit.

Source maps deserve a decision. They are essential for debugging but expose implementation detail; generating them privately and uploading them only to your error system is usually the right split.

Version like a distribution platform

Semantic-ish versioning helps humans, but stores primarily need monotonically increasing versions. Do not recycle version numbers after a rejection. Keep release notes truthful enough that support can infer when behavior changed. Browser rollout can take hours or days; a version existing in CI does not mean every user has it.

{
  "version": "1.4.0",
  "version_name": "1.4.0 (scan engine v2)"
}

version_name can carry human context in browsers that display it, but do not depend on it operationally. Feature flags or migration metadata inside storage are more reliable compatibility signals.

Staged rollout beats prayer

Use store rollout controls where available, internal enterprise channels, or separate listing tracks. Watch error rate, uninstall spikes, review velocity, and support tags after release. Telemetry must obey the privacy posture from the previous lesson: count events and versions, avoid page content, and make collection explainable.

A useful minimal release dashboard tracks:

active installs by extension version
fatal background errors per 1k sessions
scan completion rate
permission denial rate
uninstalls within 24h of update

Those five numbers catch most catastrophic releases without building a surveillance system.

Incident response is part of the extension

Know how to halt rollout, submit a fixed build, revoke compromised tokens, rotate backend keys, and force stale clients to disable a dangerous feature. If your backend can remotely change behavior, require authentication, integrity checks, and narrow interpretation; otherwise the update channel becomes remote code execution with nicer branding.

Cross-browser work is compatibility, not copy-paste

chrome.* callback APIs, promise support, sidebar APIs, offscreen documents, and declarativeNetRequest behavior differ between Chromium and Firefox. Use a thin compatibility layer or webextension-polyfill, test real browser builds, and never let the abstraction hide permission differences that users can see.

Field notes

  • Upload the exact artifact tested in a clean browser profile, not a rebuilt one with "the same code."
  • Keep rollback release notes ready even if the store does not support true rollback.
  • Beta users need a separate update channel; do not test broad-permission changes on production users silently.
  • The service worker, storage migration, and store rollout are one system — test upgrades from the previous public version, not just fresh installs.

Was this lesson helpful?

Sign in to rate