Commit Graph

2484 Commits

Author SHA1 Message Date
Mike Welsh 42f138592b chore: Bump CircleCI to Rust 1.45.1 and clear cache 2020-08-01 23:44:31 -07:00
David Wendt 9f76a7b964 Ensure that `Player` always has a movie in level zero, even if no movie has been queued up yet.
There is a race condition inadvertently caused by allowing movies to be fetched in slot 0: it is possible for the player to be caught mid-load without a root movie. A lot of code assumes level 0 always exists (e.g. `levels.get(0).unwrap()`), while our initialization methods assumed no Player methods would be called until the root movie is installed. This is an unreasonable assumption, as among other things users can trigger the race condition by just playing the movie too quickly.
2020-08-01 02:35:00 -07:00
Nathan Adams 26b14bd904 avm1: Undone some __constructor__ setting on objects that don't actually construct 2020-08-01 02:33:14 -07:00
Nathan Adams db4f5007f3 avm1: TObject::create_bare_object doesn't use or need args 2020-08-01 02:33:14 -07:00
Nathan Adams 79af3ffe44 avm1: Rename TObject::new to TObject::create_bare_object 2020-08-01 02:33:14 -07:00
Nathan Adams 2131f7860b avm1: Change Object::construct to create and return a new object, instead of requiring the caller to do that first 2020-08-01 02:33:14 -07:00
Nathan Adams e74d4f0abb avm1: Make FunctionObject::allocate_function require prototype, it's not optional 2020-08-01 02:33:14 -07:00
Nathan Adams fb7fb6f99a avm1: Make FunctionObject::functional require prototype, it's not optional 2020-08-01 02:33:14 -07:00
Nathan Adams 9123d92513 avm1: Make FunctionObject::constructor require prototype, it's not optional 2020-08-01 02:33:14 -07:00
Nathan Adams 691e3b6804 avm1: Make FunctionObject::function_and_constructor require prototype, it's not optional 2020-08-01 02:33:14 -07:00
Nathan Adams 88a31cc5a9 avm1: Ensure we call movie constructors through Function::construct, not manually, to set __constructor__ 2020-08-01 02:33:14 -07:00
Nathan Adams 69a4d10338 avm1: Replace manual constructor calling with Function::construct, to ensure we set __constructor__ 2020-08-01 02:33:14 -07:00
Nathan Adams 2faf35d43e avm1: Set __constructor__ in Function::construct 2020-08-01 02:33:14 -07:00
dependabot-preview[bot] d9c8c43cf3 build(deps-dev): bump eslint from 7.5.0 to 7.6.0 in /web
Bumps [eslint](https://github.com/eslint/eslint) from 7.5.0 to 7.6.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.5.0...v7.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-01 01:18:25 -07:00
dependabot-preview[bot] 5e804fe041 build(deps): bump wasm-bindgen-test from 0.3.15 to 0.3.17
Bumps [wasm-bindgen-test](https://github.com/rustwasm/wasm-bindgen) from 0.3.15 to 0.3.17.
- [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-07-31 10:31:21 -07:00
dependabot-preview[bot] 13830cbdba build(deps-dev): bump mocha from 8.0.1 to 8.1.0 in /web
Bumps [mocha](https://github.com/mochajs/mocha) from 8.0.1 to 8.1.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/v8.0.1...v8.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-30 15:28:36 -07:00
dependabot-preview[bot] 66501a0370 build(deps-dev): bump chromedriver from 83.0.1 to 84.0.1 in /web
Bumps [chromedriver](https://github.com/giggio/node-chromedriver) from 83.0.1 to 84.0.1.
- [Release notes](https://github.com/giggio/node-chromedriver/releases)
- [Commits](https://github.com/giggio/node-chromedriver/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-30 11:56:50 -07:00
dependabot-preview[bot] 0ad730f034 build(deps-dev): bump webpack from 4.44.0 to 4.44.1 in /web
Bumps [webpack](https://github.com/webpack/webpack) from 4.44.0 to 4.44.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.44.0...v4.44.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-30 02:09:54 -07:00
dependabot-preview[bot] 9a3b9c7117 build(deps): bump wasm-bindgen-futures from 0.4.15 to 0.4.17
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen) from 0.4.15 to 0.4.17.
- [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-07-30 01:10:00 -07:00
dependabot-preview[bot] 7017584cf6 build(deps): bump web-sys from 0.3.42 to 0.3.44
Bumps [web-sys](https://github.com/rustwasm/wasm-bindgen) from 0.3.42 to 0.3.44.
- [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-07-30 01:09:48 -07:00
Mike Welsh 0a4fd2f0da
extension: Initial extension settings page (merge #658) 2020-07-29 19:36:47 -07:00
Mike Welsh bc9dbbe4d9 chore: Update package-lock 2020-07-29 19:03:17 -07:00
JustinCB 15fcce4d06 extension: Centralize default settings
Use true/false for boolean settings and have get_sync_storage
return the default values if necessary.
2020-07-29 19:03:17 -07:00
JustinCB 07506891c4 extension: Remove debug spew 2020-07-29 19:03:13 -07:00
JustinCB b0a81ac39f extension: Move storage functions to util.js 2020-07-29 19:03:13 -07:00
JustinCB 4786de2aa5 Try to fix status flickering 2020-07-29 17:06:51 -07:00
JustinCB 012b36a623 Query tab more often to not incorrectly show reload button 2020-07-29 17:06:51 -07:00
JustinCB 9ea0b2a162 Disable reload button on Protected Pages 2020-07-29 17:06:51 -07:00
JustinCB 77331f4732 Make popup buttons taller(because some languages can have longer text) 2020-07-29 17:06:51 -07:00
JustinCB 88f95b0005 Fix spanish messages.json 2020-07-29 17:06:51 -07:00
JustinCB e14732be45 Fix settings popup style 2020-07-29 17:06:51 -07:00
JustinCB 2987071bef Complete internationalization 2020-07-29 17:06:51 -07:00
JustinCB b3905a6103 Move firefox-specific setting to build_firefox.js 2020-07-29 17:06:51 -07:00
JustinCB 15476618b1 Complete settings localization, localize extension description, & add spanish translation 2020-07-29 17:06:51 -07:00
JustinCB 4ceed0e2eb Removed spurious manifest.json in extension/build 2020-07-29 17:06:51 -07:00
JustinCB 07d46d1f87 Removed spurious logging functions 2020-07-29 17:06:51 -07:00
JustinCB f7a1f78fb1 Attempt to make cross-browser 2020-07-29 17:06:51 -07:00
JustinCB 64c96a3151 Make Prettier happy 2020-07-29 17:06:51 -07:00
JustinCB 27fcd8e6ea Allow opening settings page from settings popup 2020-07-29 17:06:51 -07:00
JustinCB 265aca1409 Update manifest.json 2020-07-29 17:06:51 -07:00
JustinCB bd98856378 Finish initial settings page 2020-07-29 17:06:51 -07:00
JustinCB fb436a31da Make prettier happy 2020-07-29 17:06:51 -07:00
JustinCB 810c717c91 Fix optout tests 2020-07-29 17:06:51 -07:00
JustinCB a527d7179b Fix storage api calls 2020-07-29 17:06:51 -07:00
JustinCB 6535967b74 Fix files in wrong places & eslint errors 2020-07-29 17:06:51 -07:00
David Wendt 7c26432ed0 Center text on Firefox 2020-07-29 17:06:51 -07:00
David Wendt 7343d7d71a Slider toggles look a little out-of-line if I position them at the direct edge of the track 2020-07-29 17:06:51 -07:00
David Wendt 5f883c5d59 Add separate language for users disabling Ruffle on specific pages. 2020-07-29 17:06:51 -07:00
David Wendt 251d2ac04b Add button to reload the page whenever the user changes settings 2020-07-29 17:06:51 -07:00
David Wendt cdd8cd3a5a Internationalize Ruffle and adjust some of the language we use. 2020-07-29 17:06:51 -07:00