Commit 9b06d72 for novnc.com
commit 9b06d725d263523f8f71247209db6deaed2dbc63
Author: Yoongi Kim <yoongi@yoongi.kim>
Date: Fri May 29 21:52:20 2026 +0900
Fix VideoDecoder.isConfigSupported guard for Chrome 86-93
Chrome 86-93 shipped VideoDecoder as part of an origin trial but did not
include the isConfigSupported method (added in Chrome 94). Calling it
without checking its existence caused a silent module load failure.
Fixes #2060
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
diff --git a/core/util/browser.js b/core/util/browser.js
index c613a7e..e132734 100644
--- a/core/util/browser.js
+++ b/core/util/browser.js
@@ -107,7 +107,8 @@ export const hasScrollbarGutter = _hasScrollbarGutter;
export let supportsWebCodecsH264Decode = false;
async function _checkWebCodecsH264DecodeSupport() {
- if (!('VideoDecoder' in window)) {
+ if (!('VideoDecoder' in window) ||
+ !('isConfigSupported' in VideoDecoder)) {
return false;
}