From 9b06d725d263523f8f71247209db6deaed2dbc63 Mon Sep 17 00:00:00 2001 From: Yoongi Kim Date: Fri, 29 May 2026 21:52:20 +0900 Subject: [PATCH 01/10] 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 --- core/util/browser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/util/browser.js b/core/util/browser.js index c613a7e9f..e13273489 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; } From 82f1e8fbfc291aef028f4141fcd0e18e3dcbcf0a Mon Sep 17 00:00:00 2001 From: ArduFish123 <80416599+ArduFish@users.noreply.github.com> Date: Thu, 4 Jun 2026 00:02:06 +0300 Subject: [PATCH 02/10] Update vnc.html --- vnc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnc.html b/vnc.html index ad7f67a45..bbda811b7 100644 --- a/vnc.html +++ b/vnc.html @@ -182,7 +182,7 @@ Clipboard

- Edit clipboard content in the textarea below. + Edit clipboard content in the textbox below.

From ac861f9e280b015569c4b1c3999516d9c0fa35c3 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Thu, 20 Aug 2026 12:01:54 +0200 Subject: [PATCH 03/10] Use the "macos-latest" label for GitHub workflow As of 2026-07-15 macos-latest was migrated to use the macOS 26 runner image. This change has no practical effect right now, it just means we will automatically follow future updates to the "macos-latest" label. --- .github/workflows/test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3967a639f..a43516997 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,10 +13,7 @@ jobs: - ChromeHeadless - FirefoxHeadless include: - # FIXME: We'd like to use "macos-latest", but Safari tests - # are flaky on it and timeout often. As of 2026-05-23 - # macos-latest is still on 10.15. - - os: macos-26 + - os: macos-latest browser: Safari - os: windows-latest browser: EdgeHeadless From 7585d0149de7ef9f38b817eb926c391c1751981b Mon Sep 17 00:00:00 2001 From: Lufei Date: Tue, 1 Sep 2026 15:50:33 +0800 Subject: [PATCH 04/10] feat: keep vnc_lite.html align with vnc.html in URL handling Use same logic for generating websocket URL in `vnc_lite.html` with `vnc.html`, to ensure custom subpath works for `vnc_lite.html` entry as well. .e.g novnc serve behind nginx reverse proxy like: ``` location ^~ /novnc/ { proxy_pass http://127.0.0.1:8888/; ... ``` To keep lite, hash fragment, encrypt, .etc not included. Signed-off-by: Lufei --- vnc_lite.html | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/vnc_lite.html b/vnc_lite.html index 79d481460..96ee5acee 100644 --- a/vnc_lite.html +++ b/vnc_lite.html @@ -126,10 +126,10 @@ document.getElementById('sendCtrlAltDelButton') .onclick = sendCtrlAltDel; - // Read parameters specified in the URL query string - // By default, use the host and port of server that served this file - const host = readQueryVariable('host', window.location.hostname); - let port = readQueryVariable('port', window.location.port); + // Use same logic as vnc.html, but to keep lite, without hash fragment, + // encrypt flag, .etc + const host = readQueryVariable('host', ''); + const port = readQueryVariable('port', 0); const password = readQueryVariable('password'); const path = readQueryVariable('path', 'websockify'); @@ -140,20 +140,26 @@ status("Connecting"); // Build the websocket URL used to connect + const protocol = (window.location.protocol === "https:") + ? 'wss:' : 'ws:'; let url; - if (window.location.protocol === "https:") { - url = 'wss'; + + if (host) { + url = new URL("https://" + host); + + url.protocol = protocol; + if (port) { + url.port = port; + } + + url = new URL("./" + path, url); } else { - url = 'ws'; - } - url += '://' + host; - if(port) { - url += ':' + port; + url = new URL(path, location.href); + url.protocol = protocol; } - url += '/' + path; // Creating a new RFB object will start a new connection - rfb = new RFB(document.getElementById('screen'), url, + rfb = new RFB(document.getElementById('screen'), url.href, { credentials: { password: password } }); // Add listeners to important events from the RFB module From 4ab9c4a6ab0526744c9d1c439d6efb26834f7c87 Mon Sep 17 00:00:00 2001 From: Logan Besecker <3487677+lbesecker195@users.noreply.github.com> Date: Mon, 14 Sep 2026 01:50:07 -0700 Subject: [PATCH 05/10] Read boolean query parameters properly in vnc_lite.html readQueryVariable() returns the query value as a string, so ?view_only=false and ?scale=0 were set as the strings "false" and "0". Both are truthy, which made the session view only and scaled. Add a readQueryBoolean() helper that treats "0", "no" and "false" as false, like the checkbox settings in vnc.html, and use it for view_only and scale. Fixes #1662 Co-Authored-By: Claude Opus 5 --- vnc_lite.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/vnc_lite.html b/vnc_lite.html index 96ee5acee..a9f46233f 100644 --- a/vnc_lite.html +++ b/vnc_lite.html @@ -123,6 +123,20 @@ return defaultValue; } + // This function reads a boolean variable from the query string. + // The values "0", "no" and "false" are false and any other value + // is true, like the settings in vnc.html. If the variable isn't + // defined in the URL it returns the default value instead. + function readQueryBoolean(name, defaultValue) { + const value = readQueryVariable(name); + + if (value === undefined) { + return defaultValue; + } + + return !['0', 'no', 'false'].includes(value.toLowerCase()); + } + document.getElementById('sendCtrlAltDelButton') .onclick = sendCtrlAltDel; @@ -169,8 +183,8 @@ rfb.addEventListener("desktopname", updateDesktopName); // Set parameters that can be changed on an active connection - rfb.viewOnly = readQueryVariable('view_only', false); - rfb.scaleViewport = readQueryVariable('scale', false); + rfb.viewOnly = readQueryBoolean('view_only', false); + rfb.scaleViewport = readQueryBoolean('scale', false); From 78e25d894723fbc8c0d3d7a68f8657cbcec4c748 Mon Sep 17 00:00:00 2001 From: rohit singh <145866377+Rohit-Singh-01@users.noreply.github.com> Date: Thu, 15 Oct 2026 15:25:04 +0530 Subject: [PATCH 06/10] Fix spelling in connect event documentation Correct "recieve" to "receive" in docs/API.md. This only changes prose in the connect event description. Checked the one-word edit against the original text; no code or behavior changes. Runtime tests were not run for this spelling-only correction. --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index c1f6fac91..508650b75 100644 --- a/docs/API.md +++ b/docs/API.md @@ -261,7 +261,7 @@ property is an `Object` containing the property `types` which is an The `connect` event is fired after all the handshaking with the server is completed and the connection is fully established. After this event -the `RFB` object is ready to recieve graphics updates and to send input. +the `RFB` object is ready to receive graphics updates and to send input. #### desktopname From e0785b07ad255a7da948a8450086955c741e131f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 19 Oct 2026 10:25:22 +0200 Subject: [PATCH 07/10] Add document stating permissable LLM usage --- AI_POLICY.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 AI_POLICY.md diff --git a/AI_POLICY.md b/AI_POLICY.md new file mode 100644 index 000000000..092ea191b --- /dev/null +++ b/AI_POLICY.md @@ -0,0 +1,52 @@ +noVNC AI policy +=============== + +The legal and ethical status of LLM-generated content is currently +uncertain. LLMs are trained on large amounts of existing work, much of +it under licenses that require attribution or impose other conditions, +and their output can reproduce or be derived from that work without any +indication of its origin. noVNC is a Free Software project that depends +on copyright and licenses being respected, and we want to show the same +respect for the work of others. For now, the noVNC project has therefore +decided to take a cautionary approach to such content. This policy +reflects the current situation, and will be revisited as it becomes +clearer. + +Any significant contribution to noVNC must not include LLM-generated +content or be derived from LLM-generated content. This applies to all +contributions, including code, documentation, and translations. + +Minor LLM-generated contributions can still be accepted, as long as they +fulfill all other requirements on quality. The commits must be marked +with an "Assisted-by:" tag for transparency. + +All contributions must be submitted by a human who has reviewed them, +understands them, and can answer questions about them. + +There is no strict definition of what is a "significant" contribution. +The decision will be made by the noVNC maintainer or maintainers that +review the contribution. A guideline is the GNU project's definition[^1] +of legally significant changes. + +As an exception, significant LLM-generated contributions to test cases +can be accepted. Tests are largely constrained by the code they +exercise, leaving less room for reproducing the work of others, and they +can be removed without affecting noVNC itself. Such changes must be kept +in separate commits, marked with an "Assisted-by:" tag, so that they can +be identified and removed if needed in the future. + +This policy does not apply to code that primarily belongs to other +projects and is imported into noVNC. + +Other uses of AI +---------------- + +This policy covers content included in contributions. It does not cover +using AI tools for research, understanding the code, finding bugs, +debugging, or as support when reviewing, as long as the output is not +included in a contribution. Neither does it cover assistive uses such +as spelling and grammar checking, or screen readers. Bug reports and +comments written with AI assistance should be verified by the contributor +before posting. + +[^1]: https://www.gnu.org/prep/maintain/maintain.html#Legally-Significant From e8b5024d4603587b29ffede4fbd28b1fa2939829 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Fri, 23 Oct 2026 14:19:48 +0200 Subject: [PATCH 08/10] Ignore errors without a location in error-handler This was added to hide a "script error" bug in Firefox iOS by preventing our error handler from showing a message. But note that it hides any errors matching the message and lacking a filename. There is no easy way to detect Firefox on iOS since it's user agent fully matches Safari on MacOS. --- app/error-handler.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/error-handler.js b/app/error-handler.js index ef1cb64c7..b8dbbcb06 100644 --- a/app/error-handler.js +++ b/app/error-handler.js @@ -17,6 +17,14 @@ function handleError(event, err) { return false; } + // Errors without a location can't come from our own same-origin + // scripts, so ignore them. Firefox for iOS triggers this from its + // injected password manager script when non-input elements get focus: + // https://github.com/mozilla-mobile/firefox-ios/issues/36259 + if ((event.message === "Script error.") && !event.filename) { + return false; + } + // Only show the initial error if (msg.hasChildNodes()) { return false; From 333ab1a212a2c84b17350b61c1c6edc7abb08216 Mon Sep 17 00:00:00 2001 From: Mikhail Loginov Date: Thu, 12 Nov 2026 13:50:36 +0000 Subject: [PATCH 09/10] Stop reporting clipboard NotAllowedError and fix write fallback --- core/clipboard.js | 16 ++++++++++++++-- core/rfb.js | 6 ++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/core/clipboard.js b/core/clipboard.js index ae3cad155..eb2ba0a1e 100644 --- a/core/clipboard.js +++ b/core/clipboard.js @@ -20,6 +20,7 @@ export default class AsyncClipboard { // ===== EVENT HANDLERS ===== this.onpaste = () => {}; + this.onwritefailed = () => {}; } // ===== PRIVATE METHODS ===== @@ -41,7 +42,11 @@ export default class AsyncClipboard { const text = await navigator.clipboard.readText(); this.onpaste(text); } catch (error) { - Log.Error("Clipboard read failed: ", error); + if (error?.name === 'NotAllowedError') { + Log.Debug("Clipboard read not allowed: ", error); + } else { + Log.Error("Clipboard read failed: ", error); + } } } @@ -51,7 +56,14 @@ export default class AsyncClipboard { // Can lazily check cached availability if (!this._isAvailable) return false; navigator.clipboard.writeText(text) - .catch(error => Log.Error("Clipboard write failed: ", error)); + .catch((error) => { + if (error?.name === 'NotAllowedError') { + Log.Debug("Clipboard write not allowed: ", error); + } else { + Log.Error("Clipboard write failed: ", error); + } + this.onwritefailed(text); + }); return true; } diff --git a/core/rfb.js b/core/rfb.js index 7e038aae1..ea19f9851 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -270,6 +270,7 @@ export default class RFB extends EventTargetMixin { this._asyncClipboard = new AsyncClipboard(this._canvas); this._asyncClipboard.onpaste = this.clipboardPasteFrom.bind(this); + this._asyncClipboard.onwritefailed = this._dispatchClipboardEvent.bind(this); this._keyboard = new Keyboard(this._canvas); this._keyboard.onkeyevent = this._handleKeyEvent.bind(this); @@ -2350,6 +2351,11 @@ export default class RFB extends EventTargetMixin { if (this._viewOnly) return; if (this._asyncClipboard.writeClipboard(text)) return; // Fallback clipboard + this._dispatchClipboardEvent(text); + } + + _dispatchClipboardEvent(text) { + if (this._viewOnly) return; this.dispatchEvent( new CustomEvent("clipboard", {detail: {text: text}}) ); From 273a3e130a50207d2ef3e983cf6f300f305f5700 Mon Sep 17 00:00:00 2001 From: Mikhail Loginov Date: Tue, 17 Nov 2026 10:04:36 +0000 Subject: [PATCH 10/10] cache control --- uploadToS3.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uploadToS3.sh b/uploadToS3.sh index e36f7004c..82ed575a1 100755 --- a/uploadToS3.sh +++ b/uploadToS3.sh @@ -62,7 +62,12 @@ uploadFile () { bucket="codio-assets" resource="s3://${bucket}/${folder}/${tag}/${fName}" - aws s3 cp "${file}" "${resource}" --cache-control no-cache --content-type "${contentType}" + cacheControl="public, max-age=31536000, immutable" + if [ "${contentType}" = "text/html" ]; then + cacheControl="no-cache" + fi + + aws s3 cp "${file}" "${resource}" --cache-control "${cacheControl}" --content-type "${contentType}" } prepareSources