From 8157bb601b5e5add8937e5f52d7d7c227a3513cc Mon Sep 17 00:00:00 2001 From: Zaggy1024 Date: Fri, 30 Jun 2023 05:44:20 -0500 Subject: [PATCH] LibWeb: Place the unique task source used by media elements last In the merging of an extremely large navigables PR, a task queue source was added after the unique task source start value that was supposed to remain last in the enum. --- Userland/Libraries/LibWeb/HTML/EventLoop/Task.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/EventLoop/Task.h b/Userland/Libraries/LibWeb/HTML/EventLoop/Task.h index 13c73ccce81..782974f7f40 100644 --- a/Userland/Libraries/LibWeb/HTML/EventLoop/Task.h +++ b/Userland/Libraries/LibWeb/HTML/EventLoop/Task.h @@ -32,15 +32,15 @@ public: TimerTask, JavaScriptEngine, - // Some elements, such as the HTMLMediaElement, must have a unique task source per instance. - // Keep this field last, to serve as the base value of all unique task sources. - UniqueTaskSourceStart, - // https://html.spec.whatwg.org/multipage/webappapis.html#navigation-and-traversal-task-source NavigationAndTraversal, // https://w3c.github.io/FileAPI/#fileReadingTaskSource FileReading, + + // Some elements, such as the HTMLMediaElement, must have a unique task source per instance. + // Keep this field last, to serve as the base value of all unique task sources. + UniqueTaskSourceStart, }; static NonnullOwnPtr create(Source source, DOM::Document const* document, JS::SafeFunction steps)