Commit Graph

2326 Commits

Author SHA1 Message Date
Nathan Adams 7c5c4576cc web: Actually respect the swf url in jsApiBefore 2023-11-13 21:08:38 +01:00
renovate[bot] 32c65e6460 fix(deps): update rust dependencies 2023-11-13 09:10:26 +01:00
Crowdin Bot 949b294bdf chore: Update translations from Crowdin 2023-11-10 22:30:29 +01:00
renovate[bot] d98a2750a0 chore(deps): update dependency chromedriver to v119 [security] 2023-11-10 00:14:34 +01:00
Nathan Adams 94009e4b1a web: Add credentialAllowList config option 2023-11-09 13:04:12 +01:00
Kornelius Rohrschneider 514611451f web: Set default Polyfill allowScriptAccess value to samedomain
The default allowScriptAccess value for polyfilled elements has been set
to samedomain. This means that it's true if the SWF file has the same
domain as the player website and false otherwise.
To do this, a new isPolyfillElement parameter is given to the
RufflePlayer::load method.
2023-11-08 17:09:54 +01:00
Kornelius Rohrschneider 1b2baf3364 web: Fix Ruffle extension player not using the configuration for files
The Ruffle extension player has previously not used the extension
configuration settings when loading local SWF files.
This has been fixed.
2023-11-08 17:09:54 +01:00
Kornelius Rohrschneider 8c8367a09c web: Fix Ruffle configuration not working properly for Polyfill elements
Previously, the Ruffle configuration options weren't working properly
for polyfilled elements.

A polyfilled element can have specific configuration options which
overwrite the more general Ruffle configuration settings.
But the code handling those specific configuration options has
previously set some of them to default values if they haven't been
provided, therefore overwriting the more general configuration settings.
This has been fixed. A getPolyfillOptions function has been created and
returns a URLLoadOptions object, containing only the options that have
been set for the respective element. Helper functions have been adapted
to not return any default values anymore.
getPolyfillOptions is now used in all places where polyfilled options
need to be retrieved (therefore reducing duplicated code).

Documentation has been added to clarify that these options must not
contain any default values, since those would overwrite other
configuration settings with a lower priority.
The extension and demo code has been changed to clarify that no default
values are contained in the element configuration options.

The RuffleEmbed::attributeChangedCallback method has previously loaded
an SWF file only with the parameters and base options. This has been
fixed as well since it now also uses getPolyfillOptions.

When using RuffleObject::connectedCallback to load an SWF file, setting
an element config option to "" hasn't worked for most config options
before either. This has been fixed as well by using the new
getPolyfillOptions function.

The default WindowMode value of the default Ruffle web config has been
set to Window (as it is in the desktop version and according to the
documentation). It has previously been set to Opaque (which causes the
same functionality).
2023-11-08 17:09:54 +01:00
Crowdin Bot 1c4380f633 chore: Update translations from Crowdin 2023-11-07 12:40:56 +01:00
renovate[bot] acadb2b2d3 fix(deps): update wasm-bindgen 2023-11-07 12:18:50 +01:00
Wumbo 4403848a4b
web: Extension UI improvements (#13473)
* web: Improve styling of extension pop-up menu

* web: Improve styling of extension settings page

* web: Improve styling of extension player

* web: Make styling more consistent across browsers

* web: Run eslint, fix some problems

* web: Move version text near top of pop-up menu, add to settings menu

* web: Improve logo hover bounds in pop-up and settings

* web: Improve styling of extension status indicator

* web: Update extension pop-up text strings

* web: Misc. sizing/padding changes to extension UI

* web: chore: Add a stylelint exception for #backgroundColor in player.css

Because it's not kebab-case, to match the keys of the metadata object in JS.

---------

Co-authored-by: TÖRÖK Attila <torokati44@gmail.com>
2023-11-03 23:07:25 +01:00
CUB3D b0d88645bc avm1: Implement FileReference 2023-11-03 19:32:24 +01:00
renovate[bot] 9b3df944ad chore(deps): update node.js dependencies 2023-11-01 11:18:48 +01:00
renovate[bot] 1377a5b07b fix(deps): update rust dependencies 2023-11-01 00:45:43 +01:00
Nathan Adams 5682e0101d web: Add defaultFonts config option for specifying the default _sans etc 2023-10-30 15:15:57 +01:00
Nathan Adams 857f65d077 web: Add fontSources config option for loading extra device fonts than our defaults 2023-10-30 15:15:57 +01:00
TÖRÖK Attila 7cec9ed969 chore: Add `--locked` to all `cargo build` invocations 2023-10-28 14:07:39 +02:00
TÖRÖK Attila 0c0b86c008 core,web: Replace `instant` with `web-time` 2023-10-28 03:01:45 +02:00
TÖRÖK Attila ac93947c22 web: Clean up nonsensical feature setup of the ruffle_core dependency 2023-10-28 02:34:07 +02:00
renovate[bot] 997ad1643a chore(deps): update node.js dependencies 2023-10-27 23:40:04 +02:00
Daniel Jacobs 2eeee80646 web: Switch click and pointer events to act on element and not window 2023-10-27 15:55:16 -04:00
TÖRÖK Attila c5b9239d08 nit: Fix tool name in error message of extension build
This is a fixup for https://github.com/ruffle-rs/ruffle/pull/13733.

I always confuse these things, and notice these minor mistakes an hour after merging. _Gosh hecking darn it!_
2023-10-27 20:06:39 +02:00
TÖRÖK Attila e770200dc6 web: Make the error message about a missing version seal more verbose 2023-10-27 15:58:15 +02:00
TÖRÖK Attila 4109047c20 web: Tidy up the Dockerfile for building the browser extension. Details:
- Add clang to the dependencies
- Migrate Node.js installation to their new recommended method
- Add some comments for each logical step
- Remove a redundant comment
- Remove some unnecessary semicolons
2023-10-27 15:58:15 +02:00
Crowdin Bot fd6568aa80 chore: Update translations from Crowdin 2023-10-27 00:49:17 +02:00
Daniel Jacobs 180d275f13 web: Check navigator.clipboard exists before using it 2023-10-26 13:01:55 -04:00
Daniel Jacobs 27831d7881 web: Make ruffle-player inherit pointer-events from parent 2023-10-25 17:03:44 -04:00
Crowdin Bot 1ca5f714f9 chore: Update translations from Crowdin 2023-10-23 03:21:14 +02:00
Nathan Adams 9758bf84c0 web: Exclude a bunch of internal api from the public api (including removing them from documentation) 2023-10-20 20:05:02 +02:00
Nathan Adams 14648ef0d5 web: make loadRuffle() return an instance, not a constructor 2023-10-20 20:05:02 +02:00
Nathan Adams 307f9bc820 web: Rename lastLoaded to nativeConstructor 2023-10-20 20:05:02 +02:00
Nathan Adams a9db2584c8 web: Make loadRuffle take in BaseLoadOptions, it doesn't need more complex than that 2023-10-20 20:05:02 +02:00
Crowdin Bot e6f9796094 chore: Update translations from Crowdin 2023-10-17 23:31:22 +02:00
renovate[bot] b427940431 fix(deps): update rust dependencies 2023-10-16 09:51:22 +02:00
Crowdin Bot 0127c98fdf chore: Update translations from Crowdin 2023-10-15 19:17:00 +02:00
Nathan Adams 5e3bd488f1 web: Make jpegxr optional on web but enabled by default by CI 2023-10-15 18:06:15 +02:00
Nathan Adams ec21ad8658 core: Add default_font feature which enables the fallback font 2023-10-15 14:09:21 +02:00
Nathan Adams 74a7ab5afe core: Implement device font lookup, and multiple default device fonts 2023-10-15 14:09:21 +02:00
sleepycatcoding c170c8561b web: rudimentary documentation for JS API 2023-10-15 12:00:41 +02:00
sleepycatcoding 1bfcc0a670 web: Rename wsProxy config option to socketProxy 2023-10-15 12:00:41 +02:00
sleepycatcoding d3765027f0 web: Use gloo_net instead of manually using web_sys
This relieves some headaches with on connect callback and spawning of the
sending async task, since some SWFs like to send data before the connect event
is called.
2023-10-15 12:00:41 +02:00
sleepycatcoding a067e9a5e8 web: Add wsProxy config option 2023-10-15 12:00:41 +02:00
sleepycatcoding e2cfdcc2e1 web: Close WebSocket if receiver dropped 2023-10-15 12:00:41 +02:00
sleepycatcoding 5406b9f95e web: Experimental WebSocket based backend for Sockets
This is currently untested.
2023-10-15 12:00:41 +02:00
Crowdin Bot ff2814c84f chore: Update translations from Crowdin 2023-10-12 23:13:54 +02:00
Crowdin Bot 2422793d1b chore: Update translations from Crowdin 2023-10-11 13:29:12 -04:00
Crowdin Bot 13b50fecb5 chore: Update translations from Crowdin 2023-10-09 23:10:41 +02:00
Crowdin Bot 3dc75f7ab8 chore: Update translations from Crowdin 2023-10-07 23:37:34 +02:00
Crowdin Bot 53babdd675 chore: Update translations from Crowdin 2023-10-05 23:09:23 +02:00
Adrian Wielgosik c5704ed819 Revert "web: As appropriate use embed height mentioned in Mozilla bug 810082 c65"
This reverts commit b6d0e2ecce.
2023-10-05 00:50:22 +02:00