← 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.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | WebIDL 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-mapping | 5/5 | info | Feature 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. |
| completeness | 5/5 | info | reference-contract.json maps 3 source-derived inventory items (setMicrophoneActive, setCameraActive, update capture state algorithm) across all 9 required dimensions. |
| explanation-quality | 5/5 | info | Clearly 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. |
| examples | 5/5 | info | Embeds 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-fallbacks | 5/5 | info | Tabular 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-validity | 5/5 | info | Every 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. |
| accessibility | 5/5 | info | Single <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-ux | 5/5 | info | Uses 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-relationship | 5/5 | info | Primary 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
- responsive reference documentation table scroll accessibility focus — Use semantic landmarks (<main>, <header>, <nav>, <footer>), sequential heading levels, captioned tables with <th scope>, focusable scroll regions wired via aria-labelledby, and descriptive iframe titles. (Applied: single <main>, <nav class='local-nav' aria-label='On this page'>, captioned .doc-table tables in focusable .table-wrap regions with 3px :focus-visible outline, role='note' on Baseline banner, and descriptive title on the embedded showcase iframe.)
- responsive data table mobile overflow typography — Use logical max-inline-size: 100% for responsive containers and embeds, horizontal scrolling for wide tables rather than clipping, and flex-wrap with gap for metadata pill lists. (Applied: .table-wrap and .example-embed iframe use max-inline-size: 100%, with .compat-table and .scroll-table scrolling cleanly on 360px mobile and shared public/styles.css handling flex-wrap and code blocks.)
- responsive data table mobile overflow typography — Rely on balanced heading wrapping and clean code/prose typography without per-page inline overrides that break dark-mode or narrow-screen wrapping. (Applied: omitted inline overrides on h1, pre, code, and blockquote so shared public/styles.css typography and light-dark() tokens remain consistent.)
open questions
- Confirm Android WebView shipping milestone once ChromeStatus populates browsers.chrome.webview (currently null).
- Update compatibility table if BCD adds a dedicated subfeature for the Promise<undefined> return type or when Firefox ships setMicrophoneActive()/setCameraActive().
follow-up goals
- [low · targeted-fix] Refresh the Browser compatibility table once Android WebView status is confirmed or Firefox ships MediaSession capture-state setters.