diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-04-19 09:20:48 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-20 06:19:41 +0200 |
commit | d2f9645cc00be122625298a7d7ddbb36bb5ba3aa (patch) | |
tree | bb8683fe52a4f5860acfb83b8662328efce3e786 /.editorconfig | |
parent | 8d4d01d99ab850676a8d48aaadf875ebff51b2d0 (diff) | |
download | serenity-d2f9645cc00be122625298a7d7ddbb36bb5ba3aa.zip |
LibWeb: Properly stop, rather than terminate, ongoing media fetches
We are currently using the fetch controller's terminate() method to stop
ongoing fetches when the HTMLMediaElement load algorithm is invoked.
This method ultimately causes the fetch response to be a network error,
which we propagate through the HTMLMediaElement's error event. This can
cause websites, such as Steam, to avoid attempting to play any video.
The spec does not actually specify what it means to "stop" or "cancel" a
fetching process. But we should not use terminate() as that is a defined
spec method, and the spec does tend to indicate when that method should
be used (e.g. as it does in XMLHttpRequest).
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions