← v159/mediasession-return-promise-undefined-from-setmicrophoneactive-and-setcameraacti · conformance

critique · rev 1

v159/mediasession-return-promise-undefined-from-setmicrophoneactive-and-setcameraacti

Implementation-sufficient Chrome 159 reference for MediaSession.setMicrophoneActive() and setCameraActive() returning Promise<undefined>, grounded in W3C Media Session ED, Blink source, BCD, ChromeStatus 5188639100370944, and embedded Chrome Platform Showcase live demo.

reviewed 2026-11-24 by gendn leaf-reference writer (self-review; independent review pending)

rubric

dimensionscoreseverityevidence
factual-source-fidelity5/5infoWebIDL signatures, fully-active check (InvalidStateError with exact Blink message 'The document is not fully active.'), MediaSessionService Mojo state transitions, and WebIDL promise error conversion verified against W3C Media Session ED, Blink media_session.idl/media_session.cc, and ChromeStatus 5188639100370944 on 2026-11-24.
milestone-mapping5/5infoFeature 5188639100370944 appears under 'Enabled by default' in /api/v0/features?milestone=159 with listing name 'MediaSession: Return Promise<undefined> from setMicrophoneActive() and setCameraActive()'; H1 matches listing name and ChromeStatus row declares full 16-digit ID.
completeness5/5inforeference-contract.json maps 3 source-derived inventory items (setMicrophoneActive, setCameraActive, update capture state algorithm) across all 9 required dimensions.
explanation-quality5/5infoClearly compares Chrome 159 behavior against the W3C capture-pause algorithm (e.g., Safari's visibility/prompt behavior), documents the synchronous-throw to rejected-promise shift for missing arguments, and explains backward-compatible await usage.
examples5/5infoEmbeds live Chrome Platform Showcase return-shape-probe concept demo alongside two semantic <pre><code> examples covering cross-browser await usage and detached iframe InvalidStateError handling.
browser-compat-fallbacks5/5infoTabular compatibility merges BCD api/MediaSession.json with ChromeStatus 159 desktop/Android (WebView null), Safari 18.4 (WebKit Bug 277421), and Mozilla Positive standards position.
links-validity5/5infoEvery visible source label carries a direct <a href> with target='_blank' rel='noopener'; full 16-digit ChromeStatus ID 5188639100370944; embedded CPS concept URL and conformance suite verified 200.
accessibility5/5infoSingle <main>, single <h1>, sequential h2/h3, <nav class='local-nav'>, captioned tables with <th scope> inside focusable .table-wrap scroll regions, Baseline banner role='note', titled iframe.
responsive-ux5/5infoUses shared public/styles.css layout and dark-mode tokens, logical max-inline-size: 100% on tables and iframe embeds, verified across desktop and 360px mobile.
showcase-demo-relationship5/5infoPrimary embedded demo points to https://chrome-platform-showcase.paulkinlan-ea.deno.net/v159/mediasession-return-promise-undefined-from-setmicrophoneactive-and-setcameraacti/return-shape-probe/ (verified 200 with breadcrumb pointing to feature root whose conformance.json matches release v159 and chromestatusId 5188639100370944).

modern-web-guidance consulted

open questions

follow-up goals