LibWeb: Remove outdated old_queue_global_event_with_document

The FIXME here describes an old constraint on JS Interpreters which no
longer holds. It hails from a time when we had the global object and
JS realm attached to the document.
This commit is contained in:
Andrew Kaster 2023-08-28 09:32:19 +02:00 committed by Andreas Kling
parent 9808f8164f
commit 6e64bf5464
Notes: sideshowbarker 2024-07-18 04:38:32 +09:00
4 changed files with 4 additions and 12 deletions

View file

@ -238,13 +238,6 @@ void EventLoop::process()
schedule();
}
// FIXME: This is here to paper over an issue in the HTML parser where it'll create new interpreters (and thus ESOs) on temporary documents created for innerHTML if it uses Document::realm() to get the global object.
// Use queue_global_task instead.
void old_queue_global_task_with_document(HTML::Task::Source source, DOM::Document& document, JS::SafeFunction<void()> steps)
{
main_thread_event_loop().task_queue().add(HTML::Task::create(source, &document, move(steps)));
}
// https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-global-task
void queue_global_task(HTML::Task::Source source, JS::Object& global_object, JS::SafeFunction<void()> steps)
{