Commit Graph

3672 Commits

Author SHA1 Message Date
David Wendt 584c6c8b11 avm2: Implement `Event.clone` 2020-12-14 16:46:33 -08:00
David Wendt 3d12929914 avm2: Expose `Event.target`, `currentTarget`, and `eventPhase`.
These have no tests because these properties can only be updated by an event broadcaster.
2020-12-14 16:46:33 -08:00
David Wendt 90da20579c avm2: Implement `Event.bubbles`, `cancelable`, and `type`. 2020-12-14 16:46:33 -08:00
David Wendt 58f4470dc5 avm2: Add `Event` class, object type, and native representation 2020-12-14 16:46:33 -08:00
jmckiern 709561a255 avm1: Use ? on set_text_color so errors are raised 2020-12-14 12:45:45 -08:00
jmckiern ec1ff0be3a avm1: Use ? instead of match Ok()'s so errors are raised 2020-12-14 12:45:45 -08:00
jmckiern a09ac58ebd chore: Remove TODO 2020-12-14 12:45:45 -08:00
jmckiern cfd003de7a avm1: Implement TextField.backgroundColor 2020-12-14 12:45:45 -08:00
jmckiern 61e3214d0a avm1: Implement TextField.borderColor 2020-12-14 12:45:45 -08:00
dependabot-preview[bot] 714a04212b 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.9.1 to 4.10.0.
- [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.10.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-14 11:47:23 -08:00
dependabot-preview[bot] 17799da2e0 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.9.1 to 4.10.0.
- [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.10.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-14 11:29:48 -08:00
dependabot-preview[bot] 4ee0911e09 build(deps): bump embed-resource from 1.4.0 to 1.4.1
Bumps [embed-resource](https://github.com/nabijaczleweli/rust-embed-resource) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/nabijaczleweli/rust-embed-resource/releases)
- [Commits](https://github.com/nabijaczleweli/rust-embed-resource/compare/v1.4.0...v1.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-14 11:26:15 -08:00
JMcKiern 63be0455a8
web: Add query string to `Report Bug` link
* web: Add query string to the Report Bug link (closes #1753)
2020-12-14 11:25:10 -08:00
Sam Morrow c4d7b24629 web: Fix cors issues with http (close ruffle-rs#1486) 2020-12-14 05:51:28 -08:00
Mike Welsh 8f34023ad2 docs: Add sponsor 2020-12-14 03:12:58 -08:00
dependabot-preview[bot] fb6e2c7ea7 build(deps-dev): bump @wdio/spec-reporter from 6.8.1 to 6.10.6 in /web
Bumps [@wdio/spec-reporter](https://github.com/webdriverio/webdriverio) from 6.8.1 to 6.10.6.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.8.1...v6.10.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-14 02:55:10 -08:00
dependabot-preview[bot] 4e52cf9eb8 build(deps-dev): bump eslint-plugin-prettier from 3.2.0 to 3.3.0 in /web
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.2.0...v3.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-13 18:09:57 -08:00
Toad06 dab96ba01b tests: Don't get fooled by GET parameters that look like a file extension 2020-12-13 15:38:18 -08:00
Toad06 d55f3959b9 web: Detect file extension using the `URL()` constructor 2020-12-13 15:38:18 -08:00
jmckiern 19307129c0 docs: Add `tests` to list of commit prefixes 2020-12-13 15:35:37 -08:00
dependabot-preview[bot] 35ad35939d build(deps-dev): bump chromedriver from 87.0.2 to 87.0.4 in /web
Bumps [chromedriver](https://github.com/giggio/node-chromedriver) from 87.0.2 to 87.0.4.
- [Release notes](https://github.com/giggio/node-chromedriver/releases)
- [Commits](https://github.com/giggio/node-chromedriver/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-13 15:35:02 -08:00
Zeh Fernando 8e9de8e16b core: Implement MovieClip._lockroot in avm1
This also enables the (previously ignored) _lockroot tests.
2020-12-13 15:34:42 -08:00
dependabot-preview[bot] 821a294066 build(deps-dev): bump webpack from 5.10.0 to 5.10.1 in /web
Bumps [webpack](https://github.com/webpack/webpack) from 5.10.0 to 5.10.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.10.0...v5.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-13 15:27:05 -08:00
dependabot-preview[bot] 55fc429d47 build(deps-dev): bump @wdio/local-runner from 6.10.7 to 6.10.10 in /web
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio) from 6.10.7 to 6.10.10.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.10.7...v6.10.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-13 15:26:33 -08:00
dependabot-preview[bot] 43a08f0ea2 build(deps-dev): bump @wdio/mocha-framework in /web
Bumps [@wdio/mocha-framework](https://github.com/webdriverio/webdriverio) from 6.10.6 to 6.10.10.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.10.6...v6.10.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-13 15:26:21 -08:00
dependabot-preview[bot] c87c0c2a99 build(deps-dev): bump @wdio/sync from 6.10.7 to 6.10.10 in /web
Bumps [@wdio/sync](https://github.com/webdriverio/webdriverio) from 6.10.7 to 6.10.10.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.10.7...v6.10.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-13 15:25:59 -08:00
dependabot-preview[bot] a6ebdc3667 build(deps-dev): bump @wdio/static-server-service in /web
Bumps [@wdio/static-server-service](https://github.com/webdriverio/webdriverio) from 6.10.4 to 6.10.10.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.10.4...v6.10.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-13 15:25:34 -08:00
dependabot-preview[bot] 4358e52af7 build(deps-dev): bump @wdio/sync from 6.10.4 to 6.10.7 in /web
Bumps [@wdio/sync](https://github.com/webdriverio/webdriverio) from 6.10.4 to 6.10.7.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.10.4...v6.10.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-11 12:19:48 -08:00
dependabot-preview[bot] d3d2deccf4 build(deps-dev): bump ts-loader from 8.0.11 to 8.0.12 in /web
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.11 to 8.0.12.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.11...v8.0.12)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-11 11:38:34 -08:00
dependabot-preview[bot] 78143413d0 build(deps-dev): bump @wdio/local-runner from 6.10.5 to 6.10.7 in /web
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio) from 6.10.5 to 6.10.7.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.10.5...v6.10.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-11 11:36:09 -08:00
dependabot-preview[bot] e2212f0104 build(deps-dev): bump @wdio/mocha-framework in /web
Bumps [@wdio/mocha-framework](https://github.com/webdriverio/webdriverio) from 6.10.4 to 6.10.6.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.10.4...v6.10.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-11 11:35:54 -08:00
relrelb e5ace596ce chore: Update some dependencies
* js-sys and wasm-bindgen are now the currently latest releases.
* wgpu is not updated to the current master because it breaks
things up.
2020-12-11 11:28:33 -08:00
Mike Welsh 7e35d4a4fc web: Ensure parent window/frame gets focus on click (fix #1704)
Call window.focus() on mouse down to ensure the player receives
subsequent key/mouse events when it is inside a frame.
2020-12-10 19:20:00 -08:00
Toad06 5d55a60924
web: Avoid double polyfilling object-inside-object
* web: Avoid double polyfilling object-inside-object
* tests: Add polyfill test for object inside object
2020-12-10 13:36:40 -08:00
dependabot-preview[bot] ffc9f07711 build(deps): [security] bump ini from 1.3.5 to 1.3.7 in /web
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. **This update includes a security fix.**
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-10 13:28:29 -08:00
dependabot-preview[bot] f394e4d9ec build(deps): bump winit from 0.23.0 to 0.24.0
Bumps [winit](https://github.com/rust-windowing/winit) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/rust-windowing/winit/releases)
- [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-windowing/winit/compare/v0.23.0...v0.24.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-10 13:24:55 -08:00
dependabot-preview[bot] f82e126c75 build(deps-dev): bump copy-webpack-plugin from 6.4.0 to 7.0.0 in /web
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 6.4.0 to 7.0.0.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.4.0...v7.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-10 12:51:29 -08:00
Mike Welsh cec0ca74e1 chore: Fix swf doctests working directory
Rust 12-09 nightly changed the working dir of doctests to be the
workspace root instead of the subcrate root. This broke the
doctests for swf. Now do some setup to ensure the same working
directory on both stable and nightly.

cc https://github.com/rust-lang/cargo/pull/8954
2020-12-10 12:25:02 -08:00
Toad06 83fcd7ba40 tests: Checks that iframe correctly fires its onload event 2020-12-09 17:01:20 -08:00
Toad06 07d3e7d81b web: Use nullish coalescing operator 2020-12-09 17:01:20 -08:00
Toad06 4ed2470068 web: Fix possible issue with iframe elements no longer existing in the DOM 2020-12-09 17:01:20 -08:00
Toad06 1e61093e32 web: Fix issues with iframe polyfill 2020-12-09 17:01:20 -08:00
Mike Welsh ee74197a00 avm1: Move TextField properties to prototype
Remove TextField::attach_virtual properties, as properties are
on the prototype, not the textfield itself.

Use the `with_text_field_props` macro for these properties.

Also remove `get_` prefix from most getters to match naming
conventions.
2020-12-09 14:45:20 -08:00
David Wendt ed4d51dfc1 avm1: Don't panic if we encounter an invalid display object hierarchy for AS2. Instead, yield a runtime error. 2020-12-09 14:00:06 -08:00
David Wendt afd033898c avm2: Implement `hitTestObject` 2020-12-09 14:00:06 -08:00
David Wendt d9172780c5 avm2: Implement `hitTestPoint`. 2020-12-09 14:00:06 -08:00
David Wendt b18b87e566 avm2: Implement `mouseX` and `mouseY`.
Note that we cannot write a reproducible test for this.
2020-12-09 14:00:06 -08:00
David Wendt 06ba2f898a avm2: Implement `visible`. 2020-12-09 14:00:06 -08:00
David Wendt d489aca377 avm2: Expose `DisplayObject.root` 2020-12-09 14:00:06 -08:00
David Wendt 4b9deb7106 core: Don't crash on rootless display objects.
Instead, crash if AVM1 ever sees a rootless display object.
2020-12-09 14:00:06 -08:00