renovate[bot]
216a8f3b14
fix(deps): update rust dependencies
2023-12-25 10:09:07 +01:00
Crowdin Bot
9523022cdd
chore: Update translations from Crowdin
2023-12-23 13:26:37 +01:00
Tom Schuster
e3d8a279ad
core: load_device_font register function must be &mut
2023-12-22 13:47:48 +01:00
Crowdin Bot
ba6ba842d7
chore: Update translations from Crowdin
2023-12-18 23:28:34 +01:00
Tom Schuster
8071a14d4d
web/extension: Correct the version used for the Firefox extension
2023-12-16 18:16:52 +01:00
TÖRÖK Attila
f8260e1d3f
web: Simplify the TS_NODE_COMPILER_OPTIONS value for mocha in core test
2023-12-15 20:21:12 +01:00
Crowdin Bot
9a02ca76ff
chore: Update translations from Crowdin
2023-12-12 19:08:09 +01:00
renovate[bot]
3a033f0f28
fix(deps): update rust dependencies
2023-12-11 15:51:12 +01:00
TÖRÖK Attila
1008a9559a
web/extension: Lower minimum Firefox version on Android to 120
2023-12-09 18:49:18 +01:00
renovate[bot]
e9c83f45ac
chore(deps): update node.js dependencies
2023-12-08 13:45:16 +01:00
renovate[bot]
41ddb316a2
chore(deps): update node.js dependencies
2023-12-06 01:58:50 +01:00
dependabot[bot]
253e1c65d8
build(deps-dev): bump vite from 5.0.2 to 5.0.5 in /web
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 5.0.2 to 5.0.5.
- [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.0.5/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-06 01:42:02 +01:00
TÖRÖK Attila
aa6dc22124
web/extension: Raise minimum Firefox version on Android to 121
2023-12-05 00:10:45 +01:00
renovate[bot]
a0c33382bf
fix(deps): update wasm-bindgen
2023-12-04 12:08:22 +01:00
Crowdin Bot
d1bf2378cf
chore: Update translations from Crowdin
2023-12-03 22:14:39 +01:00
Crowdin Bot
9477856079
chore: Update translations from Crowdin
2023-12-02 23:25:09 +01:00
TÖRÖK Attila
5009285e69
web: Fix build error in the Firefox extension builder Dockerfile
2023-12-02 00:08:17 +01:00
Daniel Jacobs
13efea13ee
web: Don't let video modal overflow RufflePlayer
2023-12-01 09:32:04 -05:00
TÖRÖK Attila
884f46241c
web: Mark the Firefox extension as compatible with Android upon AMO submission
...
The minimum version is from: https://github.com/ruffle-rs/ruffle/wiki#web
2023-11-30 00:21:51 +01:00
TÖRÖK Attila
1635e27337
docs: Link to the new Chrome Web Store from README.md
2023-11-30 00:16:20 +01:00
TÖRÖK Attila
ca25f82900
chore: Bump wasm-bindgen to 0.2.89 (0.2.88 got yanked)
2023-11-28 21:43:41 -05:00
nosamu
c197629d24
demo: Fix `npm run demo`
2023-11-28 16:27:57 -08:00
Daniel Jacobs
9e146c0f49
web: Use CustomEvent instead of Event for load events so MooTools works
2023-11-28 13:28:06 -05:00
Daniel Jacobs
4805a07301
demo: Wrap flex items onto mutliple lines at small screen sizes
2023-11-27 11:05:02 -05:00
renovate[bot]
6da223a875
fix(deps): update rust dependencies
2023-11-27 09:44:47 +01:00
Nathan Adams
23e7a653d8
web: Configure demo to use ./ as asset path
2023-11-26 15:26:21 +01:00
Nathan Adams
54caef3b09
web: Fix fonts in demo
2023-11-25 22:00:34 +01:00
Nathan Adams
63b1c92521
web: Refactor sample selection
2023-11-25 22:00:34 +01:00
Nathan Adams
798ca3bceb
web: Add options to demo to enable url loading and sample loading
2023-11-25 22:00:34 +01:00
Nathan Adams
6f1cc89c47
web: Rewrite demo in react
2023-11-25 22:00:34 +01:00
Nathan Adams
fe99e6350b
web: Don't require webpack, and export MovieMetadata type
2023-11-25 22:00:34 +01:00
MrCheeze
5920a6426e
core: Allow Regular/Bold/Italic device fonts to be registered separately
2023-11-24 17:08:35 +01:00
Tom Schuster
96059a8e25
avm2: Implement flash.system.Security pageDomain
2023-11-23 19:55:32 +01:00
Crowdin Bot
d1784dc7c8
chore: Update translations from Crowdin
2023-11-23 00:38:05 +01:00
Daniel Jacobs
30aabc748c
demo: Use toggle instead of checking current class
2023-11-22 18:05:38 -05:00
Daniel Jacobs
ffca5adbf7
demo: Fix positioning of info box so it appears next to ruffle-player
2023-11-22 18:05:38 -05:00
Daniel Jacobs
a313e51c32
web: Disallow range notation in media queries to fix older Safari
2023-11-22 20:30:35 +01:00
Daniel Jacobs
438274e930
demo: Fix styles that don't work on Safari
2023-11-22 20:30:35 +01:00
Nathan Adams
5177bd496a
web: Hide demo logo when the screen is too small
2023-11-21 19:39:01 +01:00
Nathan Adams
81efa01991
web: Enable clicking on demo file label
2023-11-21 19:39:01 +01:00
Nathan Adams
1b39bdcd0b
web: Use 'x as y' instead of '<y>x'
2023-11-21 19:39:01 +01:00
Nathan Adams
549f017794
web: Rename demo 'main' to 'playerContainer'
2023-11-21 19:39:01 +01:00
Nathan Adams
c0ab99f6ee
web: Add option to hide the url input (forced on right now)
2023-11-21 19:39:01 +01:00
Nathan Adams
151b209f5d
web: Disable overlay when debugging demo
2023-11-21 19:39:01 +01:00
Nathan Adams
20bd980189
web: Copy extension player restyling to demo
2023-11-21 19:39:01 +01:00
Nathan Adams
cf9d99f3fb
web: Convert demo to typescript
2023-11-21 19:39:01 +01:00
Nathan Adams
5c6b544a11
web: Disallow const enums
2023-11-21 19:39:01 +01:00
Nathan Adams
770b671bc5
web: PublicAPI.negotiate's prevRuffle argument is optional
2023-11-21 19:39:01 +01:00
renovate[bot]
7757d060ff
fix(deps): update rust dependencies to v2
2023-11-20 09:03:08 +01:00
renovate[bot]
2a83274c7f
fix(deps): update rust dependencies
2023-11-19 21:09:42 -05:00
Daniel Jacobs
ffdb248872
demo/extension: Expand iPad check to work for iPadOS 13+
2023-11-15 08:04:23 -05:00
Crowdin Bot
b196c8d1bc
chore: Update translations from Crowdin
2023-11-13 16:53:02 -05:00
Nathan Adams
54fae4fd5b
web: Fix enter key's keyCode, + test
2023-11-13 21:08:38 +01:00
Nathan Adams
0f579ced38
web: Add getTraceOutput util
2023-11-13 21:08:38 +01:00
Nathan Adams
88d5177653
web: Await the player loading in jsApiBefore
2023-11-13 21:08:38 +01:00
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
Adrian Wielgosik
112b442ad6
Revert "web: Add comment about when a default height of 200px is used"
...
This reverts commit 48c7c52aa2
.
2023-10-05 00:50:22 +02:00
dependabot[bot]
4f4f871cfa
build(deps-dev): bump postcss from 8.4.27 to 8.4.31 in /web
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.4.27 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.4.27...8.4.31 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 23:25:59 +02:00
Crowdin Bot
965b42fd3c
chore: Update translations from Crowdin
2023-10-03 23:07:54 +02:00
Daniel Jacobs
48c7c52aa2
web: Add comment about when a default height of 200px is used
2023-10-03 20:14:42 +02:00
Daniel Jacobs
b6d0e2ecce
web: As appropriate use embed height mentioned in Mozilla bug 810082 c65
2023-10-03 20:14:42 +02:00
Crowdin Bot
1886a5d434
chore: Update translations from Crowdin
2023-10-02 23:16:26 +02:00
Daniel Jacobs
1d3728e7ed
i18n: Localize hardware accelerartion information
2023-10-02 14:21:57 -04:00
Daniel Jacobs
0158511a8e
web: Display a pop-up about hardware acceleration when it's disabled
2023-10-02 14:21:57 -04:00
renovate[bot]
e8da6159e4
chore(deps): update dependency chromedriver to v117
2023-10-02 13:13:07 +02:00
renovate[bot]
030e9270c5
chore(deps): update node.js dependencies
2023-10-02 13:02:30 +02:00
Crowdin Bot
58b18e282b
chore: Update translations from Crowdin
2023-10-02 00:57:34 +02:00
sleepycatcoding
f140e7a14b
core: Place jpegxr texture support behind feature flag ( #13348 )
2023-09-29 18:46:54 -04:00
Crowdin Bot
bd67a5845b
chore: Update translations from Crowdin
2023-09-24 12:13:31 +02:00
Crowdin Bot
5b9806bdb3
chore: Update translations from Crowdin
2023-09-19 23:41:23 +02:00
Daniel Jacobs
a768399612
web: Only re-run polyfill when embed or object added to DOM
2023-09-19 20:49:27 +02:00
Daniel Jacobs
65d1ba4803
web: Switch from deprecated rules property to preferred cssRules
2023-09-18 21:28:27 +02:00
Daniel Jacobs
c1f53b3253
web: Fix deletion order of dynamicStyles rules
2023-09-18 21:28:27 +02:00
Crowdin Bot
695c2ff9f5
chore: Update translations from Crowdin
2023-09-18 00:03:15 +02:00
renovate[bot]
37e2c06034
fix(deps): update rust dependencies
2023-09-18 00:00:45 +02:00
Crowdin Bot
7f416f85a8
chore: Update translations from Crowdin
2023-09-14 23:50:25 +02:00
Daniel Jacobs
33eb739ee6
web: Add width, height, and type to RufflePlayer ( fix #13176 )
2023-09-14 23:49:31 +02:00
Daniel Jacobs
d6bc408286
web: Don't show context menu when any modal is open ( fix #13096 )
2023-09-08 20:26:18 +02:00
Kornelius Rohrschneider
53ba75d587
Move logarithmic volume transformation to AudioMixer
...
Previously, the volume transformation to adapt the volume for
logarithmic hearing has been performed in the VolumeControls Rust struct
and TypeScript class each.
Since this calculation is the same on desktop and web and should be
implemented in the audio backend, it has been moved into the
AudioMixer::mix_audio method.
The VolumeControls struct and class now only calculate the linear volume
out of the checkbox and the slider.
Player::set_volume and Player::volume now don't take and return the
adapted volume, but use the linear volume (which gets saved internally).
2023-09-07 00:51:58 +02:00
Kornelius Rohrschneider
f04470247e
web: Add web volume controls
...
The web version of Ruffle now has a volume controls window. It can be
accessed through the right-click menu (Right-click > Volume controls).
It contains a mute button and a slider from 0 to 100.
To achieve this, a new volume controls modal has been added to the
shadow template.
TypeScript is used to create texts, set the controls and add event
listeners to update the settings and controls when being changed.
The volume settings set in the GUI are saved in a new VolumeControls
class, which is also used to calculate the real volume (adapted for
logarithmic hearing) out of the entered volume and the mute checkbox.
As soon as the volume is changed in the GUI, the real volume will be set
in the Ruffle instance.
The existing ftl files have been adapted (and new ones have been
created) to include the new multilingual text in the right-click menu
and the volume controls window.
This closes #1771 .
2023-09-07 00:51:58 +02:00
Crowdin Bot
d195da59af
chore: Update translations from Crowdin
2023-09-06 23:55:17 +02:00
Crowdin Bot
654799b1a9
chore: Update translations from Crowdin
2023-09-06 12:22:24 +02:00
renovate[bot]
dabc2d56b9
fix(deps): update rust dependencies
2023-09-04 10:25:24 +02:00
Crowdin Bot
2996f97578
chore: Update translations from Crowdin
2023-09-02 15:43:08 +02:00
renovate[bot]
d14550e851
chore(deps): update node.js dependencies
2023-09-02 15:19:06 +02:00
renovate[bot]
cbd0c89f9b
chore(deps): update npm to v10
2023-09-02 15:10:07 +02:00
Crowdin Bot
cf9171cb78
chore: Update translations from Crowdin
2023-08-31 00:13:04 +02:00
renovate[bot]
4e75c3890a
fix(deps): update rust dependencies
2023-08-28 07:39:35 +02:00
Crowdin Bot
378b415a3b
chore: Update translations from Crowdin
2023-08-26 23:27:47 +02:00
Daniel Jacobs
18e89f6132
web: Remove all occurences of innerHTML (except in test files) ( #12937 )
...
* web: Remove most occurences of innerHTML
* web: Use helper methods for shadow template element creation
* web: Refactor createErrorFooter function
* web: Shadow template code cleanup
* web: Add helper function to add CSS rules to shadow template
---------
Co-authored-by: nosamu <71368227+n0samu@users.noreply.github.com>
2023-08-26 22:51:16 +03:00
nosamu
11a17dfb4e
extension: Don't show CORS error on internal player page
...
The player page is not restricted by CORS
2023-08-26 11:33:56 +02:00
nosamu
3df6e13848
extension: Fix HTML structure of 'open in new tab' message
2023-08-26 11:33:56 +02:00
nosamu
7838d4549b
web: Don't try to enter fullscreen if already in fullscreen & vice versa
...
Fixes #9615
2023-08-26 11:09:02 +03:00
nosamu
b456296769
extension: Persist content script registration across sessions
2023-08-26 01:21:07 +02:00
Crowdin Bot
07c236df5b
chore: Update translations from Crowdin
2023-08-26 00:27:56 +02:00
nosamu
3920eb90cd
extension: Register listeners synchronously at top level of service worker
2023-08-25 23:56:52 +02:00
Crowdin Bot
3ccda582e1
chore: Update translations from Crowdin
2023-08-25 11:50:24 +02:00
Crowdin Bot
1b03ce9ae6
chore: Update translations from Crowdin
2023-08-23 23:59:54 +02:00
David Wendt
7158039135
audio: Audio streamed from FLVs do not have the SWF MP3 header
2023-08-23 15:36:20 -06:00
Crowdin Bot
d55cc23f55
chore: Update translations from Crowdin
2023-08-22 23:06:46 +02:00
Daniel Jacobs
acc315ebfb
extension: Fix check for scripting permission
2023-08-22 22:47:28 +02:00
Daniel Jacobs
eef65da345
extension: Remove unnecessary lambda functions
2023-08-22 22:17:18 +02:00
Nathan Adams
9d05a37f34
web: Make open-in-new-tab open the local player directly, and disable takeover of all SWF urls
2023-08-22 19:35:05 +02:00
Daniel Jacobs
ba52438c27
extension: Fix-ups for extension player page
2023-08-22 17:50:37 +02:00
Crowdin Bot
3de4b4e989
chore: Update translations from Crowdin
2023-08-21 23:09:03 +02:00
renovate[bot]
2f4c7d2fe3
fix(deps): update rust dependencies
2023-08-21 08:59:07 +02:00
Daniel Jacobs
1a28f83229
extension: Address review feedback
2023-08-20 19:51:14 +02:00
Nathan Adams
d5fa0f56ea
web: Make loadedConfig private again, add reload() method instead
2023-08-20 19:51:14 +02:00
Daniel Jacobs
e7df6d890e
extension: Make the player page a local Ruffle demo
2023-08-20 19:51:14 +02:00
renovate[bot]
98eb789f21
chore(deps): update node.js dependencies
2023-08-19 14:37:36 +02:00
Nathan Adams
cdaf06838c
web: Add short_name for extension
2023-08-19 10:02:53 +02:00
Nathan Adams
d21520a4c7
web: Rename extension to 'Ruffle - Flash Emulator', to increase visibility for everyone searching for 'Flash'
2023-08-19 01:11:25 +02:00
Nathan Adams
9328caa713
web: Remove webRequest permission from chrome extension
2023-08-17 08:51:57 +02:00
Crowdin Bot
cad8e10f30
chore: Update translations from Crowdin
2023-08-15 00:28:29 +02:00
Nathan Adams
ee8da51c6b
web: Use 'chrome?.scripting' to test for direct vs indirect pluginPolyfill pmethod, as firefox pretends to be chrome here
2023-08-14 21:21:20 +02:00
Nathan Adams
49d0d417c2
web: Make firefox also use the hash for player.html swf url
2023-08-14 21:21:20 +02:00
Nathan Adams
2f9387f1ac
web: Inject plugin polyfill immediately, on chrome/edge
2023-08-14 21:21:20 +02:00
Nathan Adams
7533923f9b
web: Remove check for RufflePlayer in content.ts - it can't possibly ever be true
2023-08-14 21:21:20 +02:00
Nathan Adams
1ec12f0931
web: Inject polyfill via url instead of inline, on chrome/edge
2023-08-14 21:21:20 +02:00
Nathan Adams
71000dd19a
web: When using manifest v3, do swf takeover using declarativeNetRequest
2023-08-14 21:21:20 +02:00
Nathan Adams
92ea9a535d
web: Change manifest v3 background script to a service worker
2023-08-14 21:21:20 +02:00
Nathan Adams
5847772b58
web: Apply 'incognito' directly to the v3 manifest, instead of in a script
2023-08-14 21:21:20 +02:00
Nathan Adams
c3b486f19b
web: Apply 'wasm-unsafe-eval' directly to the v3 manifest, instead of in a script (and renamed from 'wasm-eval')
2023-08-14 21:21:20 +02:00
Nathan Adams
8b3ea305a5
web: Changed web_accessible_resources to an object in manifest v3
2023-08-14 21:21:20 +02:00
Nathan Adams
9ddf9b9621
web: Extract "all_urls" in manifest v3 to "host_permissions" from "permissions"
2023-08-14 21:21:20 +02:00
Nathan Adams
54be7ffacd
web: Changed manifest v3 content_security_policy to an object containing extension_pages
2023-08-14 21:21:20 +02:00
Nathan Adams
22601514bc
web: Rename manifest v3 browser_action to action, and removed browser_style as it's no longer an option
2023-08-14 21:21:20 +02:00
Nathan Adams
353193b3e4
web: Split manifest into firefox vs other
2023-08-14 21:21:20 +02:00
Nathan Adams
283a0694de
web: Remove ruffle extension detection plugin
2023-08-14 20:51:11 +02:00
Crowdin Bot
70b43fc2ff
chore: Update translations from Crowdin
2023-08-12 01:36:46 +02:00
Tom Schuster
0a55c04eaf
web: Include the version in the new ruffle instance console message
2023-08-12 01:13:59 +02:00
Crowdin Bot
8e1632ab22
chore: Update translations from Crowdin
2023-08-11 10:23:54 +02:00
nosamu
5936de03e7
extension: Add exclusions for Tuxedo Computers and Taobao
...
Problems reported in #11906 and in a Chrome Web Store review
2023-08-09 08:34:59 +02:00
Crowdin Bot
205ef09cc6
chore: Update translations from Crowdin
2023-08-08 23:49:31 +02:00
renovate[bot]
a4b179e1e0
chore(deps): lock file maintenance rust dependencies
2023-08-08 23:19:16 +02:00
Nathan Adams
9125d30e76
web: Don't store the full semver version as the version name, just construct it when needed
2023-08-08 14:33:49 -06:00
Daniel Jacobs
c5aa5189e7
extension: Allow video to load from any source in internal player page
2023-08-07 14:31:33 -06:00
Daniel Jacobs
91c2d0efa4
web: Create modal to hold unsupported videos
2023-08-07 14:31:33 -06:00
Daniel Jacobs
dbb5e381f2
core/desktop/web: Play unsupported videos with browser
2023-08-07 14:31:33 -06:00
TÖRÖK Attila
ddc290ddf9
chore: Appease prettier.
2023-08-07 09:22:58 +03:00
renovate[bot]
863ce90d9d
chore(deps): bump node.js dependencies
2023-08-07 09:22:58 +03:00
Nathan Adams
44623bf28f
web: Remove extension specific code in polyfill, doesn't need to exist now
2023-08-06 23:55:39 +02:00
Nathan Adams
7a39dc9176
web: Add build date as part of version buildinfo
2023-08-06 23:55:39 +02:00
Nathan Adams
64d951099d
web: Compare build ident if all else fails, when finding best versions
2023-08-06 23:55:39 +02:00
Nathan Adams
ee1e8ec267
web: Extension shouldn't set options that are default
2023-08-06 23:55:39 +02:00
Nathan Adams
4f4dbc7973
web: Fix PublicAPI superseding, it previously always thought 'the latest ran' should replace the older version
2023-08-06 23:55:39 +02:00
Nathan Adams
c074047551
chore: Add .idea to gitignore
2023-08-06 17:37:41 +02:00
Adrian Wielgosik
c41d7d56f0
build: Reduce disk use of reproducible docker builds
2023-08-05 12:07:59 +02:00
Crowdin Bot
98c286e997
chore: Update translations from Crowdin
2023-08-04 17:18:58 +02:00
renovate[bot]
477ff400a7
chore(deps): lock file maintenance rust dependencies
2023-08-02 13:36:13 +02:00
renovate[bot]
7026adb366
chore(deps): update dependency chromedriver to v115
2023-08-01 20:41:34 +03:00
sleepycatcoding
7acc25d319
web: Update socket stub
2023-07-31 22:32:03 +02:00
Oleksandr Kalko
2c4bd5c5c7
chore: Run `npm update --save`
2023-07-30 21:12:47 +00:00
Crowdin Bot
280de7cd61
chore: Update translations from Crowdin
2023-07-27 16:39:17 +02:00
Nathan Adams
35234dccec
web: Ensure we set ourselves as the FSCommand provider
2023-07-26 17:00:15 +02:00
Nathan Adams
1a0a82d898
core: Move fscommand execution outside of ExternalInterfaceProvider, so it can be implemented without causing ExternalInterface.available to become true
2023-07-26 17:00:15 +02:00
renovate[bot]
3326aef6a8
chore(deps): lock file maintenance node.js dependencies
2023-07-25 17:42:46 +02:00
renovate[bot]
3e63a88c34
chore(deps): lock file maintenance rust dependencies
2023-07-25 08:23:28 +03:00
sleepycatcoding
75672ae998
web, tests: Update connect_socket stubs
2023-07-23 09:13:01 +02:00
sleepycatcoding
ed22a7a23b
web, tests: remove Option for connection timeout
2023-07-23 09:13:01 +02:00
sleepycatcoding
486c0ca149
web, tests: Ignore timeout parameter
2023-07-23 09:13:01 +02:00
sleepycatcoding
0699c34881
chore: Fmt
2023-07-23 09:13:01 +02:00
sleepycatcoding
e59dd9a8ef
web, tests: fix connect_socket stubs
2023-07-23 09:13:01 +02:00
sleepycatcoding
ff1a9bb083
web: Stub connect_socket()
2023-07-23 09:13:01 +02:00
Nathan Adams
e610c9a9ce
web: Readd warnOnUnsupportedContent for backwards compatibility, but mark it deprecated and unused
2023-07-22 23:08:42 +02:00
Nathan Adams
586c3bebf6
core: Remove unsupported content warning
2023-07-22 23:08:42 +02:00
Daniel Jacobs
46a726efc6
chore: formatting
2023-07-21 23:34:43 +02:00
Daniel Jacobs
e99d7f63dc
extension: Don't throw error when Firefox add-on is in review
2023-07-21 23:34:43 +02:00
Nathan Adams
3447b8bfdd
chore: npm run format
2023-07-20 14:00:04 +02:00
renovate[bot]
0cbfda22db
chore(deps): update node.js dependencies
2023-07-20 14:00:04 +02:00
Crowdin Bot
b2afcbaf3e
chore: Update translations from Crowdin
2023-07-20 13:41:04 +02:00
Daniel Jacobs
affff425c5
web: Fix typo in build_wasm.js
2023-07-19 11:37:15 -04:00
Kornelius Rohrschneider
a0d0b8e638
core: Refactor & improve NavigatorBackend implementations
...
All NavigatorBackend implementations have been refactored, resulting in
improved code quality, less duplicated code, more consistent and easier
to understand procedures, additional error handling and better error
messages.
A resolve_url method has been added to the NavigatorBackend trait. It
takes a URL and and resolves it to the actual URL from which a file can
be fetched (including handling of relative links and pre-processing). It
has been implemented in each NavigatorBackend implementation.
Duplicated code has been put into new public functions in
core/src/backend/navigator.rs which are called by all NavigatorBackend
implementations.
ExternalNavigatorBackend:
- The navigate_to_url and fetch methods have been adapted to use
resolve_url, removing redundant code.
- Error handling has been added in case that the URL can't be converted
to a PathBuf.
- A TODO about differences between the flash player fetch and the
Ruffle fetch implementation has been added.
WebNavigatorBackend:
- The previous resolve_url method exclusively to the WebNavigatorBackend
has been replaced by the new resolve_url method. It is used by
navigate_to_url and fetch.
- resolve_url now always pre-processes the URL if it's valid (even if no
base_url exists) and explicitly returns whether the URL can be parsed.
- navigate_to_url now traces an explanatory error each if the URL can't
be parsed or is local.
- fetch now returns an explanatory error each if the URL can't be parsed
or is local (previously, a vague "Got JS error" has been returned).
TestNavigatorBackend & NullNavigatorBackend:
- fetch pre-processes the URL now (using the resolve_url implementation).
- If the URL isn't local, an explanatory error is returned (previously,
it was just an "Invalid URL" error).
- If the URL can't be parsed, an explanatory error with the reason is
returned (previously, it was just an "Invalid URL" error).
Additionally, error messages in all NavigatorBackend implementations
have been improved and made more consistent, e.g. if a local file can't
be read.
2023-07-17 00:08:02 +02:00
Kornelius Rohrschneider
687c0e7516
core: Complete MovieClip error state & Change uncompressed_len to i32
...
Previously, the MovieClip error state contained one TODO in order to be
completely implemented: The HeaderExt variable uncompressed_len needs to
be -1 in the error state, but its type has been u32.
The type has now been changed to i32, and the variable is set to -1 in
the default_error_header function. Therefore, the MovieClip error state
is now fully implemented.
Other connected functions and variables like SwfMovie::uncompressed_len
or MovieClip::total_bytes have been adjusted to this type change. Code
has been adjusted if needed where this value is used.
2023-07-17 00:08:02 +02:00
Kornelius Rohrschneider
893052c2a6
core: Add MovieClip error state
...
A load_error_swf function has been added to the Loader. It makes the
MovieClip enter the error state in which some attributes have certain
error values to signal that no valid file could be loaded. This happens
if no file could be loaded or if the loaded content is no valid
supported content.
The function creates an error state movie stub using the new
SwfMovie::error_movie function (which uses a new default_error_header
function) and configures remaining variables with the
movie_not_available method.
One TODO in order for the error state to be completely implemented has
been added.
Since the error state of the MovieClip includes the final URL of the SWF
file obtained after any redirects, the load_error_swf and
movie_loader_error functions (now) take an swf_url attribute.
To get this URL in case no file could be loaded, the
NavigatorBackend::fetch method has been changed to return an
ErrorResponse struct (including the url and the actual error) in the
error case. The Response struct returned in the success case has been
renamed to SuccessResponse.
All fetch implementations have been adapted accordingly. Code has been
adjusted to return the actual error where that's needed.
Documentation has been added and improved.
2023-07-17 00:08:02 +02:00
Nathan Adams
34c0d41fca
web: Remove no longer needed depencency 'shx'
2023-07-15 23:48:04 +02:00
Nathan Adams
be48ff357f
web: Add build_wasm.js script to replace chained npm scripts
2023-07-15 23:48:04 +02:00
nosamu
48e37914cf
web: Make isTouch indicate the source of the last PointerEvent
...
This allows the behavior of the context menu to change depending
on whether it was triggered by a touch or right-click.
2023-07-15 19:14:13 +02:00
nosamu
e7689ac883
Revert "web: Make isTouch locally scoped to showContextMenu"
...
This completely broke touch detection
2023-07-15 19:14:13 +02:00
renovate[bot]
f0607d6a1f
chore(deps): lock file maintenance rust dependencies
2023-07-11 22:42:51 +02:00
dependabot[bot]
fe4b02fe2a
build(deps-dev): bump stylelint from 15.9.0 to 15.10.1 in /web
...
Bumps [stylelint](https://github.com/stylelint/stylelint ) from 15.9.0 to 15.10.1.
- [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/15.9.0...15.10.1 )
---
updated-dependencies:
- dependency-name: stylelint
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 08:28:22 +02:00
Aaron Hill
009fab1889
core: Expose `LoaderInfo.parameters` and fix other properties
...
When using a 'Loader', properties on the 'contentLoaderInfo' become
set during specific events in the load sequence. In particular,
'LoaderInfo.bytesTotal' becomes available during the first 'progress'
event.
Also, 'LoaderInfo.parameters' is now properly set from the URL query
parameters. In Flash player, this work even with filesystem urls
(e.g. 'file:///some/path/to/file.txt?paramOne=valOne' will load
a file named 'file.txt', setting and expose the parameter 'paramOne'
with value 'valOne' in `LoaderInfo.parameters`). This required some
cleanup to the desktop and test NavigatorBackend impls to strip
out query parameters when loading a parameter from disk.
Previously, we would set `SwfMovie.parameters` manually from the url.
Now, the various `SwfMovie` constructors automatically extract
query parameters from the provided url. Outside of `SwfMovie`,
we only append *extra* parameters (e.g. those set from `flashvars`).
This makes CPMStar ads work, since the loaded SWF needs to access
`LoaderInfo.parameters`
2023-07-05 19:47:16 -04:00
Aaron Hill
3401971729
web: Use Rc, Cell, and RefCell for non-thread-safe types
2023-07-04 20:50:46 +02:00
TÖRÖK Attila
0fe8469d24
chore: Run `npm update --save` in `web`
...
Also `npm install` to make sure `package-lock.json` is clean.
2023-07-02 13:55:24 +02:00
Crowdin Bot
80588d614d
chore: Update translations from Crowdin
2023-07-02 11:41:18 +02:00
renovate[bot]
898b2c8948
chore(deps): lock file maintenance node.js dependencies
2023-07-01 12:20:10 +03:00
Crowdin Bot
29a5c6a4cd
chore: Update translations from Crowdin
2023-07-01 00:47:31 +02:00
Crowdin Bot
1430e98851
chore: Update translations from Crowdin
2023-06-28 23:19:47 +02:00
relrelb
f4c9142399
web: Assign `isExtension` only if `currentScriptURL` is available
2023-06-25 08:09:24 +03:00
relrelb
e4bb8a60fa
web: Don't report extension URL on error
2023-06-25 08:09:24 +03:00
Crowdin Bot
9e066bc14f
chore: Update translations from Crowdin
2023-06-24 19:58:34 +02:00
Daniel Jacobs
9a093d20be
web: Don't auto-panic on browsers without ReadableStream ( #11699 )
...
* web: Don't auto-panic on browsers without ReadableStream
* web: Add comment explaining Pale Moon issue
* web: Simplify ReadableStream check
2023-06-24 15:10:19 +00:00
Crowdin Bot
b1149cd267
chore: Update translations from Crowdin
2023-06-23 11:49:47 +02:00
nosamu
58780b3a4e
extension: Ignore publicPath config
2023-06-23 09:05:37 +03:00
nosamu
99ed30f6e7
web: Set isExtension var using current script URL
2023-06-23 09:05:37 +03:00
Crowdin Bot
67a5a2923f
chore: Update translations from Crowdin
2023-06-20 23:52:03 +02:00
nosamu
700f765f91
web: Use for..of instead of for..in loops
2023-06-18 22:09:20 +02:00
Toad06
31bb117325
web: Allow setting `allowScriptAccess` on global config
2023-06-18 08:18:52 +03:00
Crowdin Bot
73482c6e72
chore: Update translations from Crowdin
2023-06-18 01:02:34 +02:00
Crowdin Bot
ca549e482c
chore: Update translations from Crowdin
2023-06-17 19:25:33 +02:00
Toad06
5e6366d14a
web: Disabling `allowScriptAccess` also prevents opening URLs in the same tab
2023-06-16 18:49:04 +03:00
renovate[bot]
f33b9eea3c
chore(deps): lock file maintenance node.js dependencies
2023-06-16 01:03:29 +03:00
Nathan Adams
23352db39f
chore: Update wasm-bindgen from 0.2.86 -> 0.2.87
2023-06-15 20:50:04 +02:00
renovate[bot]
fc933f485f
fix(deps): update wasm-bindgen
2023-06-15 20:50:04 +02:00
renovate[bot]
23d7e8e5ab
chore(deps): update dependency chromedriver to v114
2023-06-15 20:09:03 +02:00
Crowdin Bot
56a87dec50
chore: Update translations from Crowdin
2023-06-15 13:10:16 +02:00
Aaron Hill
cd2c7f6f2f
tests: Enable tracing_subscriber in tests
...
Previously, we weren't displaying any Ruffle logs when running tests.
2023-06-14 17:15:31 -05:00
nosamu
202fe2f1bb
core: Add options to set and force the stage alignment
2023-06-14 16:04:14 +02:00
Daniel Jacobs
0c1cd6aa4f
selfhosted: Add a config option to enable Ruffle even on Flash browsers
2023-06-14 14:31:44 +02:00
Daniel Jacobs
a666d35161
web: Stop error if Fetch response lacks headers
2023-06-13 08:52:58 +03:00
Crowdin Bot
834297f110
chore: Update translations from Crowdin
2023-06-12 12:28:05 +02:00
AllinolCP
44ff49aa53
core: Fix status code implementation for AVM1 and implement HTTPStatusEvent.HTTP_STATUS for avm2 ( #11360 )
2023-06-10 03:06:26 +00:00
renovate[bot]
a621472336
chore(deps): lock file maintenance rust dependencies
2023-06-09 20:17:25 +03:00
Oleksandr Kalko
70aa8385b7
chore: Upgrade NodeJS dependencies ( #11352 )
2023-06-09 15:50:59 +00:00
Nathan Adams
137986c384
core: Add PlayerBuilder::with_external_interface
2023-06-09 13:03:46 +02:00
Aaron Hill
66f3198f50
desktop/web: Increase stack size on Windows and wasm
...
This works around a stack overflow with Bloonts Tower Defense 5,
where we have over 400 stack frames at once due to deep
`construct_frame` recursion in `goto` execution.
2023-06-08 22:17:27 -05:00
Crowdin Bot
93f5869005
chore: Update translations from Crowdin
2023-06-08 00:57:49 +02:00
Daniel Jacobs
55efb80dd6
web: Don't try to use Ruffle on browsers with Flash support
2023-06-07 23:48:39 +02:00
Crowdin Bot
808deaa378
chore: Update translations from Crowdin
2023-06-05 09:00:51 +02:00
Crowdin Bot
9767ffca96
chore: Update translations from Crowdin
2023-06-03 15:58:24 +02:00
renovate[bot]
6bc5d72995
chore(deps): lock file maintenance node.js dependencies
2023-06-01 08:59:52 +03:00
renovate[bot]
8bf44926af
chore(deps): update node.js dependencies
2023-06-01 08:45:23 +03:00
Daniel Jacobs
a2fa855156
web: Update youtube check to be more accurate using regex
2023-05-31 21:06:25 +03:00
relrelb
17e0eb112b
web: Enforce ESLint's `camelcase` rule
2023-05-31 08:22:15 +03:00
Crowdin Bot
6dc3743f4b
chore: Update translations from Crowdin
2023-05-30 23:21:28 +02:00
Toad06
7830a8232b
web: Allow extra MIME types in the polyfill
2023-05-30 06:35:29 +00:00
renovate[bot]
847dece735
chore(deps): lock file maintenance rust dependencies
2023-05-28 23:54:33 -05:00
Aaron Hill
14c6d1d959
avm2: Implement URLRequest.requestHeaders
...
These are directly set on the underlying navigator's HTTP
request type, and get printed out in our test navigator backend.
No validation of the header names is performed - on web, this will be
enforced by the browser.
2023-05-28 12:07:37 -05:00
Toad06
6c0cf8fc83
web: Fix minor issues with the context menu
2023-05-28 07:51:00 +03:00
Crowdin Bot
e98230c988
chore: Update translations from Crowdin
2023-05-27 00:34:44 +02:00
Crowdin Bot
f3dd5dbfb6
chore: Update translations from Crowdin
2023-05-25 00:27:48 +02:00
Crowdin Bot
fe4475d553
chore: Update translations from Crowdin
2023-05-23 00:05:58 +02:00
renovate[bot]
5d2477fe98
chore(deps): lock file maintenance rust dependencies
2023-05-22 19:12:08 +03:00
Crowdin Bot
fde4c99560
chore: Update translations from Crowdin
2023-05-22 08:51:22 +03:00
renovate[bot]
b8c56a1b89
chore(deps): lock file maintenance
2023-05-22 08:12:12 +03:00
nosamu
7dfc36c6fc
web: Support pasting from clipboard
2023-05-21 15:26:42 +02:00
nosamu
ee956927b7
core: Fix TextField.maxChars handling and address other reviews
2023-05-21 15:26:42 +02:00
nosamu
4e579b7e68
core: Move left/right arrow handling to `text_control_input`
2023-05-21 15:26:42 +02:00
nosamu
0dbb4c46e4
core: Move `Delete` and `Backspace` handling to `text_control_input()`
...
Co-authored-by: jmckiern <jmckiern@tcd.ie>
2023-05-21 15:26:42 +02:00
nosamu
fab72ac01c
core: Implement handling of text control input
...
Co-authored-by: jmckiern <jmckiern@tcd.ie>
2023-05-21 15:26:42 +02:00
jmckiern
67d74047a9
core: Add clipboard_content getter
2023-05-21 15:26:42 +02:00
renovate[bot]
af23ec0a03
chore(deps): lock file maintenance
2023-05-21 07:54:11 +03:00
renovate[bot]
7190c42e31
chore(deps): lock file maintenance
2023-05-21 07:15:36 +03:00
Toad06
0ff4f26db9
extension: Add a button to reset settings
2023-05-21 00:03:19 +02:00
renovate[bot]
2ca0140192
chore(deps): lock file maintenance node.js dependencies
2023-05-20 23:41:57 +03:00
Crowdin Bot
6a00475358
chore: Update translations from Crowdin
2023-05-20 00:12:12 +02:00
Toad06
4092e70bf4
extension: Remove "tabs" permission
2023-05-19 01:03:28 +02:00
nosamu
77f2875898
extension: Set charset attribute of script tag instead of escaping characters
2023-05-18 22:39:06 +02:00
Crowdin Bot
e3da17b426
chore: Update translations from Crowdin
2023-05-18 13:01:57 +02:00
Toad06
b9abc463d6
web: Minor improvements to the extension player page
2023-05-18 03:34:19 +03:00
renovate[bot]
f969bdce71
fix(deps): update wasm-bindgen
2023-05-17 06:44:50 +03:00