Commit Graph

12910 Commits

Author SHA1 Message Date
Tom Schuster 242c7a64a3 tests: Mark XML test as passing 2024-08-21 20:51:52 +02:00
Tom Schuster 5834f273e2 avm2: Implement XML.removeNamespace 2024-08-21 20:51:52 +02:00
sleepycatcoding d8b4ec0404 desktop: Make F11 toggle fullscreen instead of just entering
This allows you to leave fullscreen the same you enter it.
2024-08-21 15:08:33 +02:00
sleepycatcoding eb3dec3d5d desktop: Make shortcuts work in fullscreen and no-gui mode 2024-08-21 15:08:33 +02:00
Kamil Jarosz 56f092be2e desktop: Add "Exit Full Screen" option to context menu
This option allows the user to exit full screen
without knowing the Esc shortcut.
2024-08-21 14:31:56 +02:00
Crowdin Bot 2889a715ad chore: Update translations from Crowdin 2024-08-20 23:41:06 +02:00
TÖRÖK Attila cd4eeb238f avm2: Fix GraphicsPath.cubicCurveTo() [API()] version
Turns out, the docs were wrong again.
2024-08-20 22:17:22 +02:00
Tom Schuster d824a02664 web: Fix deprecation warnings 2024-08-20 21:18:36 +02:00
Tom Schuster 0ac25b5808 chore: Update web-sys and js-sys 2024-08-20 21:18:36 +02:00
TÖRÖK Attila a57940688b ci: Allow more retries, for the `avm2/graphics_round_rects` test too 2024-08-20 20:51:43 +02:00
Kamil Jarosz 4ef26ac9ba desktop: Use F11 as fullscreen shortcut
This patch removes Alt+Enter as the shortcut and replaces it with F11,
additionally the shortcut hint is added to the menu.
2024-08-20 20:12:51 +02:00
michiel2005 7178f3fd05 core: Refactor some code added in #15627 2024-08-20 19:51:17 +02:00
Wumbo c6947b63b3 web: Improve context menu right-click behavior 2024-08-20 17:44:06 +02:00
Kamil Jarosz 3253c9c964 web: Ensure focus is not lost when copying text
Copying text creates a temporary textarea which is selected and focused.
In order to preserve the focus of Ruffle, we need to move the focus
into the container before removing the temporary textarea.
2024-08-20 16:17:42 +02:00
Moulins 3e215610ca core: managed `AvmStringRepr`s can now point to a `&'static WStr`
This allows `&'static WStr`s to be converted into interned `AvmString`s
without moving the string data into an heap-allocated buffer.
2024-08-20 16:02:41 +02:00
Kamil Jarosz 63b373d739 desktop: Make file pickers asynchronous
This patch fixes the problem of Ruffle not responding
when picking a file.
2024-08-20 15:30:50 +02:00
Kamil Jarosz 4918596f71 desktop: Remove Windows workaround for picking files
See https://github.com/rust-windowing/winit/issues/2291#issuecomment-2277033786
2024-08-20 15:30:50 +02:00
Kamil Jarosz 8755dd95cc desktop: Use Arc+Mutex for PathOrUrlField.value
This allows modifying it asynchronously.
2024-08-20 15:30:50 +02:00
Kamil Jarosz d487d3f1aa desktop: Rename PathOrUrlField::value() to result() 2024-08-20 15:30:50 +02:00
Kamil Jarosz 87bf7b5b19 desktop: Set main window as parent of file pickers
This patch makes sure that all file pickers are children of Ruffle.
This way, file pickers will hover over the main window and will have
to be dismissed before the user may interact with it.
2024-08-20 13:47:22 +02:00
dependabot[bot] 5b3c9722d5 build(deps): bump the cargo-minor group with 9 updates
Bumps the cargo-minor group with 9 updates:

| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap) | `4.5.15` | `4.5.16` |
| [bytemuck](https://github.com/Lokathor/bytemuck) | `1.16.3` | `1.17.0` |
| [serde](https://github.com/serde-rs/serde) | `1.0.207` | `1.0.208` |
| [tokio](https://github.com/tokio-rs/tokio) | `1.39.2` | `1.39.3` |
| [indexmap](https://github.com/indexmap-rs/indexmap) | `2.3.0` | `2.4.0` |
| [serde_json](https://github.com/serde-rs/json) | `1.0.124` | `1.0.125` |
| [fluent-templates](https://github.com/XAMPPRocky/fluent-templates) | `0.9.4` | `0.10.1` |
| [syn](https://github.com/dtolnay/syn) | `2.0.74` | `2.0.75` |
| [reqwest](https://github.com/seanmonstar/reqwest) | `0.12.5` | `0.12.6` |


Updates `clap` from 4.5.15 to 4.5.16
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.15...clap_complete-v4.5.16)

Updates `bytemuck` from 1.16.3 to 1.17.0
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md)
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.16.3...v1.17.0)

Updates `serde` from 1.0.207 to 1.0.208
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.207...v1.0.208)

Updates `tokio` from 1.39.2 to 1.39.3
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.2...tokio-1.39.3)

Updates `indexmap` from 2.3.0 to 2.4.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.3.0...2.4.0)

Updates `serde_json` from 1.0.124 to 1.0.125
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.124...1.0.125)

Updates `fluent-templates` from 0.9.4 to 0.10.1
- [Release notes](https://github.com/XAMPPRocky/fluent-templates/releases)
- [Changelog](https://github.com/XAMPPRocky/fluent-templates/blob/master/CHANGELOG.md)
- [Commits](https://github.com/XAMPPRocky/fluent-templates/compare/fluent-templates-v0.9.4...fluent-templates-v0.10.1)

Updates `syn` from 2.0.74 to 2.0.75
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.74...2.0.75)

Updates `reqwest` from 0.12.5 to 0.12.6
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.5...v0.12.6)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: bytemuck
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: fluent-templates
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 00:58:16 +02:00
dependabot[bot] 7f15c4cc16 build(deps-dev): bump @wdio/browserstack-service in /web
Bumps [@wdio/browserstack-service](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-browserstack-service) from 8.40.2 to 9.0.4.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v9.0.4/packages/wdio-browserstack-service)

---
updated-dependencies:
- dependency-name: "@wdio/browserstack-service"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-19 23:36:51 +02:00
dependabot[bot] df9f3bf4ac build(deps-dev): bump typescript-eslint in /web in the npm-minor group
Bumps the npm-minor group in /web with 1 update: [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint).


Updates `typescript-eslint` from 8.1.0 to 8.2.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.2.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-19 23:07:30 +02:00
dependabot[bot] 9c87be3df0 build(deps-dev): bump the npm-minor group in /web with 4 updates
Bumps the npm-minor group in /web with 4 updates: [@wdio/mocha-framework](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-mocha-framework), [@wdio/spec-reporter](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-spec-reporter), [@wdio/static-server-service](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-static-server-service) and [typedoc](https://github.com/TypeStrong/TypeDoc).


Updates `@wdio/mocha-framework` from 9.0.0 to 9.0.4
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v9.0.4/packages/wdio-mocha-framework)

Updates `@wdio/spec-reporter` from 9.0.0 to 9.0.4
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v9.0.4/packages/wdio-spec-reporter)

Updates `@wdio/static-server-service` from 9.0.0 to 9.0.4
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v9.0.4/packages/wdio-static-server-service)

Updates `typedoc` from 0.26.5 to 0.26.6
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.26.5...v0.26.6)

---
updated-dependencies:
- dependency-name: "@wdio/mocha-framework"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: "@wdio/spec-reporter"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: "@wdio/static-server-service"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-19 18:45:51 +02:00
Adrian Wielgosik cde0ef593c avm2: Add comment for weird trig consts 2024-08-18 21:38:45 +02:00
Adrian Wielgosik db61726e5b avm2: Implement Graphics::drawRoundRectComplex 2024-08-18 21:38:45 +02:00
TÖRÖK Attila 84e4270f27 chore: Update to wasm-bindgen 0.2.93. 2024-08-18 14:51:08 +02:00
MartySVK f84fd985a8 avm2: Added all missing [API()] to methods from the list 2024-08-18 12:08:17 +02:00
Crowdin Bot e1c05da618 chore: Update translations from Crowdin 2024-08-18 00:27:46 +02:00
Lord-McSweeney 0d37b3de8c avm2: Ensure `bound_class` is set in `Activation::init_from_method` and remove special case for static methods in optimizer 2024-08-17 10:18:31 -07:00
Lord-McSweeney 7bea8c90ee chore: appease clippy 2024-08-17 10:18:31 -07:00
Lord-McSweeney cb5644bcb4 avm2: Fix some confusing naming of subclass and superclass 2024-08-17 10:18:31 -07:00
Lord-McSweeney 6507722f3e avm2: Make Class class final 2024-08-17 10:18:31 -07:00
Lord-McSweeney 6450a6a028 tests: Add a test for unusual supercalls 2024-08-17 10:18:31 -07:00
Lord-McSweeney f68baf0f76 avm2: Fix many issues with supercalling methods
Supercalling on the global object now works;
supercalling in the class initializer now works; and
supercalling in static methods now uses the correct superclass.
2024-08-17 10:18:31 -07:00
Crowdin Bot d885697d9b chore: Update translations from Crowdin 2024-08-16 23:30:18 +02:00
dependabot[bot] 54696912d2 build(deps-dev): bump the npm-minor group in /web with 3 updates
Bumps the npm-minor group in /web with 3 updates: [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc), [stylelint](https://github.com/stylelint/stylelint) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `eslint-plugin-jsdoc` from 50.2.0 to 50.2.2
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v50.2.0...v50.2.2)

Updates `stylelint` from 16.8.1 to 16.8.2
- [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/16.8.1...16.8.2)

Updates `vite` from 5.4.0 to 5.4.1
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.1/packages/vite)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-16 17:14:08 +02:00
dependabot[bot] 67d849ef27 build(deps-dev): bump @wdio/static-server-service in /web
Bumps [@wdio/static-server-service](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-static-server-service) from 8.39.0 to 9.0.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/commits/v9.0.0/packages/wdio-static-server-service)

---
updated-dependencies:
- dependency-name: "@wdio/static-server-service"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-16 16:29:06 +02:00
dependabot[bot] dfeb8bdda7 build(deps-dev): bump @wdio/spec-reporter from 8.39.0 to 9.0.0 in /web
Bumps [@wdio/spec-reporter](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-spec-reporter) from 8.39.0 to 9.0.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/commits/v9.0.0/packages/wdio-spec-reporter)

---
updated-dependencies:
- dependency-name: "@wdio/spec-reporter"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-16 16:16:35 +02:00
dependabot[bot] 98ec83ba5d build(deps-dev): bump @wdio/mocha-framework from 8.40.2 to 9.0.0 in /web
Bumps [@wdio/mocha-framework](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/wdio-mocha-framework) from 8.40.2 to 9.0.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/commits/v9.0.0/packages/wdio-mocha-framework)

---
updated-dependencies:
- dependency-name: "@wdio/mocha-framework"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-16 16:04:30 +02:00
Crowdin Bot dda4b57109 chore: Update translations from Crowdin 2024-08-15 23:52:34 +02:00
MartySVK 24478ff43f avm2: Add missing [API()] to flash.geom 2024-08-15 12:47:52 +02:00
Nathan Adams b33423c27f web: Allow redefining of EI properties, silencing an error when it happens
(realistically the method we replace it with is still the same one, but...)
2024-08-15 12:19:15 +02:00
Nathan Adams 3918d4b036 web: Add test to ensure redefining an EI method works 2024-08-15 12:19:15 +02:00
riku_42 0bd16b202c nit: group wildcard rules together 2024-08-14 14:48:40 +02:00
riku-42 7a689f1c45 feat: add more matched 4399 sites for content scripting 2024-08-14 14:48:40 +02:00
dependabot[bot] 11e15d1acc build(deps-dev): bump the npm-minor group in /web with 2 updates
Bumps the npm-minor group in /web with 2 updates: [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) and [axios](https://github.com/axios/axios).


Updates `eslint-plugin-jsdoc` from 50.0.1 to 50.2.0
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v50.0.1...v50.2.0)

Updates `axios` from 1.7.3 to 1.7.4
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.7.3...v1.7.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-minor
- dependency-name: axios
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-13 21:51:49 +02:00
Marco Bartoli fdd86c1da2
avm2: avoid enqueuing Sound.play an infinite amount of times (#17425) 2024-08-13 15:57:22 +00:00
Aaron Hill 3b9d9cf230 avm2: Pass in `Gc<'gc, BytecodeMethod<'gc>>` to `optimize`
This allows us to pretty-print a method name from within
`optimize` using `display_function` (which needs to do
`Gc::ptr_eq`)
2024-08-12 21:23:33 -04:00
MartySVK 953c6732cc Fix extra class flash.display 2024-08-12 18:05:56 -07:00