Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable27] Fix checking if WebAssembly is supported for virtual background #10251

Merged
merged 4 commits into from
Aug 17, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

Backport of #10230

"wasmCheck.feature" is always defined, so there is no need to use
optional chaining.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Before "wasm-check 2.1.0" if WebAssembly was disabled in Firefox an
exception was thrown when loading "wasm-check". However, this was not
the expected behaviour, but a bug. The proper way is to check it using
"support()", which returns false if not supported.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
If the virtual background is not available
"_jitsiStreamBackgroundEffect" is not even defined, so the public getter
and setter can not delegate to it in that case.

As the getter now returns undefined rather than an actual object the
getter can not be used if an object is expected when the virtual
background is not available.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@nickvergessen nickvergessen merged commit 1552d23 into stable27 Aug 17, 2023
@nickvergessen nickvergessen deleted the backport/10230/stable27 branch August 17, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants