Commit Graph

10717 Commits

Author SHA1 Message Date
Lord-McSweeney 4de186e18a tests: Activate passing test 2023-10-21 11:41:57 -07:00
Lord-McSweeney 18fb1cd6d1 avm2: Fix Vector call handler error 2023-10-21 11:41:57 -07:00
Lord-McSweeney 0c6a0e80af avm2: Add class call handlers for Boolean, Number, and (u)int 2023-10-21 11:41:57 -07:00
Lord-McSweeney 043f7cdea7 chore: appease clippy 2023-10-21 11:41:57 -07:00
Lord-McSweeney 901d84b2cf avm2: Fix defining const slots on global object 2023-10-21 11:41:57 -07:00
Lord-McSweeney 18c53694cb avm2: Implement Error 1070 2023-10-21 11:41:57 -07:00
Lord-McSweeney b1056311f0 avm2: Implement Error 1112 2023-10-21 11:41:57 -07:00
Lord-McSweeney 5d2d8e080a avm2: Pass around Mutation instead of Activation in some places 2023-10-21 11:41:57 -07:00
Aaron Hill 5d4e851a6e avm2: Throw ArgumentError when calling function with wrong arg count
Some SWFs rely on catching the error.

In order to reproduce Flash's error messages, we now store a `QName`
in `FunctionObject`, which is set when we make a bound method.
2023-10-21 00:18:50 -04:00
Crowdin Bot 94174b30fe chore: Update translations from Crowdin 2023-10-20 21:10:35 +02:00
sleepycatcoding c87ac6f5f5 avm2: Replace culling panic messages with stub messages
A stub message is good enough.
2023-10-20 20:45:45 +02:00
Nathan Adams 9758bf84c0 web: Exclude a bunch of internal api from the public api (including removing them from documentation) 2023-10-20 20:05:02 +02:00
Nathan Adams 14648ef0d5 web: make loadRuffle() return an instance, not a constructor 2023-10-20 20:05:02 +02:00
Nathan Adams 307f9bc820 web: Rename lastLoaded to nativeConstructor 2023-10-20 20:05:02 +02:00
Nathan Adams a9db2584c8 web: Make loadRuffle take in BaseLoadOptions, it doesn't need more complex than that 2023-10-20 20:05:02 +02:00
Nathan Adams feacbdc118 core: <font> tag in text should reset the style to Regular 2023-10-20 12:41:15 +02:00
Nathan Adams b2a43cb1f7 core: Add style to edittext debug UI 2023-10-20 12:41:15 +02:00
Nathan Adams 64385efe48 core: Use correct embedded font fallback order + tests 2023-10-20 12:41:15 +02:00
sleepycatcoding 8b5b135a2d avm2: Do not panic in XMLList call handler 2023-10-19 20:52:33 +02:00
sleepycatcoding 8021efaabc avm2: Do not panic in XML call handler
This panic occurred when the call handler was passed zero arguments.
2023-10-19 20:52:33 +02:00
sleepycatcoding 5da09c137e avm2: Implement QName call handler 2023-10-19 11:46:31 +02:00
Aaron Hill fd4d6921d8 avm2: Don't stop root movie clip, even if it doesn't extend `MovieClip`
Normally, Flash Player will ignores frames for a movie clip with
a symbol class that doesn't extend `MovieClip` (e.g. it extends
`Sprite`). However, the root movie appears to have frame run
unconditionally, even if it only extends `Sprite`. This can
be observed by adding a Graphics child in the second frame only -
the child will flicker in and out as the player switches between
frames, but only for the root movie clip.

Seedling relies on this behavior - it has `DoAbc2` tags in the second
frame, and has a main `Preloader` class that extends `Sprite`.
2023-10-18 09:28:50 -04:00
Crowdin Bot e6f9796094 chore: Update translations from Crowdin 2023-10-17 23:31:22 +02:00
TÖRÖK Attila 627e8c8063 core: Switch dasp from a git revision to v0.11.0 2023-10-17 21:31:18 +02:00
Adrian Wielgosik b02038bcd2 avm1: Add a test for .childNodes edge cases 2023-10-16 11:25:48 +02:00
Adrian Wielgosik a8ea913bf6 avm1: Store childNodes on the node itself 2023-10-16 11:25:48 +02:00
renovate[bot] b427940431 fix(deps): update rust dependencies 2023-10-16 09:51:22 +02:00
TÖRÖK Attila 0a9be1592c chore: Run `cargo update` 2023-10-16 00:03:37 +02:00
TÖRÖK Attila 6c5187621d build: Switch back to the v0.17 branch in the main wgpu repo 2023-10-16 00:03:37 +02:00
TÖRÖK Attila 9506a66803 nit: Clean up Cargo.toml files slightly (remove unnecessary `version =` maps) 2023-10-15 22:39:18 +02:00
Crowdin Bot 0127c98fdf chore: Update translations from Crowdin 2023-10-15 19:17:00 +02:00
Nathan Adams 5e3bd488f1 web: Make jpegxr optional on web but enabled by default by CI 2023-10-15 18:06:15 +02:00
Nathan Adams d2541a7ff0 core: Rename Library::load_device_font to Library::get_or_load_device_font 2023-10-15 14:09:21 +02:00
Nathan Adams e768140a1f core: Cache the result of Library::default_font 2023-10-15 14:09:21 +02:00
Nathan Adams ec21ad8658 core: Add default_font feature which enables the fallback font 2023-10-15 14:09:21 +02:00
Nathan Adams 74a7ab5afe core: Implement device font lookup, and multiple default device fonts 2023-10-15 14:09:21 +02:00
Nathan Adams 909d33e12e core: Inline Player::load_device_font in Font tests, it's just testing one specific font 2023-10-15 14:09:21 +02:00
Nathan Adams 69c0c7cc6a ci: Don't run image tests on macOS 2023-10-15 13:51:50 +02:00
sleepycatcoding c170c8561b web: rudimentary documentation for JS API 2023-10-15 12:00:41 +02:00
sleepycatcoding 1bfcc0a670 web: Rename wsProxy config option to socketProxy 2023-10-15 12:00:41 +02:00
sleepycatcoding d3765027f0 web: Use gloo_net instead of manually using web_sys
This relieves some headaches with on connect callback and spawning of the
sending async task, since some SWFs like to send data before the connect event
is called.
2023-10-15 12:00:41 +02:00
sleepycatcoding a067e9a5e8 web: Add wsProxy config option 2023-10-15 12:00:41 +02:00
sleepycatcoding e2cfdcc2e1 web: Close WebSocket if receiver dropped 2023-10-15 12:00:41 +02:00
sleepycatcoding 5406b9f95e web: Experimental WebSocket based backend for Sockets
This is currently untested.
2023-10-15 12:00:41 +02:00
Lord-McSweeney 93aa3a493b avm2: Add back log_warn 2023-10-13 20:22:00 +02:00
Lord-McSweeney acecaabd0e tests: Activate newly passing tests 2023-10-13 20:22:00 +02:00
Lord-McSweeney 4561fd3631 avm2: Move top-level functions and __ruffle__ stub functions to ActionScript 2023-10-13 20:22:00 +02:00
Crowdin Bot ff2814c84f chore: Update translations from Crowdin 2023-10-12 23:13:54 +02:00
Crowdin Bot 2422793d1b chore: Update translations from Crowdin 2023-10-11 13:29:12 -04:00
David Wendt cf3c594209 docs: Correct documentation of what `execute_seek` does 2023-10-10 18:49:09 -06:00