Lew Ayotte
b16f19f9ce
Set _rfbVeNCryptState = 4 not == 4
2023-04-06 15:00:21 -05:00
Pierre Ossman
681632bc9f
Avoid running tests on l10n singleton
...
We want tests to be independent, so we cannot have them modify a shared
state, such as the l10n singleton. Make sure each test instantiates its
own object instead.
2023-04-06 11:11:47 +02:00
Pierre Ossman
a4453c9a26
Special case English translation fallback
...
We should not be listing this in LINGUAS as that gives the impression
that English has en explicit translation. Instead, it is a special case
that the code needs to be explicitly aware of.
This reverts 9a06058
in favour of a more robust fix.
2023-04-05 12:46:17 +02:00
Pierre Ossman
747603c0d5
Also re-enable playback on failures
...
Allows easier testing by being able to run the test multiple times.
2023-04-04 17:02:57 +02:00
Pierre Ossman
c1d2449fb8
Fix playback error message for load failure
...
We expect the promise to be rejected with a string for display to the
user.
2023-04-04 17:02:21 +02:00
Samuel Mannehed
46292477c8
Merge pull request #1768 from mathis-marcotte/add-english-to-supported-langs
...
Add english to list of supported languages
2023-04-02 20:16:48 +02:00
Mathis Marcotte
9a06058f66
Added english to list of supported languages
2023-03-27 14:23:09 +00:00
Samuel Mannehed
8decca7353
Use unitless numbers for line-height values
...
Using <length> type values for line-height can give unexpected
inheritance behaviors. If using <length> values, the inherited
line-height on children is calculated using the font-size of the parent.
What we want is for the line-height of children to be calculated using
it's own font-size.
By instead using a unitless number, we get the behavior we want. Note
that this bug has no effects right now since no children to any of the
related elements have different font-sizes.
2023-03-23 11:06:03 +01:00
Samuel Mannehed
4558104196
Properly center the checkbox checkmark
...
Using a flexbox we can easily center the checkmark without using hard
coded positions.
2023-03-23 11:06:03 +01:00
NNN1590
6751cc1236
Update Japanese translation
2023-03-21 13:15:26 +09:00
Pierre Ossman
9985950bfa
Upgrade to latest websockify in snap package
2023-01-26 10:45:26 +01:00
Pierre Ossman
a0e6e7b1d8
Merge branch 'crypto-cleanup-fallback' of https://github.com/pdlan/noVNC
2023-01-20 16:52:32 +01:00
Pierre Ossman
90455eef06
noVNC 1.4.0
2023-01-20 13:58:48 +01:00
Pierre Ossman
51677f5c70
Update json files for new translations
2023-01-20 13:57:20 +01:00
Pierre Ossman
823e7cfca3
Update Swedish translation
2023-01-20 13:56:16 +01:00
pdlan
f974b73137
Cleanup for the cryptographic algorithms that are not supported by SubtleCrypto
2023-01-20 05:54:00 -05:00
Samuel Mannehed
5b7d2a622e
Fix positioning of checkbox checkmark
...
Changing the ::after element to be displayed as 'block' lets it be
positioned using relative. This means we can remove the confusing
"position: relative" from the checkbox.
2023-01-02 14:46:33 +01:00
Pierre Ossman
3553a451d8
Remove redundant meta charset
...
UTF-8 is the default for HTML5 pages anyway.
2022-12-29 13:26:41 +01:00
Pierre Ossman
b76358e9bf
noVNC 1.4.0 beta
2022-12-27 15:39:52 +01:00
Pierre Ossman
5f689f9bc8
Update translation template file
2022-12-27 15:39:11 +01:00
Pierre Ossman
022fc8c374
Improve whitespace handling in translations
...
The HTML source will include line breaks and indentation that is only
for source formatting, and will not be displayed.
2022-12-27 15:39:11 +01:00
Pierre Ossman
367bfd2962
Use JavaScript highlighting for Synax sections
...
Follows what MDN does, and makes things a bit easier to read.
2022-12-27 15:03:32 +01:00
Pierre Ossman
934e3de356
Follow current MDN for syntax examples
...
The now avoid brackets for optional arguments, so let's try to have the
same style.
2022-12-27 15:00:39 +01:00
Pierre Ossman
74fe694cc4
Fix toBlob() documentation
...
These are copy-and-paste errors from the toDataURL() section.
2022-12-27 15:00:13 +01:00
Pierre Ossman
ce534b85c1
Fix indentation of toBlob()/toImage() docs
...
It isn't considered a code block if it isn't indented properly.
2022-12-27 14:58:16 +01:00
Pierre Ossman
caf0ecc99b
Consistent naming of RFB arguments
...
Make sure we call the arguments the same everywhere. Follow-up to commit
44d384b
.
2022-12-27 14:55:06 +01:00
Pierre Ossman
ceadcd6e83
Use reference style links in API docs
...
Makes everything a bit more readable.
2022-12-27 14:04:37 +01:00
Pierre Ossman
e16b3b8620
Update feature list
...
Make sure everything is in sync with the current state of things.
2022-12-27 14:04:20 +01:00
Pierre Ossman
d4197932d6
Update copyright year to 2022
2022-12-27 14:03:16 +01:00
Pierre Ossman
7e7e3ac07d
List Joel and Solly as previous members
...
They are no longer active in the project, so list them under a different
section in relevant documents.
2022-12-27 14:02:44 +01:00
Pierre Ossman
1ff2ecd9f0
Merge branch 'ffscroll' of https://github.com/CendioOssman/noVNC
2022-12-27 13:13:48 +01:00
Pierre Ossman
5de478d6e7
Restrict forced panning to known bad platforms
...
Let's not punish systems that implement overlay scrollbars in a
functional way. The only current example is Firefox on Windows 11 and on
Linux.
2022-12-27 12:50:57 +01:00
Pierre Ossman
12a7c6f0de
Check for Android using userAgent
...
Modern Android systems seem to report "Linux" for navigator.platform, so
we can no longer rely on that.
2022-12-27 12:50:57 +01:00
Pierre Ossman
a187821e4f
Add OS checks for Android and ChromeOS
2022-12-27 12:50:57 +01:00
Pierre Ossman
8fb30fb9dc
Add unit tests for OS detection
2022-12-27 12:50:57 +01:00
Pierre Ossman
ee5e3c5fa3
Refine browser detection
...
Try to follow the principle outlined by Mozilla when detecting browsers
and engines.
2022-12-27 12:50:57 +01:00
Pierre Ossman
4a34ee4b1e
Remove navigator check from browser tests
...
This is a fundamental object that should always be present.
2022-12-27 12:50:57 +01:00
Pierre Ossman
88a36370a9
Add unit tests for browser detection
2022-12-27 12:50:57 +01:00
Pierre Ossman
28c9670427
Remove test code for old Chrome
...
We don't care about ancient versions of Chrome anyway, so let's keep
things simple.
2022-12-27 12:50:57 +01:00
Pierre Ossman
262a90b0e0
Consistently use "first" indentation
...
We already enforced this for most things, so let's fix up the last few
variants as well.
2022-12-27 12:50:57 +01:00
Pierre Ossman
7f4a9eebc8
Export clipping state externally
...
So that UI can reflect if it is currently possible to drag the viewport
or not.
2022-12-27 12:50:57 +01:00
Pierre Ossman
f172633715
Sort API alphabetically
...
So it is easier to find things as the API grows.
2022-12-27 12:20:40 +01:00
Pierre Ossman
e6fce71d6a
Merge branch 'add-mslogonii' of https://github.com/pdlan/noVNC
2022-12-23 14:43:06 +01:00
Samuel Mannehed
820b39c7d3
Reinstate outer div of noVNC_connect_button
...
There were two issues with removing the outer div of the connect button.
Firstly, rounded outlines don't work in WebKit browsers like Safari or
Epiphany (https://bugs.webkit.org/show_bug.cgi?id=20807 ) and this makes
the outline look completely square.
Secondly the code became too complex.
This reverts most of commit 05baf14256
.
2022-12-23 13:44:58 +01:00
Samuel Mannehed
bd2d3a58b0
Change element type of noVNC_logo
...
This is text, a <p> is better suited.
2022-12-23 13:44:58 +01:00
Samuel Mannehed
2b449b208e
Get rid of WebKit's button top margin
...
It conflicts with our :active styling since it changes margin-top.
2022-12-23 13:44:57 +01:00
Samuel Mannehed
30f230b74c
Merge pull request #1732 from novnc/favicons
...
Favicon cleanups and fixes
2022-12-23 10:22:12 +01:00
Samuel Mannehed
6e1d842850
Use an ICO file for favicons
...
The browsers have been choosing very poorly and have a lot of bugs when
it comes to favicons. Using an ICO makes many browsers choose better in
most cases. Most large websites use ICO files.
The icons in the ICO file needs to be ordered largest to the smallest
icon, and due to a Chrome bug we are limited to 8 icons. This
unfortunately means we couldn't fit one of the Android sizes. The 72x72
icon was removed since testing showed that it was used the least.
2022-12-23 09:05:12 +01:00
Samuel Mannehed
139f087187
Explicitly specify icon size instead of density
...
Instead of calculating a density that we hope results in the correct
size, we can specify what size we want. This is more robust and easier
to understand. This also allows us to simplify the Makefile quite a bit.
Note that Fedora's packaging of ImageMagick has a bug here:
https://bugzilla.redhat.com/show_bug.cgi?id=2140018
2022-12-23 09:05:12 +01:00
Samuel Mannehed
416e21151b
Create specific apple-touch-icons
...
These icons shouldn't have any transparancy. Instead, we remove the
rounded corners and let iOS handle that.
2022-12-23 09:05:12 +01:00