'NS_ERROR_NOT_AVAILABLE [nsIChannel.contentType]' error from the JSON view sniffer for every failed page load
Categories
(DevTools :: JSON Viewer, defect)
Tracking
(firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: marco, Assigned: marco)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
Content sniffers are also called for top level loads that failed before a response was received, e.g. on connection or DNS errors, or when the load is cancelled. Reading the channel's content type then throws, and the JSON view sniffer doesn't handle it:
NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIChannel.contentType] Sniffer.sys.mjs
User impact: page loads aren't affected, since a failing sniffer is skipped, but an error is logged in the browser console for every failed top level load.
On CI it was logged 44,322 times in 11,572 jobs, from 136 tests, out of the 31,690 mozilla-central mochitest jobs of 2026-10-15 in the errors dashboard (https://tests.firefox.dev/errors.html?kind=mochitest#date=2026-10-15). These are mostly tests that open external links, which fail in CI, or close tabs while they load.
| Assignee | ||
Comment 1•1 month ago
|
||
Content sniffers are also called for top level loads that failed before a
response was received, where reading the content type throws, which logged an
error in the browser console for every such load.
| Assignee | ||
Updated•1 month ago
|
Updated•1 month ago
|
Comment 3•1 month ago
|
||
| bugherder | ||
Updated•27 days ago
|
Description
•