Skip to content
AnswerWell geo Documentation

Research · 5 min read · Answerwell

Extension API Types, Permissions, and Release Channel Availability

How browser extension APIs declare return types, permissions such as systemLog, and Dev-channel-only surfaces in official reference docs.

This page summarizes material from Chrome for Developers extension API reference pages (Manifest V3 browser.* and legacy chrome.* namespaces). The cluster snippets are mostly type and availability fields; together they answer how to read those references when you need a string token, optional text, binary request bodies, a manifest permission, or an API that exists only on the Dev channel.

Extension API reference: what return types and parameters mean

Section titled “Extension API reference: what return types and parameters mean”

Official extension API pages list Parameters, Returns, Type, and Properties with simple JavaScript types. When you implement or type-check an extension, those lines tell you what to pass and what you get back—not a full tutorial.

Several core namespaces expose values documented as the type string. That usually means a Unicode text value: an identifier, URL, locale key, serialized payload, or other text the API documents on the same page.

For Manifest V3, examples in this cluster include:

Legacy Manifest V2 pages mirror the same pattern, for example chrome.extension (data — string), chrome.i18n, chrome.identity, and chrome.runtime.

Practical takeaway: if the reference only says string, open the method or property name on that page for semantics (what format, encoding, or empty-string behavior). Do not assume it is always human-readable text without reading the surrounding definition.

browser.publicSuffix documents Returns as:

string | undefined

The MV2 counterpart chrome.publicSuffix uses the same return type.

That pattern means success may yield a registrable domain suffix string, and some inputs or states yield no value. Extension code should treat undefined as a normal outcome, not only as an error path.

webRequest and mixed body types (string and ArrayBuffer)

Section titled “webRequest and mixed body types (string and ArrayBuffer)”

browser.webRequest lists an Enum that includes:

ArrayBuffer
string

chrome.webRequest shows the same enum values.

Handlers that read or modify request bodies must branch on whether the platform surfaced the body as text (string) or raw bytes (ArrayBuffer). Converting blindly between the two can corrupt non-UTF-8 or binary content.

Declared type Typical use in extensions
string Text bodies, headers, IDs, URLs
string | undefined Optional lookup results (e.g. public suffix)
ArrayBuffer Binary or opaque byte bodies in webRequest
string (workbox-build) Build tooling output path or manifest fragment (see workbox-build)

workbox-build Returns — string in the cluster snippet; treat it as structured build output defined on that module page, not as a generic runtime API.

Dev channel availability: processes and DNS APIs

Section titled “Dev channel availability: processes and DNS APIs”

Some extension APIs are not available on every Chrome channel. In this cluster, Availability is documented as:

Dev channel

for:

What that means for you: code that calls these APIs may work on Dev builds and fail silently or throw on Stable until the API ships more widely. Ship features behind runtime checks, document the channel requirement for testers, and avoid relying on these APIs in production extensions until the reference drops the Dev-only note or you confirm broader availability in current release notes.

browser.systemLog documents:

Permissions

systemLog

Properties

message
string

chrome.systemLog matches the same permission and property typing.

You must list systemLog in the extension manifest permissions (exact manifest key format is on the linked API pages). The message property is a string—plan for length limits and sensitive data policies your product imposes, since log surfaces can expose user or system information.

DevTools extension panels: string type fields

Section titled “DevTools extension panels: string type fields”

DevTools extensions use chrome.devtools.panels (MV3) and chrome.devtools.panels (MV2). Both list Type — string in the cluster fragments. Panel titles, IDs, or paths referenced on those pages are text tokens; pair the type column with the property name in the full schema on the same URL.

Section titled “Related web platform note: decorative SVGs (separate from extension APIs)”

The cluster also includes Accessibility coding guidelines with a pattern for icons that must not be announced to assistive technologies:

<!-- Inline Decorative SVG (hide from assistive technologies) -->
<svg aria-hidden="true" viewBox="0 0 24 24">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</svg>

That guidance applies to extension popups and options pages that render SVG chrome, not to the browser.* type listings above.

Common mistakes when reading extension API docs

Section titled “Common mistakes when reading extension API docs”
  1. Treating every string as interchangeable — runtime IDs, i18n message names, and identity tokens follow different rules on their respective pages.
  2. Ignoring undefined on publicSuffix — branching only on thrown errors misses valid “no suffix” outcomes.
  3. Assuming Dev-channel APIs work for all users — processes and dns require channel-aware development and QA.
  4. Using webRequest without handling ArrayBuffer — binary uploads and downloads need byte-aware code paths.
  5. Omitting systemLog from the manifest — the API will not be callable until the permission matches the reference.

ChromeDriver issue priority (when automating tests)

Section titled “ChromeDriver issue priority (when automating tests)”

If you validate extensions with ChromeDriver help workflows, issue triage uses:

P0 - will resolve before next release
P1 - consider resolving for next release
P2 - consider resolving for next quarter
P3 - low priority

Use that scale when filing blocking automation bugs versus cosmetic test flakes.

  1. Open each API your extension calls in the Manifest V3 extension reference (or MV2 reference) and confirm Returns, Type, and Availability match your implementation.
  2. In chrome://extensions, load an unpacked build and verify manifest permissions include entries such as systemLog where browser.systemLog requires them.
  3. For Dev-channel APIs (browser.processes, chrome.dns), confirm chrome://version shows Dev before relying on those calls in CI.
  4. Exercise webRequest listeners against requests with both text and binary bodies and assert your handler supports string and ArrayBuffer as in browser.webRequest.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match the linked Chrome documentation, email yimasynthetic@gmail.com with the page URL and the exact statement you think is wrong or unclear.