Commit Graph

10473 Commits

Author SHA1 Message Date
sleepycatcoding d3e627fb5f core: Clear the read buffer when the connection is closed 2023-08-05 14:42:09 +02:00
sleepycatcoding 358d3e8ede chore: fmt 2023-08-05 14:42:09 +02:00
sleepycatcoding 0a1f645177 tests: Add onData test for XMLSocket 2023-08-05 14:42:09 +02:00
sleepycatcoding 43e1e72258 tests: Add AVM1 XMLSocket test 2023-08-05 14:42:09 +02:00
sleepycatcoding 8293a2db75 avm1: Write null byte when sending out a message 2023-08-05 14:42:09 +02:00
sleepycatcoding e4b7cc2afd avm1: Replace avm_warn! with tracing::warn! 2023-08-05 14:42:09 +02:00
sleepycatcoding 01801980f4 core: Rename some imports to make code more readable 2023-08-05 14:42:09 +02:00
sleepycatcoding 783527fbad chore: Fix clippy warning 2023-08-05 14:42:09 +02:00
sleepycatcoding 87b7af4370 avm1: Use movie domain when null is passed as host 2023-08-05 14:42:09 +02:00
sleepycatcoding 25b1ed7e9c avm1: Implement onData() 2023-08-05 14:42:09 +02:00
sleepycatcoding 2b18a5999b chore: fmt 2023-08-05 14:42:09 +02:00
sleepycatcoding 705042c1ee chore: Fix a warning 2023-08-05 14:42:09 +02:00
sleepycatcoding dccf254281 avm1: Implement some event handlers 2023-08-05 14:42:09 +02:00
sleepycatcoding 78a68f95ea avm1: Implement send() 2023-08-05 14:42:09 +02:00
sleepycatcoding b64c45f797 avm1: Implement connect() 2023-08-05 14:42:09 +02:00
sleepycatcoding 931c355779 avm1: Use Gc instead of GcCell 2023-08-05 14:42:09 +02:00
sleepycatcoding 7237295364 chore: fmt 2023-08-05 14:42:09 +02:00
sleepycatcoding cd92677b2a core: Add SocketKind and use it to separate XMLSocket and Socket 2023-08-05 14:42:09 +02:00
sleepycatcoding 662c7f986d avm1: Implement onData 2023-08-05 14:42:09 +02:00
sleepycatcoding 879750d3e1 avm1: Stub rest of XMLSocket methods 2023-08-05 14:42:09 +02:00
sleepycatcoding 13ce61a00a avm1: Implement close() 2023-08-05 14:42:09 +02:00
sleepycatcoding 9c92cf0c98 avm1: Implement timeout 2023-08-05 14:42:09 +02:00
sleepycatcoding 773168fe10 avm1: Create simple XMLSocket stub 2023-08-05 14:42:09 +02:00
sleepycatcoding 1c0426a747 tests: Expand test case as per review 2023-08-05 14:17:02 +02:00
sleepycatcoding c9c4efe574 avm2: Review remarks 2023-08-05 14:17:02 +02:00
sleepycatcoding e8bc47a569 avm2: Return correct error if Event.clone() returns null 2023-08-05 14:17:02 +02:00
sleepycatcoding 925ed2e82b avm2: Clone event if it has been dispatched before 2023-08-05 14:17:02 +02:00
Lord-McSweeney 76a7c69522 avm2: Use Error #2008 in some places in TextField 2023-08-05 13:42:16 +02:00
Lord-McSweeney 3fbde2076c avm2: Use Error #2004 for flash.crypto::generateRandomBytes 2023-08-05 13:42:16 +02:00
Lord-McSweeney fd04463476 avm2: Use make_error_2008 for set objectEncoding on ByteArray 2023-08-05 13:42:16 +02:00
Lord-McSweeney f753d840b6 avm2: Add errors #2024, #2150, and #3738 2023-08-05 13:42:16 +02:00
Lord-McSweeney 855825b6ac avm2: Create a make_error_1506 function and use it 2023-08-05 13:42:16 +02:00
Lord-McSweeney c39d006a78 avm2: Use correct error #2025 in various places in DisplayObjectContainer 2023-08-05 13:42:16 +02:00
Adrian Wielgosik c41d7d56f0 build: Reduce disk use of reproducible docker builds 2023-08-05 12:07:59 +02:00
relrelb 8031f9dd3a webgl: Apply color transform on gradient records
As described in #10517, Flash Player applies color transforms on
each gradient record, and then blends between those transformed colors.
2023-08-05 10:28:40 +03:00
Adrian Wielgosik f75b36a32a core: Remove lots of uses of derive(Collect) 2023-08-04 21:43:18 +02:00
TÖRÖK Attila 6a975cdc5b render/wgpu: Add WgpuRenderBackend<SwapChainTarget>::recreate_surface(). 2023-08-04 21:04:29 +02:00
Crowdin Bot 98c286e997 chore: Update translations from Crowdin 2023-08-04 17:18:58 +02:00
Nathan Adams fc54c111c3 tests: Port avmplus as3 AMF test 2023-08-04 16:29:27 +02:00
Nathan Adams 5f200dc2a9 avm2: Use correct error in write ops when reading past bounds 2023-08-03 16:28:25 +02:00
Nathan Adams af46301020 avm2: Use correct error in Li ops when reading past bounds 2023-08-03 16:28:25 +02:00
Nathan Adams 3d76953574 avm2: Use correct error when accessing domain memory out of bounds 2023-08-03 16:28:25 +02:00
Nathan Adams c3a283e23d tests: Port avmplus MOPS tests 2023-08-03 16:28:25 +02:00
Moulins ff01444e63 wstr: return correct result for `split_ascii_prefix_bytes(<ascii str>)`
`split_ascii_prefix_bytes(b"abc")` should return `("abc", b"")`, not
`("", b"abc")`

This doesn't affect correctness, but should increase performance of
ASCII `String` -> `WString` conversions.
2023-08-03 00:25:11 +02:00
sleepycatcoding ad5f087baa desktop: Add --no-gui flag 2023-08-02 22:34:25 +02:00
sleepycatcoding f5f5680e3a avm2: Fix an error message 2023-08-02 22:16:16 +02:00
sleepycatcoding 7d61f8f947 avm2: Wrap Socket instead of extending 2023-08-02 22:16:16 +02:00
sleepycatcoding 43ce490c0f chore: fmt 2023-08-02 22:16:16 +02:00
sleepycatcoding 3fd53b8ca1 avm2: Implement connect() special-case 2023-08-02 22:16:16 +02:00
sleepycatcoding 85db727f17 avm2: Implement XMLSocket 2023-08-02 22:16:16 +02:00