Adrian Wielgosik
562a205f3d
chore: clippy
2022-02-07 00:49:00 +01:00
Adrian Wielgosik
2c4b260a8c
chore: cargo fmt
2022-02-07 00:49:00 +01:00
Adrian Wielgosik
9059e199e2
avm2: Add tests for class calling
2022-02-07 00:49:00 +01:00
Adrian Wielgosik
c67579e236
avm2: Implement Object()
2022-02-07 00:49:00 +01:00
Adrian Wielgosik
0004b9e58e
avm2: Implement RegExp()
2022-02-07 00:49:00 +01:00
Adrian Wielgosik
c8fe2fcfb2
avm2: Implement Namespace() stub
2022-02-07 00:49:00 +01:00
Adrian Wielgosik
8402f6637b
avm2: Implement Vector.<T>(array_like)
2022-02-07 00:49:00 +01:00
Adrian Wielgosik
db8aa42db9
avm2: Support custom Class() implementations
2022-02-07 00:49:00 +01:00
Fernando Karchiloff
0c853082dd
core: Fix bullet append with box_count check
2022-02-06 20:52:04 +02:00
Fernando Karchiloff
b7273e038c
core: fix bullet append from html
2022-02-06 20:52:04 +02:00
relrelb
d7177b474d
ci: Temporarily avoid npm 8.4
...
Upgrading to npm 8.4 on Windows is currently broken: https://github.com/npm/cli/issues/4341
This was avoided by disabling tests on Windows Node 14 in #6167 .
Re-enable them by staying on npm 8.3 instead.
2022-02-05 14:50:47 +02:00
relrelb
48c43b731e
avm1: Remove unused `is_defined`
2022-02-05 13:43:19 +02:00
dependabot[bot]
0152a6aa34
build(deps-dev): bump typescript from 4.5.4 to 4.5.5 in /web
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.5.4 to 4.5.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.4...v4.5.5 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-02 09:01:19 +02:00
dependabot[bot]
85ce9ebdcb
build(deps-dev): bump mocha from 9.1.3 to 9.2.0 in /web
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 9.1.3 to 9.2.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/v9.1.3...v9.2.0 )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-02 00:08:58 +02:00
dependabot[bot]
390d69e1f7
build(deps-dev): bump webpack from 5.65.0 to 5.68.0 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.65.0 to 5.68.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.65.0...v5.68.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 23:05:16 +02:00
dependabot[bot]
0c715c369f
build(deps-dev): bump sign-addon from 3.9.0 to 3.10.0 in /web
...
Bumps [sign-addon](https://github.com/mozilla/sign-addon ) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/mozilla/sign-addon/releases )
- [Commits](https://github.com/mozilla/sign-addon/compare/3.9.0...3.10.0 )
---
updated-dependencies:
- dependency-name: sign-addon
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 23:05:01 +02:00
dependabot[bot]
e77a57d190
build(deps-dev): bump @wdio/local-runner from 7.16.13 to 7.16.14 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 7.16.13 to 7.16.14.
- [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.16.13...v7.16.14 )
---
updated-dependencies:
- dependency-name: "@wdio/local-runner"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 23:04:33 +02:00
dependabot[bot]
15ef91f905
build(deps-dev): bump webpack-dev-server from 4.7.2 to 4.7.3 in /web
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.7.2 to 4.7.3.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.2...v4.7.3 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 23:04:11 +02:00
dependabot[bot]
3c0f08fb7d
build(deps-dev): bump @types/mocha from 9.0.0 to 9.1.0 in /web
...
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
---
updated-dependencies:
- dependency-name: "@types/mocha"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 23:03:57 +02:00
dependabot[bot]
33ac55402a
build(deps-dev): bump @types/chrome from 0.0.174 to 0.0.177 in /web
...
Bumps [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome ) from 0.0.174 to 0.0.177.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome )
---
updated-dependencies:
- dependency-name: "@types/chrome"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 23:03:41 +02:00
dependabot[bot]
3531abb293
build(deps-dev): bump stylelint from 14.2.0 to 14.3.0 in /web
...
Bumps [stylelint](https://github.com/stylelint/stylelint ) from 14.2.0 to 14.3.0.
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/14.2.0...14.3.0 )
---
updated-dependencies:
- dependency-name: stylelint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 23:03:25 +02:00
dependabot[bot]
f5e1a197d1
build(deps-dev): bump chai from 4.3.4 to 4.3.6 in /web
...
Bumps [chai](https://github.com/chaijs/chai ) from 4.3.4 to 4.3.6.
- [Release notes](https://github.com/chaijs/chai/releases )
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md )
- [Commits](https://github.com/chaijs/chai/compare/v4.3.4...v4.3.6 )
---
updated-dependencies:
- dependency-name: chai
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 23:03:08 +02:00
Toad06
83cc9dc308
avm1: Fire `onReleaseOutside` event even when the button is invisible
2022-01-30 14:08:47 -08:00
Adrian Wielgosik
3ceeef5083
Add `--release` to all `cargo run` usages in README
2022-01-30 13:55:06 -08:00
Mike Welsh
601918a998
core: Fix drawing API stroke rendering order ( fix #3186 )
2022-01-29 20:05:04 -08:00
Mike Welsh
705588a2ec
core: Fix incorrect fill and stroke rendering order ( fix #6129 )
2022-01-29 20:05:04 -08:00
Mike Welsh
b7ebe0bbec
ci: Temporarily disable Windows Node 14 test
...
Test is currently broken because of this issue:
https://github.com/actions/setup-node/issues/411
2022-01-29 15:29:49 -08:00
Mike Welsh
55da3cd7d0
chore: Add .cargo/config.toml for workspace-level lint config
...
Currently it is not directly possible to configure lints for the
entire workspace via TOML, which forced us to repeat `#![allow]`
blocks in each crate.
embark pointed out this workaround to configure lints at the
workspace level via RUSTFLAGS:
https://github.com/EmbarkStudios/rust-ecosystem/issues/22#issuecomment-947011395
Remove the common `#![allow]` blocks and switch to this method for
global lint config.
Temporarily allow `needless_borrow` lint, buggy pending this fix:
https://github.com/rust-lang/rust-clippy/pull/8355
2022-01-29 14:22:44 -08:00
relrelb
1fd1a1e68e
ci: Use `runner.os` over `matrix.os`
...
`runner.os` is a little more descriptive. But unfortunately, it cannot
be used in `job.name`.
2022-01-29 14:19:51 -08:00
relrelb
99b22b24dd
avm1: Remove unused `FunctionObjectData::primitive`
2022-01-29 12:12:39 -08:00
relrelb
a320e3b1d0
chore: Update badges in `README.md`
...
* Improve build status and Discord badges.
* Add npm and AUR badges.
2022-01-28 10:00:27 -08:00
Daniel Jacobs
1e5956c02a
core: Fix get_text_format bullet return value
2022-01-27 22:35:18 -08:00
Toad06
c14569e3d4
web: Add `refresh` method to `navigator.plugins`
2022-01-26 18:53:33 -08:00
Daniel Jacobs
c0880225ff
selfhosted: Use absolute URLs for links in README
2022-01-26 18:51:06 -08:00
TÖRÖK Attila
43b21e5d4d
chore: Bump approx to 0.5.1, remove clippy lint suppressions
2022-01-25 18:34:35 -08:00
Mike Welsh
d5986a7294
desktop: Don't swallow Escape key ( fix #6135 )
2022-01-25 00:22:28 -08:00
nosamu
f23c03129a
extension: URL-encode the SWF URL for the player page
...
When the user clicks the "Open in a new tab" button, the extension's internal `player.html` page opens, with a URL parameter `?url=[the SWF URL]`. Right now, this URL parameter is not properly encoded. This causes a problem when we get to https://github.com/ruffle-rs/ruffle/blob/master/web/packages/extension/src/player.ts#L14 :
> `const swfUrl = url.searchParams.get("url");`
Because the value "url" parameter was not properly encoded, any `&` character in the SWF URL would be interpreted as the start of a *new* parameter, instead of being part of the actual SWF URL. So anything after the first `&` symbol in the SWF URL would be chopped off.
On Itch.io Flash pages such as https://rarykos.itch.io/hug-me-im-cold , the SWF URL contains several important parameters - if they are not included, the server returns 403 Forbidden (it's a type of hotlinking protection). So when the user clicked the "Open in a new tab" button on Itch.io pages, the SWF would refuse to load in the player.
This PR fixes the problem - Itch.io SWFs load when opened in a new tab after my change is applied.
2022-01-24 19:01:11 -08:00
relrelb
809e91d029
demo: Serve on default port
...
The switch to 8081 seems like a leftover from #5250 .
Return to the default 8080.
2022-01-24 13:29:42 -08:00
relrelb
2132f3c9cd
ci: Skip `publish-aur-package` job on forks
...
Move the `if` condition that tests for the Ruffle official repository
to the job-level, so all steps of that job are skipped, rather than
only the publish step itself. This should have a very little effect,
but I just randomly noticed it.
2022-01-24 12:30:03 -08:00
Toad06
da50d44460
core: Fix detection of button events
2022-01-24 11:48:37 -08:00
Mike Welsh
3e9f9741ea
tests: Edit funky_function_calls to test undefined this
...
Test `this` instead of `this == other_this` to verify when it is
indeed an unboxed undefined.
2022-01-24 02:04:57 -08:00
Mike Welsh
354d7f0ce6
avm1: Remove unused `this` from `Scope::resolve` and `set`
2022-01-24 02:04:57 -08:00
Mike Welsh
c35edaae82
avm1: Allow `this` to be `undefined`
...
Change `Activation::this` to be `Value` instead of `Object`.
2022-01-24 02:04:57 -08:00
Mike Welsh
d9bedffb9f
tests: Add tests for Object-to-String coercion
2022-01-23 17:19:09 -08:00
Mike Welsh
9ccb3ac3e7
avm1: Fix coercion in string-object concatenation
...
Previously we called `toString` when concatenating a string to an
Object. However, Flash actually has more complex behavior, usually
calling both `valueOf` and `toString`. This is loosely based on
ToPrimitive/DefaultValue with no type hint in the ECMAScript spec.
* Call `valueOf`.
* If the result isn't a primitive, call `toString`.
* If the result still isn't primitive, return `"[type Object]"`.
* For Date objects in SWFv6 and higher, call `toString`.
* If the result isn't a primitive, call `toString` (AVM1 bug?)
* If it still isn't primitive, return `"[type Object]"`.
2022-01-23 17:19:09 -08:00
Mike Welsh
bfe0ee2563
wgpu: Fix gradient shader on vulkan backend
...
A regression in naga caused a mistranslation of the gradient shader
on the vulkan backend. This caused radial gradients to be rendered
as linear gradients on the vulkan backend. dx12 seems unaffected.
This seems to be cased by a switch statement starting with a default
case Re-order the case statements to avoid this. Looks like it's been
fixed in naga master.
2022-01-22 20:54:18 -08:00
David Wendt
48f8515c03
core: `mouseEnabled` controls whether or not display objects are mouse-pickable
2022-01-22 19:58:32 -08:00
David Wendt
35cbed01fa
docs: Better document the `ClipEvent` dispatch patterns.
2022-01-22 19:58:32 -08:00
David Wendt
e5d9379740
core: Implement `mouseMove` event
2022-01-22 19:58:32 -08:00
David Wendt
6271d069d7
core: `Stage` should not include it's own transform in it's local/global matrix.
2022-01-22 19:58:32 -08:00