ruffle/core
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
..
assets chore: Update translations from Crowdin 2023-07-01 00:47:31 +02:00
build_playerglobal chore(deps): lock file maintenance rust dependencies 2023-07-11 22:42:51 +02:00
macros chore(deps): lock file maintenance rust dependencies 2023-07-11 22:42:51 +02:00
src core: Add MovieClip error state 2023-07-17 00:08:02 +02:00
Cargo.toml avm1: Fix panic on writing self-referential SharedObjects 2023-07-15 11:45:02 +02:00
build.rs core: Added ability to mark stubs inside actionscript 2023-02-07 20:34:59 +01:00