mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Set the "loading" flag for HTMLTrackElement sooner
We don't want to wait for the queued task to run to indicate that the processing model is in progress.
This commit is contained in:
Notes:
github-actions[bot]
2025-06-12 16:26:57 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/24ac860998b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5068 Reviewed-by: https://github.com/tcl3
@@ -155,10 +155,11 @@ void HTMLTrackElement::start_the_track_processing_model()
|
||||
if (!is<HTMLMediaElement>(parent_element().ptr()))
|
||||
return;
|
||||
|
||||
m_loading = true;
|
||||
|
||||
// 4. Run the remainder of these steps in parallel, allowing whatever caused these steps to run to continue.
|
||||
auto& realm = this->realm();
|
||||
Platform::EventLoopPlugin::the().deferred_invoke(GC::create_function(realm.heap(), [this, &realm] {
|
||||
m_loading = true;
|
||||
start_the_track_processing_model_parallel_steps(realm);
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user