Nathan Adams
ea7a9758c4
avm1: Fix String.indexOf(undefined)
2020-09-04 11:32:16 -07:00
Nathan Adams
db86cdab79
chore: Workaround for chrome not being found on windows tests
2020-09-04 11:31:39 -07:00
Mike Welsh
86ab300ee8
core: Call post_instantiate on initial empty root ( fix #946 )
...
The `fake_root` did not have an object, which could cause the
player to panic if the SWF was not completely loaded when playing.
Calling `post_instantiate` ensures that this dummy root has an
object.
2020-09-04 11:31:04 -07:00
Mike Welsh
3a813f1f15
tests: Test for #1104
2020-09-03 19:09:48 -07:00
Mike Welsh
5ea06b0ce6
swf: Use Option for more PlaceObject parameters
...
There is a difference between empty/default (change value to default)
and none (don't modify), so make this explicit for some PlaceObject
parameters where it wasn't.
Fixes #1104 .
2020-09-03 19:09:48 -07:00
Mike Welsh
151b13a424
avm1: ExternalInterface properties are read only
2020-09-03 18:17:44 -07:00
Nathan Adams
4de2b7f3a0
web: Ensure exposed callbacks are on the <ruffle-player>
2020-09-03 18:17:44 -07:00
Nathan Adams
91cb597a79
web: Expose ExternalInterface callbacks on the player object, not the canvas
2020-09-03 18:17:44 -07:00
Nathan Adams
5880db43cd
web: Respect allowScriptAccess, which defaults to false for streaming or 'sameDomain' for objects
2020-09-03 18:17:44 -07:00
Nathan Adams
b5531a48d0
web: Allow reentrant ExternalInterface callbacks
2020-09-03 18:17:44 -07:00
Nathan Adams
a49e8d8587
web: Implement two-way communication with ExternalInterface
2020-09-03 18:17:44 -07:00
Nathan Adams
687c912067
core: Allow for reentry from ExternalInterface methods
2020-09-03 18:17:44 -07:00
Nathan Adams
32de953822
core: Allow passing arguments and returning values to/from ExternalInterface
2020-09-03 18:17:44 -07:00
Nathan Adams
e1b3ac79d6
core: Add ability to call out to ExternalInterfaceProviders
2020-09-03 18:17:44 -07:00
Nathan Adams
502ea98ed4
core: Add ability to call in to ExternalInterface callbacks from outside of the player (+ test)
2020-09-03 18:17:44 -07:00
Nathan Adams
169c61bf96
tests: Added ability for tests to have a before_start and before_end, and added basic ExternalInterface test that uses it
2020-09-03 18:17:44 -07:00
Nathan Adams
3784f411b4
core: Add ExternalInterface::addCallback
2020-09-03 18:17:44 -07:00
Nathan Adams
b66e9f8d16
avm1: Add ExternalInterface with only 'available' property right now
2020-09-03 18:17:44 -07:00
Nathan Adams
8f11141426
core: Add initial ExternalInterface structs
2020-09-03 18:17:44 -07:00
dependabot-preview[bot]
8d74b031e4
build(deps): [security] bump bl from 4.0.2 to 4.0.3 in /web
...
Bumps [bl](https://github.com/rvagg/bl ) from 4.0.2 to 4.0.3. **This update includes a security fix.**
- [Release notes](https://github.com/rvagg/bl/releases )
- [Commits](https://github.com/rvagg/bl/compare/v4.0.2...v4.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-03 17:31:47 -07:00
Nathan Adams
c5ac707fb5
avm1: Iterating xmlnode attributes should list every attribute
2020-09-03 17:03:43 -07:00
Nathan Adams
bcb64b9a62
avm1: Fix calling Function() as a function - fixes #1074
2020-09-03 17:01:20 -07:00
Nathan Adams
40cdb84656
tests: Add test for avm1 Function(foo)
2020-09-03 17:01:20 -07:00
Mike Welsh
54520a040f
chore: Bump chromedriver to 85.0.0
2020-09-03 15:34:18 -07:00
dependabot-preview[bot]
6876cb220a
build(deps): bump chrono from 0.4.13 to 0.4.15
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.13 to 0.4.15.
- [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.13...v0.4.15 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-03 11:10:06 -07:00
Mike Welsh
ce2b360ab7
core: Provide default impl for DisplayObject:hit_test_bounds
2020-09-02 17:51:55 -07:00
Mike Welsh
b0c9795cad
core: Graphic::from_swf_tag takes ownership of Shape
2020-09-02 17:51:55 -07:00
Mike Welsh
f2f70cc882
core: Mouse picking for buttons uses shape hit tests
2020-09-02 17:51:55 -07:00
Mike Welsh
d7a186b2cd
avm1: Implement shape hit testing
2020-09-02 17:51:55 -07:00
Mike Welsh
2da3c0d319
tests: Add hitTest shapeflag test
2020-09-02 17:51:55 -07:00
Nathan Adams
ec407a9514
avm1: Don't blanket impl From<i64> for Value, convert it explicitly where we know it's okay
2020-09-02 17:12:31 -07:00
Nathan Adams
0b5713557b
desktop: Implement LocaleBackend for desktop
2020-09-02 17:12:31 -07:00
Nathan Adams
43f5506418
web: Implement LocaleBackend for web
2020-09-02 17:12:31 -07:00
Nathan Adams
f50b29151c
avm1: If a NaN is provided to new Date(timestamp), fail immediately
2020-09-02 17:12:31 -07:00
Nathan Adams
9dfc20e1ba
avm1: Implement Date.UTC
2020-09-02 17:12:31 -07:00
Nathan Adams
86eb6f2e50
avm1: Implement Date - #249
2020-09-02 17:12:31 -07:00
Nathan Adams
3d30ec67e2
test: Add more cases to registerClass tests
2020-09-02 15:18:59 -07:00
Nathan Adams
2178beec87
core: When constructing objects for DisplayObjects, make sure frames are run at the right moment
2020-09-02 15:18:59 -07:00
dependabot-preview[bot]
2bc70751e2
build(deps-dev): bump eslint from 7.7.0 to 7.8.1 in /web
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.7.0 to 7.8.1.
- [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.7.0...v7.8.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 13:45:12 -07:00
Mike Welsh
537cca7c38
tests: Add test for #1086
2020-09-02 13:25:53 -07:00
Mike Welsh
bc08971066
core: Return version from MovieClip::swf_version ( fix #1086 )
...
MovieClip was not returning the proper SWF version, causing it to
default to the newest SWF version in some cases when it shouldn't.
2020-09-02 13:25:53 -07:00
dependabot-preview[bot]
f7bd1b10ab
build(deps-dev): bump wdio-chromedriver-service in /web
...
Bumps [wdio-chromedriver-service](https://github.com/atti187/wdio-chromedriver-service ) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/atti187/wdio-chromedriver-service/releases )
- [Commits](https://github.com/atti187/wdio-chromedriver-service/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 13:00:55 -07:00
dependabot-preview[bot]
03dcdcd494
build(deps): bump indexmap from 1.5.1 to 1.5.2
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Commits](https://github.com/bluss/indexmap/compare/1.5.1...1.5.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 12:39:18 -07:00
dependabot-preview[bot]
53fa535a06
build(deps-dev): bump @wdio/sync from 6.4.0 to 6.4.5 in /web
...
Bumps [@wdio/sync](https://github.com/webdriverio/webdriverio ) from 6.4.0 to 6.4.5.
- [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.4.0...v6.4.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 12:18:47 -07:00
dependabot-preview[bot]
c908dc1f5e
build(deps-dev): bump @wdio/cli from 6.4.2 to 6.4.5 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.4.2 to 6.4.5.
- [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.4.2...v6.4.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 12:18:34 -07:00
dependabot-preview[bot]
76be3d4efd
build(deps-dev): bump @wdio/local-runner from 6.4.2 to 6.4.5 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 6.4.2 to 6.4.5.
- [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.4.2...v6.4.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 12:18:20 -07:00
dependabot-preview[bot]
a82d4bb043
build(deps-dev): bump copy-webpack-plugin from 6.0.3 to 6.1.0 in /web
...
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin ) from 6.0.3 to 6.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/v6.0.3...v6.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 12:11:37 -07:00
dependabot-preview[bot]
e2069357ad
build(deps-dev): bump html-webpack-plugin from 4.3.0 to 4.4.1 in /web
...
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin ) from 4.3.0 to 4.4.1.
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases )
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v4.3.0...v4.4.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 12:09:28 -07:00
dependabot-preview[bot]
97968ab0a0
build(deps): bump image from 0.23.8 to 0.23.9
...
Bumps [image](https://github.com/image-rs/image ) from 0.23.8 to 0.23.9.
- [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.8...v0.23.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 12:08:51 -07:00
dependabot-preview[bot]
1daad30871
build(deps-dev): bump mocha from 8.1.2 to 8.1.3 in /web
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 8.1.2 to 8.1.3.
- [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.1.2...v8.1.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-02 12:06:53 -07:00