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
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
renovate[bot]
997ad1643a
chore(deps): update node.js dependencies
2023-10-27 23:40:04 +02: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
Crowdin Bot
1ca5f714f9
chore: Update translations from Crowdin
2023-10-23 03:21:14 +02:00
Crowdin Bot
e6f9796094
chore: Update translations from Crowdin
2023-10-17 23:31:22 +02:00
Crowdin Bot
0127c98fdf
chore: Update translations from Crowdin
2023-10-15 19:17:00 +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
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
Crowdin Bot
5b9806bdb3
chore: Update translations from Crowdin
2023-09-19 23:41:23 +02:00
Crowdin Bot
695c2ff9f5
chore: Update translations from Crowdin
2023-09-18 00:03:15 +02:00
Crowdin Bot
7f416f85a8
chore: Update translations from Crowdin
2023-09-14 23:50:25 +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
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
Crowdin Bot
cf9171cb78
chore: Update translations from Crowdin
2023-08-31 00:13:04 +02:00
Crowdin Bot
378b415a3b
chore: Update translations from Crowdin
2023-08-26 23:27:47 +02: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
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
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
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
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
Daniel Jacobs
c5aa5189e7
extension: Allow video to load from any source in internal player page
2023-08-07 14:31:33 -06:00
renovate[bot]
863ce90d9d
chore(deps): bump node.js dependencies
2023-08-07 09:22:58 +03:00
Nathan Adams
ee1e8ec267
web: Extension shouldn't set options that are default
2023-08-06 23:55:39 +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
renovate[bot]
3326aef6a8
chore(deps): lock file maintenance node.js dependencies
2023-07-25 17:42:46 +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
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
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
Crowdin Bot
9e066bc14f
chore: Update translations from Crowdin
2023-06-24 19:58:34 +02:00
Crowdin Bot
b1149cd267
chore: Update translations from Crowdin
2023-06-23 11:49:47 +02: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
Crowdin Bot
ca549e482c
chore: Update translations from Crowdin
2023-06-17 19:25:33 +02:00
Crowdin Bot
56a87dec50
chore: Update translations from Crowdin
2023-06-15 13:10:16 +02:00
nosamu
202fe2f1bb
core: Add options to set and force the stage alignment
2023-06-14 16:04:14 +02:00
Crowdin Bot
834297f110
chore: Update translations from Crowdin
2023-06-12 12:28:05 +02:00
Oleksandr Kalko
70aa8385b7
chore: Upgrade NodeJS dependencies ( #11352 )
2023-06-09 15:50:59 +00:00
Crowdin Bot
93f5869005
chore: Update translations from Crowdin
2023-06-08 00:57:49 +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
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
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
Crowdin Bot
fde4c99560
chore: Update translations from Crowdin
2023-05-22 08:51:22 +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