mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-26 18:59:35 +00:00
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
The text track processing model would previously spin forever waiting for the track URL to change. It would then recursively invoke itself to handle the new URL, again entering the spin loop. This meant that tracks could easily cause event loop hangs. We now have an observer system to be notified when the track state changes instead. This lets us exit the processing model and move on.
21 lines
529 B
HTML
21 lines
529 B
HTML
<!DOCTYPE html>
|
|
<!-- Ensure the processing model does not block other resources from loading. -->
|
|
<img id="image" src="../../../Assets/120.png" />
|
|
<video>
|
|
<track src="../../../Assets/track.vtt" />
|
|
</video>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
const complete = () => {
|
|
println("PASS!");
|
|
done();
|
|
};
|
|
|
|
if (image.complete) {
|
|
complete();
|
|
} else {
|
|
image.addEventListener("load", complete);
|
|
}
|
|
});
|
|
</script>
|