David Wendt
69e8a33a8e
Debug event dispatches.
2021-03-03 03:08:01 -08:00
David Wendt
a2d56016cb
avm2: Don't except when dispatching events on unconstructed objects.
2021-03-03 03:08:01 -08:00
David Wendt
50546512fe
core: Add a separate construct step before running display objects.
...
This appears to only be in use for AVM2. Objects placed on a given frame are constructed before anything else happens with it's parent - even it's constructor being called. This involves splitting AVM2 up into a bunch of steps that really don't make sense for AVM1 content. Hence, `construct_frame` is a no-op for AVM1 and pre-running the first frame when instantiated is AVM1 exclusive now.
2021-03-03 03:08:01 -08:00
David Wendt
a91273530f
tests: Display events tests should log construction events
2021-03-03 03:08:01 -08:00
David Wendt
a308b9d4f9
Re-dispatch the added event after post-instantiating an object since the automatic dispatch happens too early
2021-03-03 03:08:01 -08:00
David Wendt
ac6a206257
Fire `exitFrame`, `enterFrame`, and `frameConstructed` events as broadcasts.
2021-03-03 03:08:01 -08:00
David Wendt
d1ffa3254b
Store a list of every constructed event dispatcher so we can broadcast events on them.
2021-03-03 03:08:01 -08:00
David Wendt
731c18ad80
avm2: Issue (or attempt to issue) events for entering, exiting, and constructing, a frame.
2021-03-03 03:08:01 -08:00
David Wendt
2e38caafff
tests: Add further tests for various timeline interaction scenarios and events
2021-03-03 03:08:01 -08:00
David Wendt
3df97d8da2
avm2: Stub `System.gc`.
...
Our current garbage collector design precludes the ability to actually collect garbage during player updates, so this is a no-op.
2021-03-03 03:08:01 -08:00
David Wendt
464f388324
avm2: Unstaged display objects are treated as unrooted.
2021-03-03 03:08:01 -08:00
David Wendt
279f2d0652
core: Re-allow reinsertions into the same parent (but still gate off the extra events it would otherwise use)
2021-03-03 03:08:01 -08:00
David Wendt
cea65f95db
avm2: Dispatch `addedToStage` and `removedFromStage` events
2021-03-03 03:08:01 -08:00
David Wendt
7f78bfa51d
core: Add a utility method to check if a display object is rooted to the current stage
2021-03-03 03:08:01 -08:00
David Wendt
5acaf0bd01
core: `iter_render_list` returns a non-locking iterator and should be documented as such.
2021-03-03 03:08:01 -08:00
David Wendt
094563e28f
tests: Add a (currently failing) test for the execution order of various events in the presence of programmed display tree manipulations.
2021-03-03 03:08:01 -08:00
David Wendt
df5520f3e0
avm2: Dispatch `added` and `removed` events
2021-03-03 03:08:01 -08:00
David Wendt
76ef0d4740
avm2: Event phase should be counted from 1 in `valueOf`.
2021-03-03 03:08:01 -08:00
David Wendt
c4a5c6f4d3
avm2: Constructed events start in phase 2, not 3
2021-03-03 03:08:01 -08:00
David Wendt
4521c2b599
avm2: Manually-constructed movie clips (and their subclasses) should be accessible from the display object tree.
2021-03-03 03:08:01 -08:00
David Wendt
63af38be9a
avm2: Add convenience method for natively-dispatched events.
2021-03-03 03:08:01 -08:00
dependabot-preview[bot]
98abaf4ca2
build(deps): bump image from 0.23.13 to 0.23.14
...
Bumps [image](https://github.com/image-rs/image ) from 0.23.13 to 0.23.14.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.23.13...v0.23.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-02 16:22:31 -08:00
dependabot-preview[bot]
48baf6f76b
build(deps-dev): bump @wdio/cli from 7.0.7 to 7.0.9 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 7.0.7 to 7.0.9.
- [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.0.7...v7.0.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 18:48:20 -08:00
dependabot-preview[bot]
f16244759f
build(deps-dev): bump @wdio/sync from 7.0.7 to 7.0.9 in /web
...
Bumps [@wdio/sync](https://github.com/webdriverio/webdriverio ) from 7.0.7 to 7.0.9.
- [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.0.7...v7.0.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 17:39:53 -08:00
dependabot-preview[bot]
697ab27414
build(deps-dev): bump eslint from 7.20.0 to 7.21.0 in /web
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.20.0 to 7.21.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.20.0...v7.21.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 15:35:58 -08:00
dependabot-preview[bot]
21e4221971
build(deps-dev): bump typescript from 4.1.5 to 4.2.2 in /web
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.1.5 to 4.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.5...v4.2.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 15:34:48 -08:00
dependabot-preview[bot]
e2ba148431
build(deps-dev): bump @typescript-eslint/parser in /web
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.14.2 to 4.15.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.2/packages/parser )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 15:34:31 -08:00
Adrian Wielgosik
14e0980226
avm1: Implement getInstanceAtDepth
2021-03-01 15:31:30 -08:00
dependabot-preview[bot]
9daa6468ee
build(deps-dev): bump @wdio/local-runner from 7.0.7 to 7.0.8 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 7.0.7 to 7.0.8.
- [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.0.7...v7.0.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 15:31:07 -08:00
dependabot-preview[bot]
9ff12a084f
build(deps-dev): bump @typescript-eslint/eslint-plugin in /web
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.15.1 to 4.15.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.2/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 15:30:54 -08:00
dependabot-preview[bot]
cfd1be291b
build(deps-dev): bump mocha from 8.2.1 to 8.3.0 in /web
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 8.2.1 to 8.3.0.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v8.2.1...v8.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 15:15:52 -08:00
Mike Welsh
e7d7e19c24
chore: Bump to wgpu 0.70
2021-02-27 17:52:05 -08:00
Mads Marquart
121ae43d25
swf: Remove unused encoding from avm1::read::Reader
2021-02-27 17:04:42 -08:00
Mads Marquart
66f5c856d7
swf: Make a few functions const
2021-02-27 17:04:42 -08:00
Mads Marquart
1455671cd7
swf: Change read_tag_with_code to take an already parsed tag
2021-02-27 17:04:42 -08:00
Mads Marquart
9243010cc0
swf: Clean up a few imports
2021-02-27 17:04:42 -08:00
Mads Marquart
24780003e7
swf: Deduplicate different read methods
2021-02-27 17:04:42 -08:00
Mads Marquart
dad21d4398
swf: Make avm2 Reader operate directly with byte slices
2021-02-27 17:04:42 -08:00
floogal
73b251d6ec
chore: Update CODE_OF_CONDUCT.md
...
Moved the Rust code of conduct to GitHub, to view without going
to an outside link.
2021-02-27 16:58:32 -08:00
Tempy111
00e1f36984
core: Add missing support for Tab keycode
2021-02-27 16:44:39 -08:00
dependabot-preview[bot]
b2b066063c
build(deps-dev): bump eslint-config-prettier from 7.2.0 to 8.1.0 in /web
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 7.2.0 to 8.1.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/v7.2.0...v8.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-27 16:41:50 -08:00
dependabot-preview[bot]
0fe2178667
build(deps-dev): bump webpack from 5.21.2 to 5.24.2 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.21.2 to 5.24.2.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.21.2...v5.24.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-27 16:41:41 -08:00
Mike Welsh
3099914374
chore: Appease clippy
2021-02-27 16:10:46 -08:00
dependabot-preview[bot]
8500a676cf
build(deps): bump quick-xml from 0.20.0 to 0.22.0
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.20.0 to 0.22.0.
- [Release notes](https://github.com/tafia/quick-xml/releases )
- [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md )
- [Commits](https://github.com/tafia/quick-xml/compare/v0.20.0...v0.22.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-26 11:44:48 -08:00
dependabot-preview[bot]
7927e0f0d6
build(deps-dev): bump source-map-loader from 2.0.0 to 2.0.1 in /web
...
Bumps [source-map-loader](https://github.com/webpack-contrib/source-map-loader ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/webpack-contrib/source-map-loader/releases )
- [Changelog](https://github.com/webpack-contrib/source-map-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/source-map-loader/compare/v2.0.0...v2.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-26 11:41:32 -08:00
dependabot-preview[bot]
091bc30876
build(deps): bump futures from 0.3.12 to 0.3.13
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.12...0.3.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-26 11:40:23 -08:00
dependabot-preview[bot]
1a7a7a7274
build(deps-dev): bump eslint from 7.19.0 to 7.20.0 in /web
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.19.0 to 7.20.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.19.0...v7.20.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-26 11:38:20 -08:00
dependabot-preview[bot]
18ef8a634b
build(deps-dev): bump webpack-cli from 4.3.1 to 4.5.0 in /web
...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli ) from 4.3.1 to 4.5.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases )
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.3.1...webpack-cli@4.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-25 14:38:02 -08:00
dependabot-preview[bot]
31d96d2ae2
build(deps-dev): bump html-webpack-plugin from 5.1.0 to 5.2.0 in /web
...
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin ) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases )
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v5.1.0...v5.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-25 14:37:20 -08:00
dependabot-preview[bot]
2f8b348d2f
build(deps-dev): bump @typescript-eslint/eslint-plugin in /web
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.15.0 to 4.15.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.1/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-25 14:37:02 -08:00