← back to v159 · mediasession-return-promise-undefined-from-setmicrophoneactive-and-setcameraacti

conformance · v159

v159 · mediasession-return-promise-undefined-from-setmicrophoneactive-and-setcameraacti — conformance probe

9 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.

browser: … spec: https://w3c.github.io/mediasession/#dom-mediasession-setmicrophoneactive chromestatus: #5188639100370944 generated 2026-11-22T12:00:00Z by weekly-hardening-builder
0
pass
0
fail
0
blocked
9
total
id contract kind verdict detail
setmicrophoneactive-is-function navigator.mediaSession.setMicrophoneActive is a function (the pre-existing surface whose return type this feature changes). spec ↗ typeof …
setcameraactive-is-function navigator.mediaSession.setCameraActive is a function. spec ↗ typeof …
setmicrophoneactive-returns-promise setMicrophoneActive(false) returns a Promise instead of undefined. spec ↗ script …
setcameraactive-returns-promise setCameraActive(false) returns a Promise instead of undefined. spec ↗ script …
promise-fulfils-with-undefined In a fully active document the promises returned by setMicrophoneActive(false) and setCameraActive(false) fulfil with undefined. spec ↗ script …
missing-argument-rejects-not-throws Calling setMicrophoneActive() with no argument does not throw synchronously; it returns a promise rejected with TypeError (WebIDL promise-returning operation). spec ↗ script …
wrong-receiver-rejects-not-throws Calling setCameraActive with a non-MediaSession receiver returns a promise rejected with TypeError instead of throwing synchronously. spec ↗ script …
detached-document-rejects-invalidstateerror setMicrophoneActive(true) on the MediaSession of a removed iframe (document not fully active) returns a promise rejected with InvalidStateError. spec ↗ script …
arity-unchanged Both methods keep a length of 1: the return-type change does not alter the boolean active parameter. spec ↗ script …