v159 · dom · media session

Caller-pattern migration matrix

The chromestatus compatibility note says fire-and-forget callers are unaffected. That is true for the happy path. This matrix runs five real calling patterns against three real scenarios in your browser and records exactly where each error ends up — caught, silently dropped, an unhandled rejection, or a crash. It is the migration checklist for code written against either signature.

Probing this browser…
Method under test
Where does each outcome go? (rows: caller patterns, columns: scenarios)
Caller patternValid call (false)Too few arguments ()Detached document (true)

how to read it

The recommended pattern for code that must run on both sides of the change is the last row: await Promise.resolve().then(() => session.setMicrophoneActive(active)) inside try catches synchronous throws (Chrome ≤158) and rejections (Chrome 159) alike, and never calls .then on undefined.

see also