Commit Graph

70 Commits

Author SHA1 Message Date
Mike Welsh f6f7222221 web: Remove clean-webpack-plugin dependency 2021-03-03 06:44:45 -08:00
relrelb 8b7b5caa95 web: Upgrade all wdio packages 2021-02-19 16:28:09 -08:00
relrelb 1c21856980
web: General refactoring
* web: Don't load a random SWF Instead, show a prompt to select or drag an SWF.
* web: Refactor webpack.config.js
* demo: Refactor index.js
* demo: Cleanup CSS
2021-02-16 20:39:46 -08:00
dependabot-preview[bot] cea703ad03 build(deps-dev): bump @wdio/cli from 6.12.1 to 7.0.3 in /web
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio) from 6.12.1 to 7.0.3.
- [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/v6.12.1...v7.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-15 09:46:55 -08:00
Mike Welsh c2b768c453 web: Fallback to instantiate with improper MIME type
Use --target web in wasm-bindgen and file-loader for WASM files,
allowing wasm-bindgen's built-in fallback from
WebAssembly.instantiateStreaming to instantiate.

file-loader spits out the WASM file directly in the output folder,
and imports will resolve to the URL, so that we can load the file
directly, avoiding webpack's built-in wasm loaders.

This allows Ruffle to function on web servers even if they serve
WASM files with the incorrect MIME type, fixing one of our biggest
support requests (#400, #1458). There is some performance impact
on loading with the fallback, but this is preferable to not
working at all.
2021-01-16 15:30:11 -08:00
Toad06 dab96ba01b tests: Don't get fooled by GET parameters that look like a file extension 2020-12-13 15:38:18 -08:00
Toad06 5d55a60924
web: Avoid double polyfilling object-inside-object
* web: Avoid double polyfilling object-inside-object
* tests: Add polyfill test for object inside object
2020-12-10 13:36:40 -08:00
Toad06 83fcd7ba40 tests: Checks that iframe correctly fires its onload event 2020-12-09 17:01:20 -08:00
Toad06 457d707ec2 tests: `polyfills` option is now a boolean, defaulting to true 2020-12-07 15:22:51 -08:00
Toad06 3ca08c881f docs: Update `streamSwfUrl` to `load` 2020-12-07 15:22:51 -08:00
Toad06 49d4197dbf tests: Don't polyfill an object tag if it already contains a ruffle-embed 2020-11-28 14:43:39 -08:00
Mike Welsh e84c432b00 tests: Add SWFObject.js polyfill test 2020-11-27 21:11:05 -08:00
Mike Welsh 7898776e0c tests: Add polyfill tests for missing movie 2020-11-26 18:19:57 -08:00
Mike Welsh 5d99dce16c tests: Add polyfill test for object+embed with only clsid 2020-11-26 18:19:57 -08:00
Mike Welsh b128c876ea tests: Alter embed-inside-object polyfill tests to expect ruffle-embed 2020-11-26 18:19:57 -08:00
Nathan Adams 600d267bf3 web: We no longer need git dependency in webpack builds - fixes #1517 2020-11-24 16:36:33 -08:00
Nathan Adams f5667fc987 web: Fix up documentation to reflect the new state of core vs selfhosted (basically npm vs manual) 2020-11-24 16:36:33 -08:00
Nathan Adams 41bf30efc8 web: Rename public_path to publicPath 2020-11-24 16:36:33 -08:00
Nathan Adams d21cb8473b web: Rename RufflePlayer.trace_observer to RufflePlayer.traceObserver 2020-11-24 16:36:33 -08:00
Nathan Adams 37ef9c15b4 web: Rename RufflePlayer.play_button_clicked to
RufflePlayer.playButtonClicked
2020-11-24 16:36:33 -08:00
Nathan Adams 4f297948d0 web: Rename RufflePlayer.stream_swf_url to RufflePlayer.streamSwfUrl 2020-11-24 16:36:33 -08:00
Nathan Adams 8abb8df299 web: core no longer uses webpack, but selfhosted still does 2020-11-24 16:36:33 -08:00
Nathan Adams 5ff7168fe9 web: Switched core package from javascript to typescript 2020-11-24 16:36:33 -08:00
Nathan Adams dab79107b2 web: Include git details into the build 2020-11-04 16:46:14 -08:00
Mike Welsh cd96df7ee7 web: Disable automatic publicPath in webpack configs 2020-10-21 15:19:36 -07:00
dependabot-preview[bot] a965d2f6ba build(deps-dev): bump webpack-cli from 3.3.12 to 4.0.0 in /web
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.12 to 4.0.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/v3.3.12...webpack-cli@4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-17 15:33:13 -07:00
Mike Welsh 990052db77 chore: Bump to webpack 5 2020-10-17 14:07:28 -07:00
Nathan Adams b7b67cacb2 web: Merge flashvars with swf url query vars 2020-10-12 15:28:16 -07:00
Nathan Adams 30fffa8022 test: Add tests for flashvars on web 2020-10-12 15:28:16 -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
JustinCB d4fa329c54 web(test): Add test for fixed issue 2020-10-08 23:35:33 -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
Toad06 048bfaf53d tests: Add polyfill samples from #457 2020-09-07 13:16:44 -07:00
Nathan Adams db86cdab79 chore: Workaround for chrome not being found on windows tests 2020-09-04 11:31:39 -07:00
JustinCB 808b6588ab web(test): Add test for spl 2020-08-20 05:30:28 -07:00
Justin-CB 0cdad7520f web(tests): Enable pdf test, which works now 2020-08-18 11:25:15 -07:00
JustinCB 4f755eafff web: Add tests for new behaviour 2020-07-14 09:12:36 -07:00
Nathan Adams c07dbbb748 web: Remove & disable package-lock for subpackages, only root should have it 2020-06-13 12:35:14 -07:00
Nathan Adams d7092d0f30 web: Hoist common dev dependencies up to the top (except CLI) and hopefully improve how we bootstrap 2020-06-13 12:35:14 -07:00
dependabot-preview[bot] 94ad4a82c4 build(deps-dev): bump mocha from 7.2.0 to 8.0.1 in /web
Bumps [mocha](https://github.com/mochajs/mocha) from 7.2.0 to 8.0.1.
- [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/v7.2.0...v8.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-11 10:04:46 -07:00
Nathan Adams 9376003459 tests: Increase polyfill timeout to 30 seconds. Fixes #657 2020-06-09 16:47:34 -07:00
dependabot-preview[bot] ebe1f930f3 build(deps-dev): bump @wdio/local-runner from 6.1.16 to 6.1.17 in /web
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio) from 6.1.16 to 6.1.17.
- [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.1.16...v6.1.17)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 11:43:45 -07:00
dependabot-preview[bot] 469cea6804 build(deps-dev): bump @wdio/mocha-framework in /web
Bumps [@wdio/mocha-framework](https://github.com/webdriverio/webdriverio) from 6.1.14 to 6.1.17.
- [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.1.14...v6.1.17)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 10:34:33 -07:00
dependabot-preview[bot] 413d7b83d8 build(deps-dev): bump @wdio/cli from 6.1.16 to 6.1.17 in /web
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio) from 6.1.16 to 6.1.17.
- [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.1.16...v6.1.17)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 10:33:22 -07:00
dependabot-preview[bot] 78e475c89d build(deps-dev): bump @wdio/local-runner from 6.1.14 to 6.1.16 in /web
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio) from 6.1.14 to 6.1.16.
- [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.1.14...v6.1.16)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 10:24:56 -07:00
dependabot-preview[bot] fb5b72ecf1 build(deps-dev): bump @wdio/cli from 6.1.15 to 6.1.16 in /web
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio) from 6.1.15 to 6.1.16.
- [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.1.15...v6.1.16)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 09:43:51 -07:00
dependabot-preview[bot] 55b229f439 build(deps-dev): bump @wdio/cli from 6.1.14 to 6.1.15 in /web
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio) from 6.1.14 to 6.1.15.
- [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.1.14...v6.1.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 16:08:30 +00:00
dependabot-preview[bot] f59c8bcfa0 build(deps-dev): bump @wdio/cli from 6.1.12 to 6.1.14 in /web
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio) from 6.1.12 to 6.1.14.
- [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.1.12...v6.1.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 17:04:25 -07:00
dependabot-preview[bot] a3b66d095f build(deps-dev): bump @wdio/static-server-service in /web
Bumps [@wdio/static-server-service](https://github.com/webdriverio/webdriverio) from 6.0.16 to 6.1.14.
- [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.0.16...v6.1.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 17:04:11 -07:00