On this page
A browser extension update URL can return HTTP 200 and still fail to deliver an update. The response might be an HTML login page, a malformed manifest, or a valid manifest that identifies the wrong extension or package version.
This guide focuses on a self-hosted Firefox extension. It separates the HTTP check from the update-manifest check, then walks through a non-production update test. Chrome and other browsers have different update mechanisms; do not assume this Firefox example applies to them.
Verification note: Current Firefox documentation and the examples below were not checked or executed for this article. Before publishing, consult Mozilla’s current documentation for Firefox extension update manifests, signing, compatibility, and distribution requirements. Confirm that the settings apply to your Firefox release and distribution method.
Key Takeaways
- An update URL points to metadata describing available updates, not necessarily to the extension package itself.
- Check the URL over HTTPS, then separately validate the response’s JSON structure, extension ID, version, compatibility information, and package link.
- A successful HTTP response does not prove that Firefox can use the update manifest.
- Test a signed, non-production build with its own extension ID and update endpoint before releasing to users.
- Verify current Firefox requirements, including signing and compatibility rules, against Mozilla’s official documentation.
How the Firefox update URL fits together
For a self-hosted Firefox extension, the extension’s manifest can specify an update URL and an extension ID under browser_specific_settings.gecko. The update URL identifies a JSON document. That document associates the extension ID with one or more update entries, each describing a version and a package download URL.
The following is an illustrative fragment, not a complete extension manifest:
{
"version": "1.0.0",
"browser_specific_settings": {
"gecko": {
"id": "release-test@example.com",
"update_url": "https://updates.example.com/firefox/updates.json"
}
}
}
An illustrative response at that URL is:
{
"addons": {
"release-test@example.com": {
"updates": [
{
"version": "1.1.0",
"update_link": "https://updates.example.com/firefox/release-test-1.1.0.xpi"
}
]
}
}
}
The ID in the response must identify the installed extension. The package should contain the intended ID and version, and the advertised version must be newer than the installed version for an update to be offered. These example domains are placeholders; replace them with endpoints you control.
The example deliberately omits compatibility metadata. Check Mozilla’s current documentation for its supported fields, version-comparison rules, signing requirements, and any restrictions that apply to your distribution channel. Store-managed updates and self-hosted updates may have different requirements.
Advertisement
Check whether the manifest URL is reachable
From a machine with network access to your deployment, make a GET request to the exact URL embedded in the installed build. This example uses curl; substitute your actual HTTPS URL:
curl --silent --show-error --max-time 20 \
--proto '=https' \
--dump-header update-headers.txt \
--output update-body.txt \
--write-out 'HTTP %{http_code}\nContent-Type %{content_type}\n' \
'https://updates.example.com/firefox/updates.json'
Inspect update-headers.txt and update-body.txt as well as the printed status. This request does not follow redirects. curl can complete successfully even when the server returns an HTTP error, so read the status rather than relying only on the command’s exit code.
Investigate these results:
- 200: Inspect the body; it could still be a login page, an error document, or stale JSON.
- 301, 302, or another redirect: Inspect the
Locationheader and test the destination separately. Confirm the entire chain stays on HTTPS and verify whether your target Firefox release supports the redirects used. A successful redirected request incurlalone does not establish browser compatibility. - 403 or 404: Check the deployment path, file and hosting permissions, CDN rules, and whether the URL is exposed to the intended clients.
- TLS or connection error: Check the certificate, hostname, DNS, firewall, proxy, and server availability. Do not disable certificate verification as a release fix.
If you choose to inspect redirects with curl, restrict the redirect protocols and limit the chain:
curl --silent --show-error --max-time 20 \
--proto '=https' --proto-redir '=https' \
--location --max-redirs 5 \
--output /dev/null --write-out 'HTTP %{http_code}\n' \
'https://updates.example.com/firefox/updates.json'
A server may behave differently depending on the client’s network, cookies, or authentication. Make sure the updater can access the resource without an interactive login or consent page. Test through the same proxy or network controls used by the intended clients where practical.
Validate the update manifest separately
First, check that the downloaded body is syntactically valid JSON. For example, with Python installed:
python3 -m json.tool update-body.txt >/dev/null
This checks JSON syntax only. It does not verify the Firefox update format, extension ID, version, compatibility, or package. After parsing, inspect the document against Mozilla’s current update-manifest documentation:
- Structure and ID: Confirm that
addonscontains the exact ID of the installed test extension and that its update entries use the documented fields. - Version: Confirm that the update entry advertises the version in the downloadable package and that Firefox considers it newer than the installed build. Avoid assuming that every version-string convention sorts the way you expect.
- Browser and platform compatibility: Check the extension’s compatibility settings and any applicable update metadata against the target Firefox versions and platforms. Use only fields and values documented for your distribution method; do not assume an update-manifest field can express every operating-system or architecture constraint.
- Package URL: Request the
update_linkseparately over HTTPS. Verify that it serves the intended XPI rather than an HTML page or an outdated file. Confirm its signing and distribution eligibility using current Mozilla guidance. - Response headers and caching: Check the content type and cache headers. A JSON content type helps clients and diagnostics identify the response, but neither it nor a 200 status proves the schema is correct. If a CDN caches metadata, ensure it serves the intended release and that package files remain available for clients that have cached an older manifest.
Use the actual downloaded files for these checks. A correct local manifest is not proof that the server or CDN is serving the same content.
Advertisement
Test an update before publishing
Use a separate test extension ID and endpoint so the experiment cannot advertise a test package to production users. Follow Mozilla’s current instructions for signing and installing the non-production build in the Firefox release you are testing.
- Build and install a test extension with the test ID, an initial version, and the test update URL embedded in its manifest.
- Build the next version with the same test ID and a higher version. Sign or distribute it as required for that Firefox environment.
- Publish the XPI first, then publish the update manifest pointing to it. Check both public responses after deployment.
- Use the supported update-check procedure for your Firefox version and distribution method. Confirm that the installed extension actually changes to the intended version and still works.
- If no update appears, inspect browser diagnostics and server or CDN logs. Compare the URL requested by the installed build with the deployed URL, and look for access errors, stale responses, ID mismatches, incompatible versions, and package or signature failures.
Also test a failure path, such as a missing package in an isolated test environment, and confirm that your monitoring or release checks reveal it. Keep the test endpoint available long enough to repeat the update from a clean installation.
Common Mistakes
- Checking only the status code. HTTP 200 says nothing about whether the body is a usable update manifest.
- Testing a different URL from the one in the installed build. A corrected source file does not change an already-installed extension’s update URL.
- Publishing metadata before the package is available. Clients can discover an update whose XPI cannot yet be downloaded.
- Assuming file access in a browser tab proves updater access. A tab may have cookies or network permissions that the updater does not use.
- Reusing the production ID or update endpoint for experiments. A test release can then be visible to real installations.
- Treating an HTTPS redirect or JSON parse as full validation. Both are useful checks, but neither establishes Firefox compatibility or package eligibility.
Best Practices
- Prefer a stable HTTPS manifest URL under a domain you control, and protect deployment access to both the manifest and packages.
- Record the extension ID, installed version, advertised version, package URL, and deployment revision in the release checklist.
- Publish immutable, version-specific package files where practical; account for cached metadata before removing older packages.
- Automate checks for HTTP response, JSON parsing, expected ID and version, and package availability. Keep a real browser update test in the release process.
- Recheck Mozilla’s current requirements before each release, especially after changing Firefox versions, signing workflows, or hosting infrastructure.
Conclusion
Troubleshoot a browser extension update URL in layers: reach the exact HTTPS endpoint, inspect and validate its metadata, verify the linked package, and prove the update with an isolated Firefox installation. Each layer catches failures that the others cannot.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.