Daniel Jacobs
281ddbf406
web: Inform screen readers not to mention virtual keyboard input
2024-07-22 11:34:23 +02:00
Kamil Jarosz
43472ed221
frontend-utils: Use a loopback address for tests on Linux
...
Turns out that some hosts will try to connect to the black hole address
instead of failing instantaneously, so this patch replaces that address
with a loopback address with an unlikely to be used port.
2024-07-22 11:19:29 +02:00
Juhan Oskar Hennoste
aa3f046f68
Make swf::error::Error implement Send + Sync
2024-07-21 15:32:00 -04:00
Nathan Adams
1c8e95a061
web: Use nesting in css
2024-07-19 19:00:35 +02:00
Nathan Adams
50de5d09d2
web: Run cssnano over static css
2024-07-19 19:00:35 +02:00
Nathan Adams
7dff027345
chore: 'npm run format'
2024-07-19 19:00:35 +02:00
Nathan Adams
9bfdbf24e6
web: Include static-styles css at build time, from a .css file
2024-07-19 19:00:35 +02:00
Nathan Adams
d204871e22
web: Move shadow-template to internal
2024-07-19 19:00:35 +02:00
Aaron Hill
71c3245d14
avm2: Add static methods to XML in public namespace
...
'My Champion Oliver' relies on being able to call these methods
without the AS3 namespace.
2024-07-19 17:06:41 +03:00
Daniel Jacobs
e25d97195e
chore: Add newlines to ends of files
2024-07-19 14:53:21 +02:00
Daniel Jacobs
e708ec823f
web: Add more type definitions and comment about type checking oddities
2024-07-19 14:53:21 +02:00
Daniel Jacobs
5a788dc51c
web: Split shadow template into components
2024-07-19 14:53:21 +02:00
Daniel Jacobs
aec3348241
web: Remove unused global
2024-07-19 14:53:21 +02:00
Daniel Jacobs
0c878207c6
web: Use namespaces for SVG elements and split elements in template
2024-07-19 14:53:21 +02:00
Daniel Jacobs
78d2a85237
web: Add definitions to let things compile
2024-07-19 14:53:21 +02:00
Daniel Jacobs
e19e088c28
chore: Formatting
2024-07-19 14:53:21 +02:00
Daniel Jacobs
1275656b9e
web: Add changes to make shadow template one tsx element
2024-07-19 14:53:21 +02:00
Daniel Jacobs
f56c43882f
web: Use tsx for shadow template
2024-07-19 14:53:21 +02:00
TÖRÖK Attila
0721ebb699
web: Remove now unused `getAudioOutputTimestamp`
2024-07-19 14:32:21 +02:00
TÖRÖK Attila
c88d363263
web: Remove now unused `copyToAudioBuffer`
2024-07-19 14:32:21 +02:00
Kamil Jarosz
60bbbda990
tests: Add avm2/edittext_always_show_selection test
2024-07-19 14:15:58 +02:00
Kamil Jarosz
a6d321e1de
avm2: Implement `TextField.alwaysShowSelection`
2024-07-19 14:15:58 +02:00
Kamil Jarosz
842f310fe7
core: Add option of rendering gray selection when text field is not focused
2024-07-19 14:15:58 +02:00
Kamil Jarosz
f8577a843d
core: Use non-zero winding rule for fonts
2024-07-19 12:40:12 +02:00
Kamil Jarosz
aab4f7122b
avm2: Support non-zero winding rule when drawing paths
2024-07-19 12:40:12 +02:00
Kamil Jarosz
b160dd6dd9
core: Add support for non-zero winding rule
2024-07-19 12:40:12 +02:00
Kamil Jarosz
3cb798e818
Revert "web: Use browser focus events for focus management"
...
This reverts commit 5441749e3e
.
2024-07-18 23:11:32 +02:00
Daniel Jacobs
da82b8ff04
ci: Temporarily pin to Node 22.4
2024-07-18 15:51:02 -04:00
Daniel Jacobs
ecc3cc4242
extension: Change from switch/toggle to proper boolean for tab reload
2024-07-17 14:54:13 -04:00
Daniel Jacobs
95ac802c4d
extension: Don't auto-reload tab when permissions are granted
2024-07-17 14:54:13 -04:00
Lord-McSweeney
74b5c24b51
avm2: Fix regression with unreachable exceptions
2024-07-17 21:30:13 +03:00
Daniel Jacobs
579d2ff2b7
web: Check error type instead of error message
2024-07-17 13:49:37 +02:00
Daniel Jacobs
befe226f4a
web: Fix issue with error checking in panic function
2024-07-17 13:49:37 +02:00
Daniel Jacobs
f9312e6cd8
web: On pages with restrictive CSP show open in new tab option for SWF
2024-07-17 13:49:37 +02:00
Nathan Adams
259b95c178
web: Move some internal files to internal/
2024-07-17 13:00:01 +02:00
Nathan Adams
e613fb73dd
web: Use eslint2021 as target, all our min browser versions support this
2024-07-17 13:00:01 +02:00
Lord-McSweeney
bb49deecf8
avm2: Add test for unreachable exception
2024-07-16 23:03:30 +03:00
Lord-McSweeney
d9ce8ef9ca
avm2: Only look at valid Exceptions in verifier
2024-07-16 23:03:30 +03:00
Lord-McSweeney
c0565d81e6
core: Log an error when a URLLoader load fails
2024-07-16 12:24:40 +02:00
Kamil Jarosz
53328c72f8
tests: Fix avm2/eventdispatcher_dispatchevent_cancel
...
This test was verifying cancellation using non-cancellable events.
2024-07-16 10:53:42 +03:00
Kamil Jarosz
b8fe2b5cba
avm2: Fix EventDispatcher.dispatchEvent return value
...
This fixes a regression introduced in 250bf64
.
2024-07-16 10:53:42 +03:00
Aaron Hill
6e93927f63
web: Check for locked 'Player' mutex and reschedule with setTimeout
...
We use 'wasm-bindgen-futures' as our futures executor on web, which
in turn uses 'queueMicroTask'. This can result in the browser executing
one of our futures while we're still inside our `requestAnimationFrame`
callback (in particular, while we still have the `Player` mutex locked).
We now detect this condition by attempting the lock the Player mutex
inside of our `spawn_local` future. If this fails, we `await`
a `setTimeout`-based promise, which ensures that our code runs in
a new top-level `setTimeout` javascript 'task' (outside of our
`requestAnimationFrame` callback).
2024-07-15 22:46:22 +02:00
Adrian Wielgosik
c9fedb2cf6
avm2: Add a fast path in coerce_s
2024-07-15 22:30:46 +02:00
Adrian Wielgosik
131b2c21f4
avm2: Use small string cache when stringifying ints < 10
2024-07-15 22:30:46 +02:00
Kamil Jarosz
c62bd1cfe3
tests: Add mouse_double_click_events test
2024-07-15 21:51:18 +02:00
Kamil Jarosz
1c3128c8e1
avm2: Use click index for double click detection
2024-07-15 21:51:18 +02:00
Kamil Jarosz
0b64bc681a
core: Add click index to ClipEvent::Release
2024-07-15 21:51:18 +02:00
Kamil Jarosz
6fa2f41eee
tests: Add avm2/mouse_wheel_events test
2024-07-15 21:36:37 +02:00
Kamil Jarosz
4ec36d5b3a
avm2: Dispatch mouseWheel event on mouse wheel
2024-07-15 21:36:37 +02:00
Kamil Jarosz
582f5dbf12
tests: Add tab_ordering_arrows test
...
This test verifies the behavior of keyboard navigation with arrows.
2024-07-15 21:19:21 +02:00