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
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
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
Nathan Adams
283a0694de
web: Remove ruffle extension detection plugin
2023-08-14 20:51:11 +02:00
Tom Schuster
0a55c04eaf
web: Include the version in the new ruffle instance console message
2023-08-12 01:13:59 +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
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
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
64d951099d
web: Compare build ident if all else fails, when finding best versions
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
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
Nathan Adams
3447b8bfdd
chore: npm run format
2023-07-20 14:00: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
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
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
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
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
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
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
Daniel Jacobs
55efb80dd6
web: Don't try to use Ruffle on browsers with Flash support
2023-06-07 23:48:39 +02: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
Toad06
7830a8232b
web: Allow extra MIME types in the polyfill
2023-05-30 06:35:29 +00:00
Toad06
6c0cf8fc83
web: Fix minor issues with the context menu
2023-05-28 07:51:00 +03:00
nosamu
7dfc36c6fc
web: Support pasting from clipboard
2023-05-21 15:26:42 +02:00
Toad06
b9abc463d6
web: Minor improvements to the extension player page
2023-05-18 03:34:19 +03:00
Daniel Jacobs
56afce2e3a
web: Fix localStorage check on Firefox when dom.storage.enabled is false
2023-05-16 22:10:42 +03:00
Toad06
9671b9b824
web: Download all sols as single .zip
2023-05-13 19:19:00 +03:00
relrelb
e01b613a78
web: Fix another instance of "Unable to lock Ruffle core"
...
After a panic, `Ruffle::renderer_debug_info()` cannot be called since
it tries to immutably borrow the underlying `Player`, but `Ruffle::tick()`
already holds it mutably.
As a fix, simply use the `_cachedDebugInfo` which is fetched in
advance, before any panic occurs. Rename it to just `rendererDebugInfo`
(without "cache" in its name), because now it's mandated.
2023-05-11 08:33:33 +03:00
Daniel Jacobs
ea78bf2d39
web: Make isTouch locally scoped to showContextMenu
2023-05-10 17:31:07 +03:00
Nathan Adams
72769eeefa
web: Localise text inside shadow template
2023-05-09 00:06:49 +02:00
Nathan Adams
a29f1f75dc
web: Localise the 'cant embed' message
2023-05-09 00:06:49 +02:00
Nathan Adams
1db72a0ffd
web: Localise error messages
2023-05-09 00:06:49 +02:00
Nathan Adams
2430cf192e
web: Localise fullscreen toggle
2023-05-09 00:06:49 +02:00
Nathan Adams
d70faeec04
web: Localise save manager prompts
2023-05-09 00:06:49 +02:00
Nathan Adams
9be198212b
web: Translate various button texts
2023-05-09 00:06:49 +02:00
Nathan Adams
b7794749d8
web: Localise the unsupported avm2 message
2023-05-09 00:06:49 +02:00