Bug 1834049: Permit canvas captureStream without initializing the context. r=lsalzman
commit5bc65aa6783a181472a0b532f03ca9a70fc3a1c5
authorBrad Werth <bwerth@mozilla.com>
Thu, 25 May 2023 16:08:29 +0000 (25 16:08 +0000)
committerBrad Werth <bwerth@mozilla.com>
Thu, 25 May 2023 16:08:29 +0000 (25 16:08 +0000)
tree617f57a9b882a13d228b07ba87c5b22bf33edc6c
parentf86da890ec2f3faf83587cff5a328a0900796be9
Bug 1834049: Permit canvas captureStream without initializing the context. r=lsalzman

The spec does not seem to require a current context, so there's no reason
to require it here. If later calls within
`HTMLCanvasElement::CaptureStream` need a current context, they'll have
their own failure messages which will hopefully clarify where exactly we
need the context to exist.

Differential Revision: https://phabricator.services.mozilla.com/D178985
dom/html/HTMLCanvasElement.cpp