Tom Schuster
1b5eb2e8e2
avm2: Stub XML::namespaceDeclarations
...
Improves #14734
2024-01-15 19:50:09 -05:00
renovate[bot]
3c115238fd
fix(deps): update rust dependencies
2024-01-16 01:13:38 +01:00
Crowdin Bot
3f17d1c778
chore: Update translations from Crowdin
2024-01-16 00:48:30 +01:00
TÖRÖK Attila
dccd48dca8
chore: Update wasm-bindgen version references to 0.2.90
2024-01-16 00:28:44 +01:00
sleepycatcoding
5b19ecec97
avm2: Implement XML.setLocalName
2024-01-15 23:53:17 +01:00
renovate[bot]
e0a22b56ce
fix(deps): update wasm-bindgen
2024-01-15 17:24:02 -05:00
Abiel Deneke
df3a033b77
avm2: Stub Accelerometer.isSupported
2024-01-15 22:10:58 +01:00
Nathan Adams
e5e1a8e11b
ci: Remove PR tracking action
2024-01-15 20:24:21 +01:00
Nathan Adams
f908b8b33e
ci: Use right auth token for tracking merged PRs
2024-01-15 18:30:55 +01:00
Nathan Adams
1abf8b4914
ci: Track merged PRs in a project
2024-01-15 18:17:03 +01:00
Kamil Jarosz
5bd643cd4f
core: Improve caret blinking behavior
...
Caret now blinks only when idle.
2024-01-15 08:20:22 +01:00
nosamu
a638715bd8
avm2: Throw null param error in navigateToURL
...
Fixes #14733
2024-01-14 20:17:31 +01:00
Aaron Hill
3cbfbdd4a6
avm2: Add weird parse-as-uint special case to Object keys
...
When handling dynamic properties, avmplus will always try to
parse the string key name as a uint. If it succeeds, then the
key will be stored internally as a integer (via Atom), which is
observable by property iteration. The intention appears to have
been to support `obj[25] = someVal`, but it causes `obj["25"]`
and `obj[25]` to map to the same key (though iterating over the
object's keys will always produce a `number`).
2024-01-13 19:47:58 -05:00
TÖRÖK Attila
a930c6fd5f
chore: Disallow "kyren" as GitHub organization for crate sources
...
Since we have switched to the published gc-arena 0.5.0 release.
2024-01-14 01:28:39 +01:00
TÖRÖK Attila
2c26eaae39
chore: Deny unknown crate registry and git repository sources
2024-01-14 01:28:39 +01:00
Aaron Hill
2557d14678
Bump jpegxr dependency for wasm ABI bugfix
...
This fixes a crash when loading an ATF 'compressed alpha'
texture under wasm. The rust-side jpegxr wrapper was calling
C functions that trigger a WASM ABI bug.
See d49988f40f
for more details
2024-01-14 00:59:19 +01:00
TÖRÖK Attila
55cdfab3d3
avm2: Add API versioning to DisplayObjectContainer
2024-01-13 19:35:54 +01:00
TÖRÖK Attila
4c1d59c4a3
avm2: Cleanup: Make `Domain::get_class` not return a `Result`
...
As it was always the `Ok` variant anyway.
2024-01-13 11:53:35 -05:00
Aaron Hill
195822885e
avm2: Stub all remaining TextField methods and properties
2024-01-12 20:42:18 -05:00
Aaron Hill
639d17d259
Apply 'xml["@myattr"]' logic when setting/deleting properties
...
We previously only applied this when getting properties.
2024-01-12 19:13:35 -05:00
sleepycatcoding
2775c917bf
avm2: Correctly handle `@*` in string_to_multiname
2024-01-13 00:27:28 +02:00
Tom Schuster
79c5112f45
core: Provide a better fallback for Ming typefaces
2024-01-12 21:59:20 +01:00
nosamu
d1fff8a8ff
web: Add special case for base="."
2024-01-12 10:39:07 +01:00
Kamil Jarosz
70486465e8
core: Support TextField.restrict when pasting
2024-01-11 23:22:49 +01:00
Kamil Jarosz
1db34993a2
tests: Add AutomatedEvent::SetClipboardText
...
Currently in tests (input.json) it is possible to trigger Ctrl-V using:
{ "type": "TextControl", "code": "Paste" },
But there is no way of populating the clipboard.
This patch adds AutomatedEvent::SetClipboardText, so the clipboard
may be populated before pasting:
{ "type": "SetClipboardText", "text": "<value>" },
{ "type": "TextControl", "code": "Paste" },
2024-01-11 23:22:49 +01:00
Kamil Jarosz
2ef63d3a61
avm2: Implement TextField.restrict
2024-01-11 23:22:49 +01:00
Kamil Jarosz
1c15cd55b9
avm1: Implement TextField.restrict
2024-01-11 23:22:49 +01:00
Kamil Jarosz
43d4c26b77
core: Implement restrict for EditText
...
EditTextRestrict models the `restrict` property, which is used
to specify which characters the user is allowed to type.
2024-01-11 23:22:49 +01:00
Kamil Jarosz
5ece6981ce
core: Fix caret and selection rendering
...
This commit fixes issues with caret and selection rendering:
1. They had the wrong height and were rendered lower than expected
for some fonts and sizes.
2. The caret was not being rendered at all when there was no text,
but only when the text was set earlier and then deleted.
3. The selection was rendered with translate_x=-1,
which caused overlap over some glyphs.
2024-01-11 23:04:02 +01:00
Nathan Adams
6b7bca1fd6
web: Support F13..F24 keys
2024-01-11 22:40:37 +01:00
TÖRÖK Attila
078b264c19
desktop: Support F13..F24 keys
2024-01-11 22:40:37 +01:00
Nathan Adams
e993f5ce46
core: Support F13..F24 keys
2024-01-11 22:40:37 +01:00
Tom Schuster
7498ed51d8
core: Font kerning is in points not pixels
2024-01-11 21:39:17 +01:00
Tom Schuster
ae8c0148c2
core: Use sans instead of serif when missing a font
2024-01-11 10:35:47 +01:00
Kamil Jarosz
5feafb2ca3
avm1: Add support for onSetFocus & onKillFocus
...
Methods `onSetFocus` & `onKillFocus` are invoked when focus is changed
for `TextField`, `Button`, and `MovieClip`.
Multiple SWFs use these methods to listen to a focus change,
e.g. in order to implement placeholders for text fields.
2024-01-10 21:59:25 -05:00
Aaron Hill
c01ab53d2e
avm2: Stub flash.text.engine.GraphicElement
2024-01-10 21:29:33 -05:00
Aaron Hill
db623a90e8
avm2: Stub TextField.getCharBoundaries
2024-01-10 20:35:29 -05:00
Aaron Hill
57f6963133
render: Implement PixelBender Operation::Select (renamed from Loop) ( #14503 )
2024-01-11 01:04:50 +00:00
sleepycatcoding
aeedec19fa
avm2: Implement XML.normalize
2024-01-11 01:30:47 +01:00
dependabot[bot]
46f95a9522
build(deps): bump follow-redirects from 1.15.2 to 1.15.4 in /web
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.15.2 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 01:12:54 +01:00
Tom Schuster
629e8f89ab
tests: Add a test for optimized index access from the interpreter
2024-01-10 23:18:40 +01:00
Tom Schuster
82ce40af82
avm2: Optimize op_get_property index access on array-like
2024-01-10 23:18:40 +01:00
Tom Schuster
532279b4e6
avm2: Inline Avm2::peek
2024-01-10 23:18:40 +01:00
Nathan Adams
d89e4536b3
core: Support Japanese font defaults
2024-01-10 23:15:26 +01:00
Aaron Hill
9a96941de9
avm2: Improve Graphics.drawGraphicsData stubs
...
We now produce stubs or clearer errors for unsupported argument
combinations, instead of unclear `RustError`s
2024-01-10 01:53:27 +01:00
Tom Schuster
ba3d1bbf66
core: Don't treat known aliases as default fonts before trying to load them as device fonts
2024-01-10 00:41:31 +01:00
nosamu
4db454e933
web: Fix download link
2024-01-09 18:06:50 +01:00
Crowdin Bot
6e1e26e0e8
chore: Update translations from Crowdin
2024-01-08 23:28:34 +01:00
Tom Schuster
4db87a9643
desktop: define default fonts
2024-01-08 23:00:18 +01:00
Tom Schuster
b34d3c9ad2
core: Explicitly match and use default fonts, before loading device fonts
2024-01-08 23:00:18 +01:00