relrelb
98c0cab6aa
ci: Check documentation
...
In order to prevent future warnings on malformed documentation comments.
2022-08-10 09:20:53 +03:00
dowgird
b6fd670410
address review comments
2022-08-10 01:34:08 +02:00
dowgird
38f50f83ef
removed a now unused function, added a test
2022-08-10 01:34:08 +02:00
dowgird
e5b0937461
changed catch_scope() back to taking MutationContext
2022-08-10 01:34:08 +02:00
dowgird
5ccc981357
Used install_instance_slots() instead of adding slots manually
2022-08-10 01:34:08 +02:00
dowgird
fb0a984415
Rebase and fix clippy warnings.
2022-08-10 01:34:08 +02:00
dowgird
31ed697acd
Fixes from review
2022-08-10 01:34:08 +02:00
dowgird
26b41199fb
avm2: Implemented newcatch and basic exception handling
2022-08-10 01:34:08 +02:00
Adrian Wielgosik
54f9824ce0
avm1: Update drag in stopDrag() in case it wasn't called before
2022-08-10 00:20:09 +02:00
Nathan Adams
07da3f6c0f
exporter: Add --skip-unsupported to skip (and not crash) avm2 movies
2022-08-09 23:19:42 +02:00
Nathan Adams
6816d82394
exporter: Don't stop after one bad swf read
2022-08-09 23:19:42 +02:00
Nathan Adams
42e23a48d7
exporter: Use rayon to export files in parallel
2022-08-09 23:19:42 +02:00
Nathan Adams
4499a11c61
exporter: Use anyhow to enforce better error messages & Sendability
2022-08-09 23:19:42 +02:00
Nathan Adams
3d235ac58f
wgpu: Make descriptors an Arc
2022-08-09 23:19:42 +02:00
Nathan Adams
08de63afb2
wgpu: Store Uniforms Buffer outside of Descriptor, so Descriptor can be immutable once again
2022-08-09 23:19:42 +02:00
Nathan Adams
9b33a18c7c
wgpu: Store Globals outside of Descriptor, so Descriptor can be immutable once again
2022-08-09 23:19:42 +02:00
Nathan Adams
6db62106dc
exporter: Catch panics and skip the file
2022-08-09 23:19:42 +02:00
Nathan Adams
8efd69b525
core: Track 'actions since timeout check' globally instead of per Activation
2022-08-09 20:56:18 +03:00
Nathan Adams
fb1ebcb9cc
avm1: loadMovieNum with blank url is an unload, not a load - fixes #7337
2022-08-09 18:53:57 +03:00
Nathan Adams
4b19910791
audio: Avoid panic with supposed MP3s that are too small
2022-08-09 17:59:02 +03:00
dependabot[bot]
f5e3b39371
build(deps): bump serde_json from 1.0.82 to 1.0.83
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.82 to 1.0.83.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.82...v1.0.83 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-09 17:34:20 +03:00
Daniel Jacobs
c5b1cf80d8
chore: Bump chromedriver to 104.0.0
2022-08-09 17:02:56 +03:00
dependabot[bot]
4603e5964e
build(deps): bump serde from 1.0.141 to 1.0.143
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.141 to 1.0.143.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.143 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-09 11:54:47 +03:00
dependabot[bot]
7d31f9dd7a
build(deps): bump chrono from 0.4.19 to 0.4.20
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.19 to 0.4.20.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.19...v0.4.20 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-09 10:26:02 +03:00
dependabot[bot]
24bb244d22
build(deps): bump path-slash from 0.2.0 to 0.2.1
...
Bumps [path-slash](https://github.com/rhysd/path-slash ) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/rhysd/path-slash/releases )
- [Changelog](https://github.com/rhysd/path-slash/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rhysd/path-slash/compare/v0.2.0...v0.2.1 )
---
updated-dependencies:
- dependency-name: path-slash
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-09 09:46:41 +03:00
dependabot[bot]
ab44ff8c13
build(deps): bump syn from 1.0.98 to 1.0.99
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.98...1.0.99 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-09 09:25:48 +03:00
dependabot[bot]
8acb77dc2c
build(deps): bump proc-macro2 from 1.0.42 to 1.0.43
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.42 to 1.0.43.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.42...1.0.43 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-09 08:51:01 +03:00
dependabot[bot]
ed1ebe8fb5
build(deps): bump quote from 1.0.20 to 1.0.21
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.20 to 1.0.21.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.20...1.0.21 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 23:58:43 +02:00
dependabot[bot]
b96adf7e8a
build(deps): bump thiserror from 1.0.31 to 1.0.32
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.31 to 1.0.32.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.31...1.0.32 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 23:34:46 +03:00
TÖRÖK Attila
8306ad08e6
test: Add a test for `flash.geom.Vector3D`
2022-08-08 22:15:09 +03:00
TÖRÖK Attila
5e2804f992
avm2: Implement `flash.geom.Vector3D`
2022-08-08 22:15:09 +03:00
CUB3D
05bfa3770e
chore: Fix warnings with cargo doc
2022-08-08 20:20:18 +03:00
relrelb
761759c4b3
wgpu: Pull out more code to `mask_render_state`
2022-08-07 10:18:48 +03:00
relrelb
e42a6b62e6
core: Require `target` in `NavigatorBackend::navigate_to_url`
...
Make the `target` parameter just a `String` instead of an `Option<String>`.
`None` is not needed as it's totally equivalent to an empty string.
2022-08-06 11:20:03 +03:00
relrelb
ee89010dd9
scanner: Fix update of `indicatif`
...
Use `ProgressStyle::with_template` as demonstrated in `indicatif`'s
examples, alongside some nearby cleanups.
2022-08-06 10:52:42 +03:00
relrelb
c6cd48c184
exporter: Fix update of `indicatif`
...
Use `ProgressStyle::with_template` as demonstrated in `indicatif`'s
examples.
2022-08-06 10:52:42 +03:00
dependabot[bot]
6a4825f68d
build(deps): bump indicatif from 0.16.2 to 0.17.0
...
Bumps [indicatif](https://github.com/console-rs/indicatif ) from 0.16.2 to 0.17.0.
- [Release notes](https://github.com/console-rs/indicatif/releases )
- [Commits](https://github.com/console-rs/indicatif/compare/0.16.2...0.17.0 )
---
updated-dependencies:
- dependency-name: indicatif
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-06 10:52:42 +03:00
Aaron Hill
2f8dde86af
avm2: Include class name in ScriptObject debug ( #7512 )
...
* avm2: Include class name in ScriptObject debug
Currently, the `ScriptObject` debug impl is almost useless -
while you determine if two printed objects are the same
by comparing the pointer value, you'll have no idea what
kind of object it actually is.
This PR now formats the `ScriptObject` output as a struct,
printing a (fake) "class" field containing the class name.
Before/after:
```
[ERROR ruffle_core::avm2::activation] AVM2 error: Cannot coerce Object(ScriptObject(ScriptObject(GcCell(Gc { ptr: 0x55f863936db8 })))) to an QName { ns: Private("Test.as$38"), name: "Second" }
[ERROR ruffle_core::avm2::activation] AVM2 error: Cannot coerce Object(ScriptObject(ScriptObject { class: "Object", ptr: 0x55ee0ad161e0 })) to an QName { ns: Private("Test.as$38"), name: "Second" }
```
Getting access to the class name from a `Debug` impl is tricky:
Developers can (and should be able to) insert logging statements
whereever they want, so any `GcCell` may be mutably borrowed.
Panics in debug impls are extremely frustrating to deal with,
so I've ensured that we only use `try_borrow` at each step.
If any of the attempted borrows fail, we print out an error message
in the "class_name" field, but we're still able to print the
rest of the `ScriptObject`.
Additionally, we have no access to a `MutationContext`, so we
cannot allocate a new `AvmString`. To get around this,
I've created a new method `QName::to_qualified_name_no_mc`,
which uses an `Either` to return a `WString` instead of allocating
an `AvmString`. This is more cumbersome to work with than the
nrmal `QName::to_qualified_name`, so we'll only want to use
it when we have no other choice.
2022-08-04 22:13:00 -07:00
Aaron Hill
2383e6850f
avm2: Continue to process event when a handler produces an error
...
An exception thrown by one event handler shoud not prevent other event
handlers from running on this same event. Some SWFs like Wonderputt
depend on this behavior, as they have buggy event handlers that throw
errors.
2022-08-03 22:29:41 +03:00
Aaron Hill
ad19c29c03
Remove `null` from `getChildByName` for missing child
...
This matches the behavior of Flash - no error is produced.
2022-08-03 21:45:59 +03:00
Daniel Jacobs
992e34764e
web: Fix metadata test by adding uncompressedLength
2022-08-03 09:17:24 +03:00
Daniel Jacobs
7105c1e803
web: Clarify uncompressed length is in bytes in metadata
2022-08-03 09:17:24 +03:00
Daniel Jacobs
ce95f01de3
web: Include uncompressed length of SWF in metadata
2022-08-03 09:17:24 +03:00
relrelb
7040397c3d
web: Fix `sign-addon` upgrade
...
`sign-addon` 5.0.0 switched to ES Modules. Therefore, it no longer
can be `require`d. As a workaround, use `await import` instead.
In the long-term, it might be worth to convert the `sign_xpi.js`
script itself to ES Modules.
2022-08-03 00:44:03 +03:00
dependabot[bot]
039f33228e
build(deps-dev): bump sign-addon from 4.1.0 to 5.0.0 in /web
...
Bumps [sign-addon](https://github.com/mozilla/sign-addon ) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/mozilla/sign-addon/releases )
- [Commits](https://github.com/mozilla/sign-addon/compare/4.1.0...5.0.0 )
---
updated-dependencies:
- dependency-name: sign-addon
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-03 00:44:03 +03:00
dependabot[bot]
dcf6243c47
build(deps): bump rfd from 0.9.1 to 0.10.0
...
Bumps [rfd](https://github.com/PolyMeilex/rfd ) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/PolyMeilex/rfd/releases )
- [Changelog](https://github.com/PolyMeilex/rfd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PolyMeilex/rfd/compare/0.9.1...0.10.0 )
---
updated-dependencies:
- dependency-name: rfd
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-02 23:52:23 +03:00
dependabot[bot]
d0535f4cb8
build(deps): bump clap from 3.2.15 to 3.2.16
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.15 to 3.2.16.
- [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.2.15...v3.2.16 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-02 23:06:07 +03:00
dependabot[bot]
f7f84418f9
build(deps): bump proc-macro2 from 1.0.41 to 1.0.42
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.41 to 1.0.42.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.41...1.0.42 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-02 22:37:35 +03:00
dependabot[bot]
bb96025800
build(deps): bump enum-map from 2.4.0 to 2.4.1
...
Bumps [enum-map](https://github.com/xfix/enum-map ) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/xfix/enum-map/releases )
- [Changelog](https://github.com/xfix/enum-map/blob/master/CHANGELOG.md )
- [Commits](https://github.com/xfix/enum-map/compare/v2.4.0...v2.4.1 )
---
updated-dependencies:
- dependency-name: enum-map
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-02 20:34:41 +03:00
dependabot[bot]
3b7f6976a4
build(deps): bump serde from 1.0.140 to 1.0.141
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.140 to 1.0.141.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-02 19:34:44 +03:00