mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-12 20:11:51 +00: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:
parent
8da6731048
commit
24ac860998
Notes:
github-actions[bot]
2025-06-12 16:26:57 +00:00
Author: https://github.com/trflynn89
Commit: 24ac860998
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5068
Reviewed-by: https://github.com/tcl3
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue