Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ jobs:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- run: |
GITREV=$(git rev-parse --short HEAD)
echo $GITREV
sed -i "s/^\(.*\"version\".*\)\"\([^\"]\+\)\"\(.*\)\$/\1\"\2-g$GITREV\"\3/" package.json
if: github.event_name != 'release'
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
# Node 24 is needed to get npm > 11.5.1, which is a requirement for
# OIDC auth.
node-version: 24
# Needs to be explicitly specified for auth to work
registry-url: 'https://registry.npmjs.org'
- run: npm install
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: npm
path: lib
Expand All @@ -49,7 +49,7 @@ jobs:
snap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- run: |
GITREV=$(git rev-parse --short HEAD)
echo $GITREV
Expand All @@ -61,7 +61,7 @@ jobs:
sed -i "s/^version:.*/version: '$VERSION'/" snap/snapcraft.yaml
- uses: snapcore/action-build@v1
id: snapcraft
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: snap
path: ${{ steps.snapcraft.outputs.snap }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- run: npm update
- run: npm run lint
html:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- run: npm update
- run: git ls-tree --name-only -r HEAD | grep -E "[.](html|css)$" | xargs ./utils/validate
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- run: npm update
- run: npm run test
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- run: npm update
- run: sudo apt-get install gettext
- run: make -C po update-pot
Expand Down
52 changes: 52 additions & 0 deletions AI_POLICY.md
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions app/error-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
98 changes: 98 additions & 0 deletions app/images/icons/novnc-icon-35x21.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading