← Chrome 159 reference · All APIs
v159 · network · covered on mdn
WebTransport keying material export
Adds WebTransport., returning a Promise<Uint8Array> of cryptographic keying material derived from the session’s underlying TLS exporter for channel binding and application-level authentication without exposing TLS traffic keys.
this feature is documented on MDN
MDN’s dedicated exportKeyingMaterial() page (verified HTTP 200 on 2026-11-24) already documents the exact Chrome 159 3-argument signature exportKeyingMaterial(label, context, outputLength), parameter byte limits (0–255 bytes for label/context, 1–4096+ bytes for outputLength), RangeError and InvalidStateError rejections, TLS exporter channel-binding theory, a worked SubtleCrypto HMAC-SHA256 example, Specifications, and Browser compatibility. gendn does not duplicate that reference here.
Why gendn doesn’t duplicate MDN: this site exists for Chrome features without a canonical MDN page yet. When MDN already documents an API completely, gendn publishes an honest pointer plus the Chrome 159 protocol serialization, lifecycle, and cross-browser signature details MDN does not cover.
Chrome 159 specifics & cross-browser signature differences
- Exact TLS exporter label & context wire format: in Chromium’s
DedicatedWebTransportHttp3Client::ExportKeyingMaterial()andSerializeWebTransportExporterContext(), Chrome invokes the QUIC crypto stream’s TLS exporter with the fixed label"EXPORTER-WebTransport"and an exporter context encoded as[uint64 session_id (HTTP/3 CONNECT stream ID)][uint8 label_length][label][uint8 context_length][context](matching draft-ietf-webtrans-http3 §4.8). Including the CONNECT stream ID ensures that separate WebTransport sessions sharing one HTTP/3 connection derive distinct keying material even with identical application labels and contexts. Servers must construct the exact same exporter label, context framing, and output length — a mismatch produces different bytes with no protocol error. - Enforced bounds: Chromium enforces
0 ≤ label.byteLength ≤ 255,0 ≤ context.byteLength ≤ 255, and1 ≤ outputLength ≤ 4096in both Blink (web_transport.cc) and the network service, rejecting out-of-range inputs withRangeErrorand missing required arguments withTypeError. - Calling before
ready: calls made while the session is still connecting are queued in Blink (PendingExportKeyingMaterialRequest) and dispatched once the session connects, or rejected withInvalidStateErrorif the session closes or fails before export completes (asserted by WPTexport-keying-material.https.any.js). - Distinguishing 3-arg vs legacy 2-arg signatures: checking
"exportKeyingMaterial" in WebTransport.prototypealone matches Firefox 155–159’s earlier 2-argument form (which omittedoutputLength). CheckWebTransport.prototype.exportKeyingMaterial.length === 3to detect the standardized 3-argument signature.
// Distinguish the standardized 3-argument API (Chrome 159+, Firefox 160+, WebKit PR #69982)
// from Firefox 155–159's earlier 2-argument signature.
const supportsStandardExporter =
typeof WebTransport !== "undefined" &&
typeof WebTransport.prototype.exportKeyingMaterial === "function" &&
WebTransport.prototype.exportKeyingMaterial.length === 3;
if (supportsStandardExporter) {
const enc = new TextEncoder();
const wt = new WebTransport("https://example.com:4433/wt");
// Safe to invoke while connecting; queues until the session connects (or rejects if closed).
const keyBytes = await wt.exportKeyingMaterial(
enc.encode("app.example/channel-binding-v1"),
enc.encode("session-auth"),
32, // 1..4096 bytes in Chromium
);
console.log(`Derived ${keyBytes.byteLength} bytes of session-bound keying material`);
}
Source: Chromium dedicated_web_transport_http3_client.cc; Blink web_transport.cc; ChromeStatus interop notes (4860330806214656); WPT export-keying-material.https.any.js.
Browser compatibility
| Browser | exportKeyingMaterial() | 3-arg outputLength | Evidence / notes |
|---|---|---|---|
| Chrome (desktop, Android, WebView) | 159 | 159 (BCD lags as false) | Ships the standardized 3-argument signature (1–4096 bytes) per ChromeStatus 4860330806214656 and Blink web_transport.idl. |
| Edge | 159 (mirror) | 159 (BCD mirrors Chrome) | Mirrors Chromium’s WebTransportExportKeyingMaterial stable flag. |
| Firefox | 155 (desktop) / No (Android) | 160 (desktop) / No (Android) | BCD records Firefox 155 for the earlier 2-arg form (context optional) and Firefox 160 for outputLength; tracked in Mozilla Bug 2079306. |
| Safari | 27.3 (BCD) | In dev / BCD false | WebKit PR #69982 landed the 3-argument API; BCD currently lists Safari 27.3 for the method and false for outputLength_parameter. |
api/WebTransport.json; ChromeStatus API record; webstatus.dev webtransport.
quick reference
| IDL | [NewObject] Promise<Uint8Array> exportKeyingMaterial(BufferSource label, BufferSource context, unsigned long outputLength); on WebTransport ([Exposed=(Window,Worker), SecureContext]; verbatim from W3C WebTransport and Blink web_transport.idl) |
|---|---|
| Shipped in | Chrome 159 (desktop, Android, Android WebView), enabled by default — filed under “Enabled by default” in the milestone=159 listing |
| Runtime flag | Blink runtime feature WebTransportExportKeyingMaterial is status: "stable" in runtime_enabled_features.json5 (flag before shipping: chrome://flags/#enable-experimental-web-platform-features; Finch name WebTransportExportKeyingMaterial) |
| Intents & bug | blink-dev Intent to Prototype · blink-dev Intent to Ship · issues.chromium.org/556304550 |
| Tests | wpt.fyi — export-keying-material.https.any.html (test source) · idlharness.https.sub.any.html |
| Security | Does not expose TLS traffic keys or enable decrypting WebTransport traffic; callers must treat exported bytes as secrets and choose protocol-specific label/context values (WebTransport security questionnaire). |
| Showcase demo | No Chrome Platform Showcase demo exists yet (HEAD-checked 404 on 2026-11-24). |
| ChromeStatus | 4860330806214656 — WebTransport keying material export |
references
- MDN —
WebTransport.exportKeyingMaterial()(canonical reference) - W3C WebTransport —
exportKeyingMaterial()(Editor’s Draft) - IETF draft-ietf-webtrans-overview (§4.1 Keying Material Exporter) · IETF draft-ietf-webtrans-http3 (§4.8 Exporter Context)
- w3c/webtransport#411 — initial proposal · WebTransport explainer
- ChromeStatus — WebTransport keying material export (4860330806214656) (API record)