mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibWeb: Only take runnable tasks from the HTML task queue
We were previously willing to execute tasks before they had become runnable.
This commit is contained in:
parent
6283c098ad
commit
bbfde63f79
5 changed files with 23 additions and 6 deletions
|
@ -40,6 +40,8 @@ public:
|
|||
DOM::Document* document() { return m_document; }
|
||||
DOM::Document const* document() const { return m_document; }
|
||||
|
||||
bool is_runnable() const;
|
||||
|
||||
private:
|
||||
Task(Source, DOM::Document*, Function<void()> steps);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue