Mike Welsh
ae9be98821
web: Disable context menu from touch events
...
Once a touch event is seen, completely disable the context menu to
prevent a long press from triggering the context menu.
Fixes #1972 .
2021-04-12 16:28:43 -07:00
relrelb
792519a725
demo: Improvements
2021-04-11 21:49:18 -07:00
relrelb
7fbae7c809
web: Appease ESLint
2021-04-11 15:04:16 -07:00
relrelb
26932c59bb
extension: Remove util.js
2021-04-11 15:04:16 -07:00
relrelb
9e93b06d77
web: Refactor extension lv0.js and index.js
2021-04-11 15:04:16 -07:00
Moulins
f9bbe96812
core: Remove extra Option/Results from XmlNode getters
...
This removes some special cases and simplifies the code.
2021-04-11 14:16:48 -07:00
Moulins
ae1a01d181
avm1: Allow XMLNode reparenting ( closes #3962 )
...
`XMLNode.{appendChild, insertNode}` can now be used to move
child nodes from a parent to another.
There are two special cases:
- if the node is already a child of the destination, nothing happens
- if moving the node would create a cycle, nothing happens
2021-04-11 14:16:48 -07:00
relrelb
20d6fcc128
chore: Remove unnecessary type annotations
2021-04-10 18:39:16 -07:00
relrelb
3dc5b34706
web: Remove unused functions from util.js
...
As they were replaced with corresponding functions in utils.js.
The end goal is to gradually deprecate util.js, and then remove it.
2021-04-10 17:57:11 -07:00
relrelb
7b5d0b4359
web: Refactor extension settings page
2021-04-10 17:57:11 -07:00
relrelb
304d618f27
web: Refactor extension popup
...
This currently breaks the options page, which will be fixed in a
follow-up commit.
2021-04-10 17:57:11 -07:00
relrelb
ee8b24b6fc
web: Add common.css
2021-04-10 17:57:11 -07:00
relrelb
6eb5a95705
web: Add common.js
2021-04-10 17:57:11 -07:00
relrelb
2c2983236e
web: Add utils.js
2021-04-10 17:57:11 -07:00
relrelb
51d02fb7f7
web: Add packages/extension/.gitignore
2021-04-10 17:38:39 -07:00
relrelb
47859af86b
web: Move exclusive dependencies to extension
2021-04-10 17:38:39 -07:00
relrelb
c6cd22258f
web: Refactor extension build tools
2021-04-10 17:38:39 -07:00
Adrian Wielgosik
35c127b58c
canvas: Update_texture should update in-place, not insert
2021-04-10 14:26:33 -07:00
Mike Welsh
11f40384da
tests: Add test for loading into _root
2021-04-10 13:48:05 -07:00
Mike Welsh
aa0707411c
avm1: Update movie parameters when loading into _root/_level0
...
The movie framerate and dimensions should be changed when a movie
is loaded into _root or level 0.
2021-04-10 13:48:05 -07:00
dependabot-preview[bot]
5739992f6e
build(deps): bump futures from 0.3.13 to 0.3.14
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.13 to 0.3.14.
- [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/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-10 13:27:27 -07:00
David Wendt
7a781179aa
core: Move all of the remaining AVM2 object allocation and/or construction into the `construct_frame` step.
2021-04-09 22:24:22 -07:00
David Wendt
dc5b30e460
core: Remove "constructor ran" flag now that we can handle that with a local bool
2021-04-09 22:24:22 -07:00
David Wendt
27d09084fb
core: Use the library's AVM type to determine how to name the root.
...
We cannot check it's constructed AVM value anymore because it is now named before construction.
2021-04-09 22:24:22 -07:00
David Wendt
ebc5c3dd64
avm2: Ensure that objects are only *ever* constructed at frame construction time.
...
This ensures that root movie classes see their children in their constructor.
2021-04-09 22:24:22 -07:00
desuwa
e8de3a5a20
tests: Add tests for `MovieClip.hitTest()` with shapeflag and masks.
2021-04-09 22:11:07 -07:00
desuwa
4f90b9d161
avm1: Support masks when mouse-picking.
2021-04-09 22:11:07 -07:00
relrelb
f8b589fc24
core: Fix panic in remove_invalid_jpeg_data
...
`data` could be shorter than 4 bytes.
2021-04-09 14:47:19 -07:00
Chris Midgley
aab3ff781d
web: use customElements.get over try-catch
2021-04-09 14:37:09 -07:00
Chris Midgley
a171883d39
web: check for window.customElements before entering loop
2021-04-09 14:37:09 -07:00
Chris Midgley
2e42942058
web: try a limited number of times defining a custom element
2021-04-09 14:37:09 -07:00
Chris Midgley
20480ef6d8
web: crash out of infinite loop if not NotSupportedError
2021-04-09 14:37:09 -07:00
relrelb
76cc81a2d0
desktop: Cleanup Cargo.toml
...
Remove some unused dependencies, and the redundant version specifier
of dasp.
2021-04-09 13:58:28 -07:00
dependabot-preview[bot]
a70941a537
build(deps-dev): bump eslint from 7.22.0 to 7.23.0 in /web
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.22.0 to 7.23.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.22.0...v7.23.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 22:15:48 -07:00
dependabot-preview[bot]
31a8393df2
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.18.0 to 4.21.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.21.0/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 22:15:39 -07:00
dependabot-preview[bot]
ed6fe86e31
build(deps-dev): bump @wdio/cli from 7.2.3 to 7.3.1 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 7.2.3 to 7.3.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.2.3...v7.3.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 12:39:25 -07:00
dependabot-preview[bot]
34637cdd12
build(deps): bump enum-map from 0.6.4 to 1.0.0
...
Bumps [enum-map](https://gitlab.com/KonradBorowski/enum-map ) from 0.6.4 to 1.0.0.
- [Release notes](https://gitlab.com/KonradBorowski/enum-map/tags )
- [Changelog](https://gitlab.com/KonradBorowski/enum-map/blob/master/CHANGELOG.md )
- [Commits](https://gitlab.com/KonradBorowski/enum-map/commits/master )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:53:06 -07:00
dependabot-preview[bot]
f291b674ef
build(deps-dev): bump webpack-cli from 4.5.0 to 4.6.0 in /web
...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli ) from 4.5.0 to 4.6.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.5.0...webpack-cli@4.6.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:50:58 -07:00
dependabot-preview[bot]
8859a90043
build(deps-dev): bump copy-webpack-plugin from 8.0.0 to 8.1.0 in /web
...
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin ) from 8.0.0 to 8.1.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/v8.0.0...v8.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:50:46 -07:00
dependabot-preview[bot]
ba84ffb239
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.18.0 to 4.20.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.20.0/packages/parser )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:50:37 -07:00
dependabot-preview[bot]
b1b40364b6
build(deps-dev): bump ts-loader from 8.0.18 to 8.1.0 in /web
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 8.0.18 to 8.1.0.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases )
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.18...v8.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:50:23 -07:00
dependabot-preview[bot]
afe225bbe7
build(deps): bump cpal from 0.13.2 to 0.13.3
...
Bumps [cpal](https://github.com/rustaudio/cpal ) from 0.13.2 to 0.13.3.
- [Release notes](https://github.com/rustaudio/cpal/releases )
- [Changelog](https://github.com/RustAudio/cpal/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustaudio/cpal/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:42:01 -07:00
dependabot-preview[bot]
54284ac195
build(deps-dev): bump @wdio/local-runner from 7.2.1 to 7.3.0 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 7.2.1 to 7.3.0.
- [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.2.1...v7.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:37:09 -07:00
dependabot-preview[bot]
f32af79186
build(deps-dev): bump webpack from 5.27.1 to 5.30.0 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.27.1 to 5.30.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.27.1...v5.30.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:36:50 -07:00
dependabot-preview[bot]
40aeb26641
build(deps-dev): bump @wdio/sync from 7.2.1 to 7.3.0 in /web
...
Bumps [@wdio/sync](https://github.com/webdriverio/webdriverio ) from 7.2.1 to 7.3.0.
- [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.2.1...v7.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:36:36 -07:00
dependabot-preview[bot]
b01fb106ab
build(deps): bump isahc from 1.2.0 to 1.3.0
...
Bumps [isahc](https://github.com/sagebind/isahc ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/sagebind/isahc/releases )
- [Commits](https://github.com/sagebind/isahc/compare/1.2.0...1.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-08 11:34:53 -07:00
desuwa
755409673b
avm2: Add tests for set_width / set_height setting the scale to non-finite values.
2021-04-07 17:42:28 -06:00
desuwa
3c2d467a5f
avm1: Add tests for set_width / set_height setting the scale to non-finite values.
2021-04-07 17:42:28 -06:00
desuwa
fa1fde7083
core: Ensure the new scale is finite when setting the width / height of display objects.
2021-04-07 17:42:28 -06:00
EmperorBale
1020aa84d6
chore: Simplify response.status() formatting
2021-04-06 16:01:34 -06:00