Commit Graph

626 Commits

Author SHA1 Message Date
Nathan Adams fd6431f724 core: Don't use std Instant as it doesn't work for web, use a wrapper 2020-10-11 13:34:15 -07:00
Mike Welsh 4034ef8d79 web: Use PanicInfo::to_string for displaying panic info
PanicInfo::payload wasn't giving anything useful (just resulted
in 'Unknown error') -- to_string displays all of the message,
payload, and location of the panic. Particularly the location
is helpful.
2020-10-11 00:51:00 -07:00
dependabot-preview[bot] 86171c9cb9 build(deps-dev): bump eslint from 7.10.0 to 7.11.0 in /web
Bumps [eslint](https://github.com/eslint/eslint) from 7.10.0 to 7.11.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.10.0...v7.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-10 18:50:44 -07:00
Mike Welsh 212645d9b9 demo: Remove query parameter support (fix #1255)
The 'file' query parameter is no longer necessary now that the
sample drop-down box was added, populated by swfs.json.
2020-10-10 17:48:39 -07:00
Mike Welsh 3689bb607d docs: Update demo link in docs 2020-10-10 01:15:48 -07:00
Toad06 904b5c1463 web: Add missing file for the case-insensitive test 2020-10-09 12:25:37 -07:00
Toad06 6589710a61 web: Add tests to check swf extension 2020-10-09 12:25:37 -07:00
Toad06 1643d2335e web: Correctly detect swf file extension 2020-10-09 12:25:37 -07:00
dependabot-preview[bot] 5a64c18bb9 build(deps-dev): bump copy-webpack-plugin from 6.2.0 to 6.2.1 in /web
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 6.2.0 to 6.2.1.
- [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.2.0...v6.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-09 12:23:13 -07:00
JustinCB d4fa329c54 web(test): Add test for fixed issue 2020-10-08 23:35:33 -07:00
JustinCB ce6b19f1b2 web: Add more try/catch's to stop error spam crashing sites 2020-10-08 23:35:33 -07:00
dependabot-preview[bot] 73e836f33b build(deps-dev): bump @wdio/local-runner from 6.6.0 to 6.6.2 in /web
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio) from 6.6.0 to 6.6.2.
- [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.6.0...v6.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-08 14:15:10 -07:00
dependabot-preview[bot] 9598573a5a build(deps-dev): bump @wdio/cli from 6.6.0 to 6.6.2 in /web
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio) from 6.6.0 to 6.6.2.
- [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.6.0...v6.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-08 14:14:58 -07:00
dependabot-preview[bot] 9451164ac3 build(deps-dev): bump @wdio/cli from 6.5.2 to 6.6.0 in /web
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio) from 6.5.2 to 6.6.0.
- [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.5.2...v6.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-07 12:08:28 -07:00
dependabot-preview[bot] d48834dddd build(deps-dev): bump @wdio/spec-reporter from 6.4.7 to 6.6.0 in /web
Bumps [@wdio/spec-reporter](https://github.com/webdriverio/webdriverio) from 6.4.7 to 6.6.0.
- [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.7...v6.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-07 12:08:16 -07:00
dependabot-preview[bot] ed9c8c8833 build(deps-dev): bump @wdio/mocha-framework from 6.5.0 to 6.6.0 in /web
Bumps [@wdio/mocha-framework](https://github.com/webdriverio/webdriverio) from 6.5.0 to 6.6.0.
- [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.5.0...v6.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-07 12:07:54 -07:00
dependabot-preview[bot] e77d9f0a3b build(deps-dev): bump @wdio/local-runner from 6.5.2 to 6.6.0 in /web
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio) from 6.5.2 to 6.6.0.
- [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.5.2...v6.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-07 12:07:35 -07:00
dependabot-preview[bot] 8500d5b49e build(deps-dev): bump @wdio/static-server-service in /web
Bumps [@wdio/static-server-service](https://github.com/webdriverio/webdriverio) from 6.4.7 to 6.6.0.
- [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.7...v6.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-07 12:07:20 -07:00
dependabot-preview[bot] 0b2bd7bf3a build(deps-dev): bump @wdio/sync from 6.5.0 to 6.6.0 in /web
Bumps [@wdio/sync](https://github.com/webdriverio/webdriverio) from 6.5.0 to 6.6.0.
- [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.5.0...v6.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-07 12:06:52 -07:00
dependabot-preview[bot] 3b98ee4c8e build(deps-dev): bump copy-webpack-plugin from 6.1.1 to 6.2.0 in /web
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 6.1.1 to 6.2.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.1.1...v6.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-04 13:10:09 -07:00
Sean-Thomas a9538f81d0 web: Renamed "prime_audio" and "suspend_audio"
Renamed "prime_audio" and "suspend_audio" to "play" and "pause" respectfully.
2020-09-29 11:05:23 -07:00
Sean-Thomas 6b54cc4311 web: Add pause method for web player
Adds a suspend_audio method to compliment prime_audio on WebAudioBackend, as well as logic in player.rs on the set_is_playing method to suspend audio when is_playing is set to false. Exposes pause method for the ruffle player in JavaScript with logic to display the play button when paused.
2020-09-29 11:05:23 -07:00
dependabot-preview[bot] b2eae8011b build(deps-dev): bump eslint from 7.9.0 to 7.10.0 in /web
Bumps [eslint](https://github.com/eslint/eslint) from 7.9.0 to 7.10.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.9.0...v7.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-29 04:23:31 -07:00
dependabot-preview[bot] b8ab6637bc build(deps-dev): bump eslint-config-prettier in /web
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.11.0 to 6.12.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.11.0...v6.12.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-26 14:09:55 -07:00
Mike Welsh 313b02d24f webgl: Fall back to canvas if not using hardware acceleration
Display WebGL driver info, detect whether hardware acceleration
is enabled, and fall back to the canvas backend in this case.
2020-09-25 01:22:21 -07:00
dependabot-preview[bot] 50dcb4ada5 build(deps-dev): bump html-webpack-plugin from 4.4.1 to 4.5.0 in /web
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) from 4.4.1 to 4.5.0.
- [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.4.1...v4.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-21 13:03:14 -07:00
dependabot-preview[bot] 1b50eb95d7 build(deps-dev): bump copy-webpack-plugin from 6.1.0 to 6.1.1 in /web
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 6.1.0 to 6.1.1.
- [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.1.0...v6.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-20 06:51:37 -07:00
dependabot-preview[bot] 08f3e5894d build(deps-dev): bump @wdio/local-runner from 6.5.0 to 6.5.2 in /web
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio) from 6.5.0 to 6.5.2.
- [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.5.0...v6.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-20 06:51:12 -07:00
dependabot-preview[bot] 31bafe7070 build(deps-dev): bump @wdio/cli from 6.5.0 to 6.5.2 in /web
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio) from 6.5.0 to 6.5.2.
- [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.5.0...v6.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-20 06:51:01 -07:00
Luca Weiss d5cb396331 *: fix spelling mistakes 2020-09-19 16:17:58 -07:00
dependabot-preview[bot] 44080d70a9 build(deps-dev): bump webpack from 4.44.1 to 4.44.2 in /web
Bumps [webpack](https://github.com/webpack/webpack) from 4.44.1 to 4.44.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.44.1...v4.44.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-18 13:17:38 -07:00
dependabot-preview[bot] 30b910554a build(deps-dev): bump prettier from 2.1.1 to 2.1.2 in /web
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.1...2.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-15 22:41:52 -07:00
dependabot-preview[bot] 1919a027cc build(deps-dev): bump sign-addon from 3.0.0 to 3.1.0 in /web
Bumps [sign-addon](https://github.com/mozilla/sign-addon) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/mozilla/sign-addon/releases)
- [Commits](https://github.com/mozilla/sign-addon/compare/3.0.0...3.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-15 22:20:33 -07:00
dependabot-preview[bot] 398fd68c80 build(deps-dev): bump @wdio/mocha-framework from 6.4.7 to 6.5.0 in /web
Bumps [@wdio/mocha-framework](https://github.com/webdriverio/webdriverio) from 6.4.7 to 6.5.0.
- [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.7...v6.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-14 13:54:20 -07:00
dependabot-preview[bot] 295efd667b build(deps-dev): bump @wdio/local-runner from 6.4.7 to 6.5.0 in /web
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio) from 6.4.7 to 6.5.0.
- [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.7...v6.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-14 13:54:09 -07:00
dependabot-preview[bot] 139c88266b build(deps-dev): bump @wdio/sync from 6.4.7 to 6.5.0 in /web
Bumps [@wdio/sync](https://github.com/webdriverio/webdriverio) from 6.4.7 to 6.5.0.
- [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.7...v6.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-14 12:14:22 -07:00
dependabot-preview[bot] 39522ff87e build(deps-dev): bump @wdio/cli from 6.4.7 to 6.5.0 in /web
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio) from 6.4.7 to 6.5.0.
- [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.7...v6.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-14 12:14:12 -07:00
dependabot-preview[bot] 6f3a39da7b build(deps): bump wasm-bindgen-test from 0.3.17 to 0.3.18
Bumps [wasm-bindgen-test](https://github.com/rustwasm/wasm-bindgen) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-14 12:01:45 -07:00
Nathan Adams e114282a4e web: Implement Show Error Details for panics 2020-09-13 15:20:44 -07:00
Nathan Adams 69d1e903fb web: Destroy shouldn't be able to throw exceptions 2020-09-13 15:20:44 -07:00
Nathan Adams 58cd1abcf2 web: Store RuffleInstances as a RefCell, so we don't lock it out from readers unless we actually need to 2020-09-13 15:20:44 -07:00
Nathan Adams 1d48073a05 web: Don't mutably lock INSTANCES if we don't need to, to allow greater odds of a successful reentry 2020-09-13 15:20:44 -07:00
Nathan Adams f05fba069d web: Add basic panic screen 2020-09-13 15:20:44 -07:00
Nathan Adams 95275898c7 web: If ruffle panics, inform all instances (if possible) and poison future instances 2020-09-13 15:20:44 -07:00
Nathan Adams 3ff399ca6b core: Trace only to the log backend, but have the default log backend trace to the log crate 2020-09-13 13:51:39 -07:00
Nathan Adams 085c61b94f tests: In browser based tests, actually press play and check that the movie spits out some text 2020-09-13 13:51:39 -07:00
Nathan Adams 4c6c8ee1f2 web: Add trace_observer to web api, which lets you capture trace output from a specific movie 2020-09-13 13:51:39 -07:00
Nathan Adams de009c7673 core: Add Log backend, for capturing trace output specific to a movie 2020-09-13 13:51:39 -07:00
dependabot-preview[bot] 091f04096d build(deps-dev): bump eslint from 7.8.1 to 7.9.0 in /web
Bumps [eslint](https://github.com/eslint/eslint) from 7.8.1 to 7.9.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.8.1...v7.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-13 13:39:29 -07:00
dependabot-preview[bot] cff131a494 build(deps-dev): bump archiver from 5.0.0 to 5.0.2 in /web
Bumps [archiver](https://github.com/archiverjs/node-archiver) from 5.0.0 to 5.0.2.
- [Release notes](https://github.com/archiverjs/node-archiver/releases)
- [Changelog](https://github.com/archiverjs/node-archiver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/archiverjs/node-archiver/compare/5.0.0...5.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-11 21:26:57 -07:00