Mike Welsh
bd144194c3
tests: Add test for bool values in SWFv4
2022-04-10 20:03:39 -07:00
Toad06
e2528b04a7
avm1: Coerce booleans to `"1"` or `"0"` in SWFv4
2022-04-10 20:03:39 -07:00
Daniel Jacobs
d3118b5e23
web: Youtube objects on Firefox without data attribute don't work with the rewrite by default
2022-04-10 19:25:26 -07:00
Daniel Jacobs
1d4a2fd5c6
web: Make notreallyyoutube.com use Ruffle
2022-04-10 19:25:26 -07:00
Daniel Jacobs
7cae84b354
tests: Add YouTube Flash embed/object tests
2022-04-10 19:25:26 -07:00
Daniel Jacobs
958b4e7291
web: Workaround mixed-content issues for YouTube Flash embeds
2022-04-10 19:25:26 -07:00
Daniel Jacobs
907b59222a
web: Don't polyfill YouTube Flash embeds
2022-04-10 19:25:26 -07:00
Mike Welsh
3d4d7a0ab5
tests: Add test for division in SWFv4
2022-04-09 23:17:39 -07:00
Toad06
b221485288
avm1: Fix `Action::Divide` in SWFv4
2022-04-09 23:17:39 -07:00
Mike Welsh
91346f5fad
avm1: Format floating-point numbers
...
Co-authored-by: Toad06 <gd.productions@laposte.net>
2022-04-09 22:40:59 -07:00
Mike Welsh
478f970fc8
chore: Appease clippy
2022-04-09 18:23:51 -07:00
Aaron Hill
d7532ae654
avm2: Add stubs for `BitmapFilter`, `GlowFilter`, and `DisplayObject.filters`
...
This gets 'Rolling Hero' further in the startup process,
since it just tries to set a filter on an object.
2022-04-08 16:53:16 -07:00
relrelb
66492441f1
desktop: De-duplicate file reading code
...
Unify the sandboxed and non-sandboxed cases.
2022-04-08 16:51:59 -07:00
relrelb
ad42b9908f
xml: Refactor `XmlNode` creation methods
...
Unify the previous 3 creation methods to a single `XmlNode::new`.
This allows supporting arbitrary `nodeType` values passed to the
`XMLNode` constructor.
2022-04-08 16:34:57 -07:00
relrelb
7497fb7008
core: Change `Player::set_root_movie` to accept a `SwfMovie`
...
Move the `Arc::new` to within the function.
2022-04-08 15:16:25 -07:00
relrelb
6d7edd1854
web: Use `Uint8Array::to_vec()` over `Uint8Array::copy_to()`
...
It's shorter and should be more efficient (allocates an uninitialized
buffer instead of a zeroed one).
2022-04-09 00:27:16 +03:00
Toad06
12737b8431
avm1: Fix `Number(String | Object)` in SWFv4
2022-04-08 10:41:21 -07:00
dependabot[bot]
1339d8b93a
build(deps): bump syn from 1.0.90 to 1.0.91
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.90...1.0.91 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 10:40:43 -07:00
dependabot[bot]
860c2e313f
build(deps): bump encoding_rs from 0.8.30 to 0.8.31
...
Bumps [encoding_rs](https://github.com/hsivonen/encoding_rs ) from 0.8.30 to 0.8.31.
- [Release notes](https://github.com/hsivonen/encoding_rs/releases )
- [Commits](https://github.com/hsivonen/encoding_rs/compare/v0.8.30...v0.8.31 )
---
updated-dependencies:
- dependency-name: encoding_rs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 10:40:26 -07:00
relrelb
eeb5eb18f6
web: Bump wasm-bindgen to 0.2.80
...
As usual, also bump its helper crates (`js-sys`, `web-sys` and
`wasm-bindgen-futures`) to the latest versions.
2022-04-08 09:56:23 -07:00
dependabot[bot]
b442fd040f
build(deps-dev): bump chromedriver from 98.0.0 to 100.0.0 in /web
...
Bumps [chromedriver](https://github.com/giggio/node-chromedriver ) from 98.0.0 to 100.0.0.
- [Release notes](https://github.com/giggio/node-chromedriver/releases )
- [Commits](https://github.com/giggio/node-chromedriver/compare/98.0.0...100.0.0 )
---
updated-dependencies:
- dependency-name: chromedriver
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-06 22:08:08 +03:00
dependabot[bot]
59dee0a531
build(deps): bump embed-resource from 1.7.1 to 1.7.2
...
Bumps [embed-resource](https://github.com/nabijaczleweli/rust-embed-resource ) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/nabijaczleweli/rust-embed-resource/releases )
- [Commits](https://github.com/nabijaczleweli/rust-embed-resource/compare/v1.7.1...v1.7.2 )
---
updated-dependencies:
- dependency-name: embed-resource
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 18:43:51 -07:00
dependabot[bot]
2af8c851e2
build(deps): bump pretty_assertions from 1.2.0 to 1.2.1
...
Bumps [pretty_assertions](https://github.com/colin-kiegel/rust-pretty-assertions ) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/colin-kiegel/rust-pretty-assertions/releases )
- [Changelog](https://github.com/colin-kiegel/rust-pretty-assertions/blob/main/CHANGELOG.md )
- [Commits](https://github.com/colin-kiegel/rust-pretty-assertions/compare/v1.2.0...v1.2.1 )
---
updated-dependencies:
- dependency-name: pretty_assertions
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 18:43:37 -07:00
dependabot[bot]
e456fb3ed6
build(deps): bump jpeg-decoder from 0.2.3 to 0.2.4
...
Bumps [jpeg-decoder](https://github.com/image-rs/jpeg-decoder ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/image-rs/jpeg-decoder/releases )
- [Changelog](https://github.com/image-rs/jpeg-decoder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/image-rs/jpeg-decoder/compare/v0.2.3...v0.2.4 )
---
updated-dependencies:
- dependency-name: jpeg-decoder
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 14:42:32 -07:00
dependabot[bot]
359e687ec9
build(deps): bump clap from 3.1.6 to 3.1.8
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.6 to 3.1.8.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.6...v3.1.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 14:25:14 -07:00
dependabot[bot]
1960fc57c3
build(deps): bump bytemuck from 1.9.0 to 1.9.1
...
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/Lokathor/bytemuck/releases )
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.9.0...v1.9.1 )
---
updated-dependencies:
- dependency-name: bytemuck
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 13:36:47 -07:00
Mike Welsh
6ec3049e02
desktop: Use floats for audio start/endpoints calculation ( fix #6569 )
...
Integer math was used when calculating a sound's start/endpoints,
because it was assumed that the sound sample rate was always an
even divisor of 44100Hz. However, some third party tools can embed
MP3s with other samples rates, such as #6569 which has a 16000Hz
MP3. This could also occur for dynamically loaded MP3s. This
results in the sound starting at an incorrect position.
Use floating point math to ensure the correct position is
caluclated.
Fixes #6569 .
2022-04-03 15:50:43 -07:00
Mike Welsh
0e26fa1191
extension: Allow loading SWFs in frames ( fix #6582 )
...
If a frame directly loaded an SWF, it would not display in Ruffle.
Add `subframe` to the types intercepted by the `onHeaderReceived`
event in the background script so that Ruffle will display the SWF
in the frame.
Fixes #6582 .
2022-04-03 15:17:41 -07:00
Mike Welsh
9687365885
core: Remove morph shape preloading
...
Remove the preload step that would pre-create the shapes for each
morph shape ratio on SWF load. Instead, lazily crate the shapes
when they are needed.
2022-04-03 13:50:09 -07:00
Mike Welsh
b1879f4b99
core: Fix divide-by-zero in Video::seek ( fix #6605 )
2022-04-03 11:33:52 -07:00
Toad06
055e1d4dc1
avm1: Fix `loadVariablesNum` / `Action::GetUrl2`
2022-04-03 10:32:31 -07:00
Toad06
badb91c1db
web: Add `object_double_object_classid` test
2022-04-03 10:15:19 -07:00
Toad06
fdc87267cd
web: Update `object_double_object` test
2022-04-03 10:15:19 -07:00
Toad06
2c79a5e3d8
web: Only polyfill `<object>` with `classid` when it doesn't contain another polyfillable `<object>` tag
2022-04-03 10:15:19 -07:00
Toad06
0aff256c1a
tests: `DefineLocal` also accepts dot and slash paths
2022-04-02 14:30:56 -07:00
Toad06
e93d39fdfe
avm1: `DefineLocal` also accepts dot and slash paths
2022-04-02 14:30:56 -07:00
relrelb
3a5e94dad2
tests: Expand `mcl_loadclip`
...
Test for invalid data loading.
2022-04-02 12:50:43 -07:00
relrelb
c8e7bdbce2
core: Fix loading of unknown data
...
Loading unknown data is not considered an error on Flash; Both
`onLoadProgress` and `onLoadComplete` events are dispatched. But,
`onLoadProgress` reports 0 bytes loaded.
2022-04-02 12:50:43 -07:00
relrelb
e06506c2b9
render: Implement `CMYK32` jpeg pixel format
2022-04-02 01:17:38 +03:00
dependabot[bot]
ef1ce9461d
build(deps-dev): bump ts-node from 10.6.0 to 10.7.0 in /web
...
Bumps [ts-node](https://github.com/TypeStrong/ts-node ) from 10.6.0 to 10.7.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases )
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.6.0...v10.7.0 )
---
updated-dependencies:
- dependency-name: ts-node
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-02 01:02:13 +03:00
dependabot[bot]
0be75d25f8
build(deps-dev): bump eslint from 8.10.0 to 8.12.0 in /web
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.10.0 to 8.12.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.10.0...v8.12.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-02 01:02:03 +03:00
dependabot[bot]
133aa8aa5e
build(deps-dev): bump json5 from 2.2.0 to 2.2.1 in /web
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/master/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.0...v2.2.1 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-02 01:01:44 +03:00
dependabot[bot]
14fa47d89b
build(deps-dev): bump wdio-chromedriver-service in /web
...
Bumps [wdio-chromedriver-service](https://github.com/webdriverio-community/wdio-chromedriver-service ) from 7.2.8 to 7.3.2.
- [Release notes](https://github.com/webdriverio-community/wdio-chromedriver-service/releases )
- [Commits](https://github.com/webdriverio-community/wdio-chromedriver-service/compare/v7.2.8...v7.3.2 )
---
updated-dependencies:
- dependency-name: wdio-chromedriver-service
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-02 01:01:35 +03:00
dependabot[bot]
874337bf10
build(deps-dev): bump @wdio/spec-reporter from 7.16.13 to 7.19.1 in /web
...
Bumps [@wdio/spec-reporter](https://github.com/webdriverio/webdriverio ) from 7.16.13 to 7.19.1.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.16.13...v7.19.1 )
---
updated-dependencies:
- dependency-name: "@wdio/spec-reporter"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 23:58:42 +03:00
dependabot[bot]
ae19a7d2c9
build(deps-dev): bump webpack from 5.69.1 to 5.71.0 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.69.1 to 5.71.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.69.1...v5.71.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 23:58:12 +03:00
dependabot[bot]
08b8b5cfe6
build(deps-dev): bump eslint-config-prettier from 8.3.0 to 8.5.0 in /web
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 8.3.0 to 8.5.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.3.0...v8.5.0 )
---
updated-dependencies:
- dependency-name: eslint-config-prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 23:57:58 +03:00
dependabot[bot]
4a5d570f5e
build(deps-dev): bump @wdio/local-runner from 7.16.16 to 7.19.3 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 7.16.16 to 7.19.3.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.16.16...v7.19.3 )
---
updated-dependencies:
- dependency-name: "@wdio/local-runner"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 23:57:48 +03:00
dependabot[bot]
05b91e09fc
build(deps-dev): bump typedoc from 0.22.12 to 0.22.13 in /web
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.22.12 to 0.22.13.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.12...v0.22.13 )
---
updated-dependencies:
- dependency-name: typedoc
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 23:57:31 +03:00
Aaron Hill
4f23500779
avm2: Implement most of `flash.external.ExternalInterface`
...
This re-uses the logic we have for handling AVM1's `ExternalInterface`.
For now, serialization/deserialization of non-array objects is
left unimplemented.
2022-03-31 22:40:09 -07:00
Mike Welsh
a9aaa0b0de
tests: Add test for Add2 op
2022-03-31 16:57:07 -07:00